Can linprog give an integer value of x's?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andrew Alkiviades
am 2 Jul. 2012
Kommentiert: Seth DeLand
am 17 Mär. 2014
Hi
I have a linprog code that has x1,x2,x3 and x4 in the objective function.
The results I get give me values in the form: x = 6.6667 0.0420 0 0
Which in the case I am trying to model doesn't make physical sense because the x's represent the number of units of a specific technology, and therefore for example 0.0420 doesn't in fact exist. Is there anyway to "force" linprog to find the optimum integer value of x?
Thank you
0 Kommentare
Akzeptierte Antwort
Richard Brown
am 2 Jul. 2012
No there isn't. Integer linear programming is a different beast. Perhaps this one from the file exchange might help:
Alternatively, I'm pretty sure there are matlab bindings available for glpk
2 Kommentare
Seth DeLand
am 17 Mär. 2014
As of R2014a, there's a new function "intlinprog" in Optimization Toolbox designed to solve such problems: http://www.mathworks.com/help/optim/ug/intlinprog.html
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Optimization Toolbox 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!