Navigation

Operators and Keywords

Function List:

C++ API

sqp.m File Reference


Functions

 if (nargin >=2 &&nargin<=8 &&nargin!=5) n
 if (iscell(objf)) if(length(objf) > 0) __sqp_obj_fun__
 if (length(objf) > 1) obj_grd
 if (length(objf) > 2) obj_hess
endif endif else error ("sqp: invalid objective function")
 if (nargin > 2) ce_grd
 if (iscell(cef)) if(length(cef) > 0) __sqp_ce_fun__
 if (length(cef) > 1) ce_grd
endif else error ("sqp: invalid equality constraint function")
endif elseif (!isempty(cef)) ce_fun
 if (nargin > 3) __sqp_cif__
 if (iscell(__sqp_cif__)) if(length(__sqp_cif__) > 0) __sqp_cifcn__
endif elseif (!isempty(__sqp_cif__)) __sqp_cifcn__
endif if (nargin< 5) ci_grd
 if (iscell(cif)) if(length(cif) > 0) __sqp_ci_fun__
 if (length(cif) > 1) ci_grd
endif elseif (!isempty(cif)) ci_fun
 if (isvector(lb)) __sqp_lb__
 elseif (isempty(lb)) if(isa(x
endif else error ("sqp: invalid lower bound")
 if (isvector(ub)) __sqp_ub__
endif else error ("sqp: invalid upper bound")

Variables

 function [x, obj, info, iter, nf, lambda]
global __sqp_obj_fun__ = obj_fun = objf
global __sqp_ce_fun__ = ce_fun
global __sqp_ci_fun__
global __sqp_cif__
global __sqp_cifcn__ = @empty_cf
 obj_grd = @fd_obj_grd
 have_hess = 0
endif ce_fun = @empty_cf
 ce_grd = @empty_jac
 ci_fun = @empty_cf
 ci_grd = @empty_jac
endif else global __sqp_lb__ = -realmax ("single")
endif global __sqp_ub__ = realmax ("single")

Function Documentation

elseif ( isempty(lb  ) 

endif elseif ( isemptycif  ) 

endif elseif ( isempty__sqp_cif__  ) 

endif elseif ( isemptycef  ) 

endif else error ( "sqp: invalid upper bound"   ) 

endif else error ( "sqp: invalid lower bound"   ) 

endif else error ( "sqp: invalid equality constraint function  ) 

endif endif else error ( "sqp: invalid objective function  ) 

if ( isvector(ub  ) 

if ( isvector(lb  ) 

if ( length(cif)  ,
 
)

if ( iscell(cif)   ) 

endif if (  ) 

if ( iscell(__sqp_cif__  ) 

if ( nargin  ,
 
)

if ( length(cef)  ,
 
)

if ( iscell(cef)   ) 

if ( nargin  ,
 
)

if ( length(objf)  ,
 
)

if ( length(objf)  ,
 
)

if ( iscell(objf)   ) 

if ( nargin >=2 &&nargin<=8 &&nargin!  = 5  ) 


Variable Documentation

global __sqp_cif__

__sqp_cifcn__ = @empty_cf

else __sqp_lb__ = -realmax ("single")

endif else __sqp_obj_fun__ = obj_fun = objf

else __sqp_ub__ = realmax ("single")

endif ce_fun = @empty_cf

ce_grd = @empty_jac

ci_fun = @empty_cf

ci_grd = @empty_jac

Initial value:

 sqp (x, objf, cef, cif, lb, ub, maxiter, tolerance)

  global __sqp_nfun__

have_hess = 0

obj_grd = @fd_obj_grd