%BIQPBOX Bisection reflective line search for sqpbox
% [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,...
% oval,po,normg,DS,mtxmpy,data,H)
% returns the new feasible point nx, the corresponding sign vector nsig,
% and the step size of the unreflected step, alpha.
% Copyright (c) 1990-98 by The MathWorks, Inc.
% $Revision: 1.2 $ $Date:
%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.
%DEFINEV Scaling vector and derivative
%
% [v,dv]= DEFINEV(g,x,l,u) returns v, distances to the
% bounds corresponding to the sign of the gradient g, where
% l is the vector of lower bounds, u is the vector of upper
% bounds. Vector dv is 0-1 sign vector (See ?? for more detail.)
%
% Copyright (c) 1990-98 by The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 1998/03/21 16:29:10 $