Nonlinear Optimization problem in Matlab
古いコメントを表示
Hi
I hve problem when I use x(0) in nonlinear constraint in my code and I have to start with x(0)!.
Please, Could any one solve this issue. I have to solve it to find the lower and upper bounds.


THE ERROR:

12 件のコメント
Torsten
2019 年 3 月 7 日
1, Array indices start at 1; thus x(0) will produce an error.
2. Put [] around the c-vector.
Best wishes
Torsten.
Talal Alharbi
2019 年 3 月 9 日
Stephan
2019 年 3 月 9 日
What Torsten meant was not:
c=[]
but
c=[x(1)...]
Talal Alharbi
2019 年 3 月 13 日
Talal Alharbi
2019 年 3 月 14 日
Torsten
2019 年 3 月 14 日
It is impossible to load your screenshots into MATLAB.
So please include your complete code as plain text and use the CODE button to format it.
Talal Alharbi
2019 年 4 月 10 日
Torsten
2019 年 4 月 10 日
If you use
objective=@(x) -(x(2)+x(3)+x(4)+x(5)+x(6)+x(7)+x(8));
you maximize the expression
x(2)+x(3)+x(4)+x(5)+x(6)+x(7)+x(8)
TALAL ALHARBI
2019 年 4 月 10 日
Actually, I did but it does give me the different value.
Torsten
2019 年 4 月 10 日
What do you mean by "different value" ? Different to what ?
Talal Alharbi
2019 年 4 月 14 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

