12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

fseminfoptions“Options” on page 8-98 provides the function-specific details for the optionsvalues.seminfcon The function that computes the vector of nonlinear inequality constraints,c, a vector of nonlinear equality constraints, ceq, andntheta semi-infiniteconstraints (vectors or matrices) K1, K2,..., Kntheta evaluated over aninterval S at the point x. The function seminfcon can be specified as a functionhandle.x = fseminf(@myfun,x0,ntheta,@myinfcon)where myinfcon is a MATLAB function such asfunction [c,ceq,K1,K2,...,Kntheta,S] = myinfcon(x,S)% Initial sampling intervalif isnan(S(1,1)),S = ...% S has ntheta rows and 2 columnsendw1 = ...% Compute sample setw2 = ...% Compute sample set...wntheta = ... % Compute sample setK1 = ... % 1st semi-infinite constraint at x and wK2 = ... % 2nd semi-infinite constraint at x and w...Kntheta = ...% Last semi-infinite constraint at x and wc = ... % Compute nonlinear inequalities at xceq = ... % Compute the nonlinear equalities at xS is a recommended sampling interval, which might or might not be used.Return [] for c and ceq if no such constraints exist.8-95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!