fmincon and Active-set; symbolic math toolbox

12 Ansichten (letzte 30 Tage)
Sha
Sha am 6 Nov. 2015
Beantwortet: Alan Weiss am 6 Nov. 2015
Is it possible to receive a function:
Xopt=myconopt('fmincon','Active-set',CostFn,ConstrFn,X0,X)
CostFn and ConstrFn are symbolic expressions whose symbolic elements come from X. X0 is initial guess value. CostFn has one expression, ConstrFn can have more than one symbolic expressions for constraints.
Thank you everybody for paying attention to my question :)

Akzeptierte Antwort

Alan Weiss
Alan Weiss am 6 Nov. 2015
You have to give problems in the form Optimization Toolbox™ solvers require. Please check the syntax for fmincon if that is what you want to use.
To see how to use symbolic variables in an Optimization Toolbox optimization look at this example which uses files, or this example which uses function handles.
Alan Weiss
MATLAB mathematical toolbox documentation

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by