Margi Shah
 Total activity 174
 Last activity
 Member since
 Following 1 user
 Followed by 0 users
 Votes 0
 Subscriptions 11
Activity overview
Latest activity by Margi Shah
Margi Shah commented,
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...

Margi Shah commented,
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?

Margi Shah commented,
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,...

Margi Shah commented,
Hi Jaromił Najman,Also I am not sure why I am getting this error: initial_SoC = 0.5 Regards,Margi

Margi Shah commented,
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="...

Margi Shah commented,
Hi Jaromił Najman,Does that mean If I define SoC as a variable, I don't require to define BatteryPower as a variable?

Margi Shah commented,
Hi Jaromił Najman, Thats correct. I understand but then how it is possible to calculate BatteryPower necessary for the objective function? Regards,Margi

Margi Shah commented,
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: ...

Margi Shah commented,
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...

Margi Shah commented,
Hi Jaromił Najman,Thanks for your comment.I was solving a MILP problem and I see the message below.Does that interpret there is a error in the model? Set parameter UsernameAcademic license  for no...