![](https://secure.gravatar.com/avatar/f0b8c951ffd95c5b45c7e0f85121b1a6?default=https%3A%2F%2Fassets.zendesk.com%2Fhc%2Fassets%2Fdefault_avatar.png&r=g)
Margi Shah
- Total activity 175
- Last activity
- Member since
- Following 1 user
- Followed by 0 users
- Votes 0
- Subscriptions 11
Comments
Recent activity by Margi Shah-
Hi Jaromił Najman Najman,When I am trying to replace '<=' sign in the below constraint to '<', it shows me this error, why gurobi don't accept '<' sign? res = res_cat2idx['SP'][0]Spinningusage = {}...
-
Hi Jaromił Najman,Thank you for the response.I ran the optimisation model and when I saw the Battery power, I can see that it is continous variable rather than a discrete variable. Why so ?BatteryP...
-
Hi Jaromił Najman,Yes correct, I want to access BatteryPower[t].It can take any discrete value from [-3,-2,-1,0,1,2,3].How do I write it as variable?
-
Hi Jaromił Najman,This is how I define BatteryPower:What do you mean by 'is it only one variable?' # introduce variable BatteryPower for every timestep t BatteryPower = steel.addVars(time1, lb= -3,...
-
Hi Jaromił Najman,Also I am not sure why I am getting this error: initial_SoC = 0.5 Regards,Margi
-
Hi Jaromił Najman,Alright, That means I will need to define batterypower like below: # introduce variable BatteryPower for every timestep tBatteryPower = steel.addVars(time1, lb= -3, ub = 3, name="...
-
Hi Jaromił Najman,Does that mean If I define SoC as a variable, I don't require to define BatteryPower as a variable?
-
Hi Jaromił Najman, Thats correct. I understand but then how it is possible to calculate BatteryPower necessary for the objective function? Regards,Margi
-
Hi Jaromił Najman,Actually the variable is the BatteryPower and SoC is calculated from it. SoC calculation: if t == 1: SoC = initial_SoC(at t=0) + (BatteryPower * ch_eff) / e_b_cap else: ...
-
Hi Jaromił Najman,I am trying to reformulate the optimisation problem. Objective function: for res in res_list4: for t in time1: # add constr aux = EnergyResouce - E steel.addCons...