Combine objective and nonlinear constraint functions
combines the objective function objconstr
= packfcn(obj
,nlconst
)obj
and nonlinear constraint function
nlconst
into a function objconstr
. The function
objconstr(x)
returns a structure suitable for a combined surrogateopt
objective and constraint function. For information on converting between the
surrogateopt
structure syntax and other solvers, see Convert Nonlinear Constraints Between surrogateopt Form and Other Solver Forms.