How to use a decision variable from optimization problem into an if else statement?
显示 更早的评论

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 个评论
Matt J
2018-4-29
We need to see a statement of the whole optimization problem.
Paramvir Singh
2018-4-29
Paramvir Singh
2018-4-30
Paramvir Singh
2018-5-1
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


