Unknown or unsupported solverType fmincon specified for this object

Hi, I get the error: Unknown or unsupported solverType fmincon specified for this object
when running this code:
load CAPMuniverse
p = Portfolio('AssetList',Assets(1:12));
p = setDefaultConstraints(p);
p = setSolver(p, 'fmincon');
display(p.solverType);

 Accepted Answer

Hi,
see the setSolver documentation. fmincon is not a valid solver for a Portfolio object. If you use a PortfolioCVaR or a PortfolioMAD object fmincon can be used.
Best regards
Stephan

More Answers (0)

Asked:

on 2 Oct 2018

Edited:

on 2 Oct 2018

Community Treasure Hunt

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

Start Hunting!