Not enough input arguments when i call fmincon constraint function with multiple input parameters to pass into

1 Ansicht (letzte 30 Tage)
Not enough input arguments when i call fmincon constraint function with multiple input parameters to pass into.....attached snapshot of the error message i recieve and .m script file .....
  1 Kommentar
muhammad ilyas khattak khattak
Bearbeitet: muhammad ilyas khattak khattak am 16 Mai 2021
@Matt J ..thanks once again for your time... though ,, i have not found yet 100% success from your comment but it is leading me towards an acceptable solution of my problem....therefore, i am accepting your answer as it has given me a good lead....

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 16 Mai 2021
The constraint and objective functions should have one input argument. If you have N unknowns, they should be passed in as an N-vector, not as N separate arguments.

Weitere Antworten (0)

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by