Find an optimal solution for a linear system with two inequations
1 回表示 (過去 30 日間)
古いコメントを表示
Imane hammou ouali
2019 年 6 月 7 日
コメント済み: Imane hammou ouali
2019 年 6 月 8 日
Hello expert i have a function that i have to maximize, and i don't i have much information about algorithm that i should use , i used the MILP but it doesn’t work well .
The function : Max (x1+x2)
Contraints : 150x1+200x2 <= 164
X1+x2 <= 2
X1 and x2 are binary
I will be very grateful if you can help me
2 件のコメント
James Tursa
2019 年 6 月 7 日
What does "x1 and x2 are binary" mean? Do you mean they are both integers?
採用された回答
その他の回答 (1 件)
James Tursa
2019 年 6 月 8 日
編集済み: James Tursa
2019 年 6 月 8 日
The way you have this problem posed, and assuming by "binary" you mean integer, it can be solved by simple inspection. The max value is simply 2 and can be achieved in many ways. E.g., x1 = 5 and x2 = -3. Maybe there is something missing in your problem statement? Or maybe by "binary" you really did mean just 0 or 1 values?
参考
カテゴリ
Help Center および File Exchange で Quadratic Programming and Cone Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!