matlab - Can linprog give an integer value of x's? -
i have linprog code has x1,x2,x3 , x4 in objective function.
the results give me values in form:
x = 6.6667 0.0420 0 0
which in case trying model doesn't make physical sense because x's represent number of units of specific technology, , therefore example 0.0420 doesn't in fact exist. there anyway "force" linprog find optimum integer value of x?
thank you
that's called integer programming , in general np-hard. it's not covered linprog
it's different , harder problem.
here's related question (but not duplicate) stack overflow integer programming.
Comments
Post a Comment