On Tue, Jul 7, 2020 at 12:17 PM chandra chowdhury
wrote:
>
> For max=1, there is no solution but for max=2 it has solution.
> How can we find upper bound of max using loop for similar
> problem?
>
> p = MixedIntegerLinearProgram(solver='GLPK')
> x = p.new_variable()
> p.set_binary(x)
> p.set_objec
For max=1, there is no solution but for max=2 it has solution.
How can we find upper bound of max using loop for similar
problem?
p = MixedIntegerLinearProgram(solver='GLPK')
x = p.new_variable()
p.set_binary(x)
p.set_objective(x[0] )
p.add_constraint(x[0]+x[1],max=1)
p.add_constraint(x[0],min=1)