Margi Shah
- Total activity 179
- Last activity
- Member since
- Following 1 user
- Followed by 0 users
- Votes 0
- Subscriptions 11
Comments
Recent activity by Margi Shah-
I think that is the issue. How can I use same resource object in the addConstrs method? I shall create a different list and use that or Is there any other way?
-
rtn_to has no relation with it. Jaromil, It should not try to access 174 , Right? Because res goes from 54 to 173. Why is it happening so ?
-
Hi Jaromil, I completely understand the working of model.I dont know I am missing a little thing. What I expect is same as : x[res] Transfertime= steel.addConstrs( (gp.quicksum(Resourc...
-
Hi Jaromil , Thanks for the reply. You mean to say that if I want to assign a value to a range of keys, I need to initialize it as a dictionary rather than list? Also , there is only one for loop f...
-
Okay, I understood the point, I tried formulating using addConstrs for the below equation & it works: Many thanks! Taskexecution1=steel.addConstrs((gp.quicksum(Tasks[task,t] for t in time for ta...
-
I appreciate your detailed explanation. It made me clear few points that I was struggling to figure it out. I had gone though MILP tutorial on Gurobi website but these little points were missed out...
-
Many thanks for the reply. Although what I understood from above is , if there is an expression to be evaluated inside quicksum, it should be treated individually and then it shall be added. Als...
-
import numpy as npimport pandas as pdimport xlrdimport csvfrom collections import OrderedDictimport math import gurobipy as gpfrom gurobipy import GRB group2heats = {'1': [1, 2, 3, 4], '2': [5, 6...
-
Resourcebalance=steel.addConstrs((Resources[res,t]==Resources[res,time[time.index(t)-1]] + gp.quicksum(rtn_profile[res][task][theta]* Tasks[task,t-theta] for task in task_li...
-
I have tried a lot , I don't know I am unable to do it. I need to use continue and conditional statement as well in my constraint.