how to convert if condition into problem based approach in optimization problem

1 回表示 (過去 30 日間)
Hossam Mosbah
Hossam Mosbah 2021 年 3 月 31 日
コメント済み: Aditya Patil 2021 年 4 月 7 日
I have the problem below and I need to convert to problem based approach optimization problembecause I can not use if condition in this type of optimization problem.
if M <= z && K<=90%
x= z - u
end
if z <= M <= y && K >=90%
x=0
end
if M<= y && K<=25%
x= u - y
end
  1 件のコメント
Aditya Patil
Aditya Patil 2021 年 4 月 7 日
You may be able to consider these as separate variables(eg: x1, x2,x3), but the exact form will depend upon what other constraints are present, and what your optimization function is.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by