
Maximilian Sletbakk
- Total activity 24
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 10
- Subscriptions 2
Activity overview
Latest activity by Maximilian Sletbakk-
Maximilian Sletbakk commented,
Never mind! It seems like the entire model is functioning now, if anyone else has this issue the solution seemed to be to use a different time model like I showed above. After that I just fixed a s...
-
Maximilian Sletbakk commented,
Thank you, I understand. I suppose my final question would be: I have checked the lp. file, and my constraint def battery_test_rule(model,t): return model.batteryLevel[t] == model.batteryLe...
-
Maximilian Sletbakk commented,
Thank you very much, I implemented the changes you suggested, but it sadly still does not give any values for the batteryLevel model What do you mean by "the line is checked"? My thoughts were t...
-
Maximilian Sletbakk commented,
I want it to make sure the line return model.batteryLevel[t] == model.batteryLevel[t-1]+model.batteryCharge[t-1]-model.batteryDischarge[t-1] is checked for every t in my model, with the exception t...
-
Maximilian Sletbakk commented,
What do you mean exactly? These are just a part of my model, I have several constraints following this setup and they seem to work?
-
Maximilian Sletbakk created a post,
Optimal solution seems to ignore constraints
OngoingHello, this question comes as a kind of follow up to my previous post a couple days ago. I have a functioning model, which returns an optimal solution, however this solution ignores some of the con...
-
Maximilian Sletbakk commented,
Okay, I am suspecting that the errror is due to the fact that the "battery" can both charge and discharge at the same time, so I will try to fix thatThank you very much for your time!
-
Maximilian Sletbakk commented,
Thanks! That fixed the keyerror! However my model.battery_level values do not change, they stay at 1000 which is the upper bound def battery_level_rule(model,t): ...
-
Maximilian Sletbakk commented,
What is the best way to express this in the constraint format?
-
Maximilian Sletbakk commented,
# Set representing the time steps, 48 hoursmodel.t = Set(initialize=np.arange(0, 48), ordered=True)# Set representing the time steps until all vehicles must be fully charged, 32 hoursmodel.c = Set(...