Hello, i am trying to get some optimizations with this call:
curl -i -H 'Content-Type: application/json' -X POST -d '{
"load_cost_forecast": [0.3, 0.3, 0.3, 0.3, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5],
"pv_power_forecast": [0, 0, 0, 0, 0, 0, 0, 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"num_def_loads": 1,
"def_total_hours": [2],
"P_deferrable_nom": [2000],
"treat_def_as_semi_cont": [1],
"set_def_constant": [1]
}' http://localhost:5000/action/dayahead-optim
soo with this command i have the first 4 “cheap” hours at 0.3 and the rest of my 24h window 0.5.
furthermore i have one hour with 5000w pv, the rest is 0.
i have 1 deferred load with 2k watts.
i have set
"treat_def_as_semi_cont": [true],
"set_def_constant": [true]
my expectation is, that the def load will be placed on the hour with 5k watts or in one of the cheap hours.
but when i use true for “treat_def_as_semi_cont” and “seet_def_constant” it will always be placed on the last hour.
e.g. here:
i also set my history to 0, to showcase that this cannot be correct.
any hints what is wrong?
ps: log output is:
2023-10-21 00:25:15,984 - web_server - INFO - Performing day-ahead forecast optimization
2023-10-21 00:25:15,989 - web_server - INFO - Perform optimization for the day-ahead
2023-10-21 00:25:16,026 - web_server - INFO - Status: Optimal
2023-10-21 00:25:16,026 - web_server - INFO - Total value of the Cost function = -11.68