How to use a decision variable from optimization problem into an if else statement?
Ältere Kommentare anzeigen

Here Tins is a decision variable of size=(24,1) in my optimization problem. The value of Tins(min_des) =20 while value of Tins(max_des) = 23. When I input the if else statement using Tins variable for value comparison, then the following error is shown by matlab:-

Please suggest the corrective measure. Thanks in advance
6 Kommentare
Matt J
am 29 Apr. 2018
We need to see a statement of the whole optimization problem.
Paramvir Singh
am 29 Apr. 2018
We need to understand the problem, i.e., we need to know what you're trying to minimize, which variables are the design variables, and what the constraints on those variables are.
As it stands, I don't even see what makes this optimization problem linear.
Paramvir Singh
am 30 Apr. 2018
Paramvir Singh
am 1 Mai 2018
It's way too much. An optimization problem has the following form
min f(x)
subject to g(x)<=0, h(x)=0
I'm looking for you to tell me, in your case, what x,f,g,and h are.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


