Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m.setObjective(obj1)
- m.optimize()
- if m.SolCount > 0:
- solution1 = m.getAttr('X', m.getVars())
- m.setObjective(obj2)
- if m.SolCount > 0:
- solution2 = m.getAttr('X', m.getVars())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement