Description: CHECKBOUNDS Move the initial point within the (valid) bounds. [X, LB, UB, X, FLAG] = CHECKBOUNDS (X0, LB, UB, nvars) checks that the upper and lower bounds are valid (LB < = UB) and the same length as X (pad with-inf/inf if necessary) warn if too long. Also make LB and UB vectors if not already. Finally, inf in LB or-inf in UB throws an error .
File list (Check if you may need any files):