Solution Not Feasible In Linear Programming In Python Gurobi
This is continuation of this thread. I am coding MILP using Gurobi in Python where the objective is to maximize the rewards while ensuring the distance constraint is not violated.
Solution 1:
You forgot to call the optimize function after update
opt_model.ModelSense = grb.GRB.MAXIMIZE
opt_model.setObjective(objective)
opt_model.optimize()
Post a Comment for "Solution Not Feasible In Linear Programming In Python Gurobi"