How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
4 ビュー (過去 30 日間)
古いコメントを表示
How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
Thank you for your time
0 件のコメント
採用された回答
Matt J
2017 年 9 月 16 日
編集済み: Matt J
2017 年 9 月 16 日
There is no way to include a constant term in the objective function, but it would be meaningless to do so. Adding a constant term does not change the optimal solution, x.
その他の回答 (1 件)
Aurele Turnes
2017 年 11 月 13 日
編集済み: Aurele Turnes
2017 年 11 月 13 日
If you have R2017b, the new Problem-based approach lets you specify constant terms in the objective of linear and mixed-integer linear problems. Although Matt is correct that the constant term will not change the final solution value, just the objective value.
参考
カテゴリ
Help Center および File Exchange で Linear Programming and Mixed-Integer Linear Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!