How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
2 views (last 30 days)
Show older comments
How can I write objective function with variable plus constant for solving using intlinprog Ex. X1+4
Thank you for your time
0 Comments
Accepted Answer
More Answers (1)
Aurele Turnes
on 13 Nov 2017
Edited: Aurele Turnes
on 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.
See Also
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!