Closed pksiwan11 closed 1 year ago
I am able to run the code and it is giving correct results. But, I am unable to find the Objective function that is being minimized in the code. Is there any default Objective function in gurobipy for this?
Thanks in advance.
Pankaj
The objective function cost is specified when the variables are defined x = m.addVars(links, obj=cost, name ="flow")
Can you please tell me, how to set objective explicitly via model.setObjective() in this case?
Currently the objective is specified when variables are defined, but can it be done using setObjective() ?
Thanks in advance.
I am able to run the code and it is giving correct results. But, I am unable to find the Objective function that is being minimized in the code. Is there any default Objective function in gurobipy for this?
Thanks in advance.