Find the constrained minima of a real multi-objective function.
Attention:Valid only with Altair Advanced Optimization Extension.
Syntax
x = grsm(@func,x0)
x = grsm(@func,x0,A,b)
x = grsm(@func,x0,A,b,Aeq,beq)
x = grsm(@func,x0,A,b,Aeq,beq,lb,ub)
x = grsm(@func,x0,A,b,Aeq,beq,lb,ub,nonlcon)
x = grsm(@func,x0,A,b,Aeq,beq,lb,ub,nonlcon,options)
[x,fval,info,output] = grsm(...)
Inputs
func
The function to minimize.
x0
An estimate of the location of a minimum.
A
A matrix used to compute A*x for inequality contraints.
Use [ ] if unneeded.
b
The upper bound of the inequality constraints A*x<=b.
Use [ ] if unneeded.
Aeq
A matrix used to compute Aeq*x for equality contraints.
Use [ ] if unneeded.
beq
The upper bound of the equality constraints Aeq*x=beq.
Use [ ] if unneeded.
lb
The design variable lower bounds.
Use [ ] if unbounded. Support for this option is limited. See Comments.
ub
The design variable upper bounds.
Use [ ] if unbounded. Support for this option is limited. See Comments.
nonlcon
The nonlinear constraints function.
The function signature is as follows:
function [c, ceq] = ConFunc(x)
, where
c and ceq contain inequality and equality
contraints, respectively. The ceq output can be omitted if
it is empty.
Inequality constraints are assumed to have upper bounds of 0, and equality
constraints are equal to 0. For constraints of the form g(x) < b, where b ~= 0, the
recommended best practice is to write the constraint as (g(x) - b) / abs(b) < 0.
Use [ ] if unused and the options argument is needed.
Options are specified with grsmoptimset. The defaults are as follows:
Display: 'off'
InitSamPnts: min(20,n+2)
MaxFail: 20,000
MaxIter: 50
PntsPerIter: 2
Seed: 0
StopNoImpr: 1,000
TolCon: 0.5 (%)
Unbounded limits design variable limits are not fully supported and are set to
-1000 and 1000. Use of large limits is discouraged due to the size of the search area.
To pass additional parameters to a function argument, use an anonymous function.