SQP algorithm crashes showing "The number of output should match the number of inputs"

3 vues (au cours des 30 derniers jours)
Tao
Tao le 26 Mai 2015
Commenté : Alan Weiss le 26 Mai 2015
I used fmincon with symbolic toolbox providing gradient and Jacobian of my objective and constraint functions respectively, when I used "interior-point" algorithm for fmincon, I can get the results. But when I changed algorithm to "sqp" (optNLP = optimset('Algorithm', 'sqp', ...)), the code crashes and showing "Error using deal (line 37), The number of output should match the number of inputs", following with some other indications of errors. I don't know why it happens and what could be done to deal with it. Very grateful if anyone can help.
  1 commentaire
Alan Weiss
Alan Weiss le 26 Mai 2015
Please give use your entire fmincon call and entire optimset call.
Alan Weiss
MATLAB mathematical toolbox documentation

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by