@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....
Not enough input arguments when i call fmincon constraint function with multiple input parameters to pass into
조회 수: 1 (최근 30일)
이전 댓글 표시
muhammad ilyas khattak khattak
2021년 5월 16일
편집: muhammad ilyas khattak khattak
2021년 5월 16일
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 .....![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/619543/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/619543/image.jpeg)
댓글 수: 1
채택된 답변
Matt J
2021년 5월 16일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!