I am working on solving optimization problems using integer linear programming, one of the constraints assume that the variable has a value belongs to a set of values like the following
min 5*x1 + 2*x2
s.t.
x1,x2>0
x1 in {2,4,-5}
how i can represent this problem to solve it using CPLEX or lp_solve in matlab? what are the values of F,A,b arrays?
Thanks