Declare objective function and constraints in Python
AnsweredHi, Gurobi team
I am a newbie for using this program. First, I stuck on how to declare this objective fuction and its indexs, while Sijt is binary variable in Python. Also, I want to know how to declare data input in P and c value, then link this objective fuction to any constraint such as
Can you suggest me to study and expand more constrants in the future? Thanks.
1
-
Hi Agustino,
This kind of function and constraints are thoroughly discussed in the posts
- Nested sum using quicksum()
- Nested quicksum function?
- Nested quicksum
- Difference between nested quicksum and several quicksums
These posts should contain all the information you seek.
Best regards,
Jaromił0
Please sign in to leave a comment.
Comments
1 comment