
Bill Edwall
- Total activity 31
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 11
- Subscriptions 4
Comments
Recent activity by Bill Edwall-
I belive I've resolved my issue. I created a tupledict and stored the values in the tupledict. Its reduced the non-zeros (logs found below) signifigantly but I'll try utilising it in my bigger mode...
-
EDIT: I made a new post and I belive I solved the issue I had. Look here if you're curious.https://support.gurobi.com/hc/en-us/community/posts/360058627091-Reduce-expression-into-a-single-value ...
-
I tried to utilize the .getValue() function but the problem ( I imagine?) is that since the optimization isen't completed yet it can't get the value of the expression before that since the variable...
-
Thank you so so so much Matthias. You've helped clear this up something immensly.Have a wonderful day!Cheers, Bill
-
So what you're saying is that the optimizer has made the values so small that they effectivly become 0 and the absolute value of -0 is 0?On a more hypothetical note. Would the way the code is curre...
-
Thank you so much Tobias!The model now solves in around 2 minutes. Quite the improvement from my previous 45 min!
-
I got this message after 10 min Do you think I should leave it in? I put it right above the for x in range(3600) for loop like you suggested?Normally the program ran for 40min - 1h before crashing ...
-
That makes so much sense! What you're saying is very true! The battery constraint is the glue of the model and without it it's possible to solve like the small problems that you mentioned. You're c...
-
First off. Thank you for your reply Tobias! I really need help with this. Lets see. The first for loop will in total be run 24 times and the secound for loop will be run 24 * 3600 = 84600 timesSo o...
-
To make things more clear. The code runs fine if I remove thesse constraints. m.addConstr(bat_SOC <= c_bat_up) #Ensures that our SoC never goes above max limit. m.addConstr(c_bat_down <= bat_SOC) ...