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-
Hi Jaromił Najman, Thanks for your advice. I'll look into it. The only constraint through which the value of SpinningResource variable is calculated is through this: res = res_cat2idx['SP'][0]Spinn...
-
Hi Jaromił Najman, When I use : auxiliaryVariable = steel.addVars(res_list5, time1, name="auxiliaryVariable")for res in res_list5: for t in time1: steel.addConstr(auxiliaryVariable[res,t]...
-
Hi Jaromił Najman, Thanks for this. Just out of curiosity, auxiliaryVariable should take any number between 0 and SpinningResource[res,t]In my code when I see solution:I see its value in all 96 slo...
-
Hi Jaromił Najman, In the code of objective function below: obj=gp.quicksum(price_energy[t-1]*EnergyResource[res,t] for res in reslist2 for t in time1) - gp.quicksum(sp_price[t-1]*SpinningResource[...
-
Hi Jaromił Najman, I think I cleared that y[SP,t] == SpinningResource[res,ti] So the code now becomes:Variable declaration: SpinningResource=steel.addVars(res_list5,time1,vtype=GRB.CONTINUOUS,name=...
-
Hi Jaromił Najman, For this constraint: I have coded up: res = res_cat2idx['SP'][0]Spinningusage = {}for ti in time1: # if ti == 0: # skip the t = 0 case # continue sumexpression = gp.Lin...
-
Hi Jaromil, Thank you for the input. I have defined the constraint as : grouped_time_slots = {i: time1[i * 4:i * 4 + 4] for i in range(len(time1) // 4)}res = res_cat2idx['SP'][0]Spinningprovision ...
-
Hi Jaromił Najman, I am trying to make some modifications in the Gurobi model and I wonder if such constraint and objective function could be written in Gurobi.The variable I defined is: SpinningRe...
-
Thanks Jaromil. If I have correctly understood, there is nothing wrong with the optimisation. Its just the rounding feature. Am I correct? Sorry but just to double check.
-
Hi Jaromił Najman, Can I ask one question as I am seeing weird error in gurobi results: I have defined Tasks variables as BINARY: In results I see : How it is possible? It should either be 0 or 1...