Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Rows columns (nodes) that do not meet fmincon constraints

1 Ansicht (letzte 30 Tage)
Sameer
Sameer am 1 Jun. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
How can we output to the screen the columns that are unable to meet the constraints of fmincon, using "disp()"?

Antworten (1)

Matt J
Matt J am 2 Jun. 2014
Bearbeitet: Matt J am 2 Jun. 2014
Just evaluate the constraints manually to see which are not satisfied
>> A*x-b>options.TolCon,
>> abs(Aeq*x-beq)>options.TolCon
You could also use disp, but I don't see why you'd prefer it,
>> disp( A*x-b>options.TolCon )

Community Treasure Hunt

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

Start Hunting!

Translated by