Jonasz Staszek
-
Community Moderator
- Total activity 302
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 13
- Subscriptions 124
Comments
Recent activity by Jonasz Staszek-
You need to define your arcs somewhat like this: Arcs = []for t in range(1, T+1): if t-1 >= 1 and t+3 <= T: Arcs += [(('G', t-1), ('RM', t)), (('RM', t), ('MP', t)), ...
-
I still have a difficult time understanding the constraint you are trying to implement. Could you try to express it in mathematical terms (e.g. the way you would write down a mathematical model on ...
-
Hi Anne, the code you posted, or at least its screenshot, won't work since you did not define \(t\) properly. (For future reference, it is much easier to help if you post the actual code and not a ...
-
I would not expect RegEx patterns to be the required input here, but rather the patterns of the type that you were typing in. Perhaps someone from Gurobi support team can confirm this? Additionally...
-
Hi Kim, I don't believe that encoding your model in C rather than Python would change the solver behavior itself. Is the runtime long due to the optimization taking so much time? If yes, we'd need ...
-
Hi Fei, I am not sure I understand your question. Could you show us the mathematical model you are trying to code (or at least the part your question relates to)? Best regardsJonasz
-
Hi Bikram, the documentation suggests that it is possible. In particular, the section titled "General constraint named components" should be of interest to you. Best regardsJonasz
-
I'm not sure I understood your challenge. If M1 and M2 were corresponding to various nodes, you could instead have them as on dict with a 3-tuples as keys, for example, the following way # for illu...
-
You're right, I just corrected the error. Best regardsJonasz
-
Hi Ce, re 1 and 2, this article should shed some light. You should switch to using .sol files, which also keep the value for continuous variables. Re 3, the following can be found in the documentat...