Nonlinear Optimization problem in Matlab
Mostra commenti meno recenti
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 Commenti
Torsten
il 7 Mar 2019
1, Array indices start at 1; thus x(0) will produce an error.
2. Put [] around the c-vector.
Best wishes
Torsten.
Talal Alharbi
il 9 Mar 2019
Stephan
il 9 Mar 2019
What Torsten meant was not:
c=[]
but
c=[x(1)...]
Talal Alharbi
il 13 Mar 2019
Talal Alharbi
il 14 Mar 2019
Torsten
il 14 Mar 2019
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
il 10 Apr 2019
Torsten
il 10 Apr 2019
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
il 10 Apr 2019
Actually, I did but it does give me the different value.
Torsten
il 10 Apr 2019
What do you mean by "different value" ? Different to what ?
Talal Alharbi
il 14 Apr 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Solver Outputs and Iterative Display in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

