How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nurye Hassen
am 16 Sep. 2017
Kommentiert: Nurye Hassen
am 15 Nov. 2017
How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
Thank you for your time
0 Kommentare
Akzeptierte Antwort
Matt J
am 16 Sep. 2017
Bearbeitet: Matt J
am 16 Sep. 2017
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.
2 Kommentare
Weitere Antworten (1)
Aurele Turnes
am 13 Nov. 2017
Bearbeitet: Aurele Turnes
am 13 Nov. 2017
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.
Siehe auch
Kategorien
Mehr zu Linear Programming and Mixed-Integer Linear Programming finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!