forked from grid-parity-exchange/Prescient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulate_5bus.py
28 lines (27 loc) · 942 Bytes
/
simulate_5bus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from prescient.simulator import Prescient
# set some options
prescient_options = {
"data_path":"./5bus/",
"input_format":"rts-gmlc",
"simulate_out_of_sample":True,
"run_sced_with_persistent_forecast_errors":True,
"output_directory":"5bus_output",
"start_date":"07-10-2020",
"num_days":7,
"sced_horizon":1,
"ruc_mipgap":0.01,
"reserve_factor":0.1,
"deterministic_ruc_solver":"cbc",
"deterministic_ruc_solver_options":{"feas":"off", "DivingF":"on",},
"sced_solver":"cbc",
"sced_frequency_minutes":5,
"ruc_horizon":36,
"compute_market_settlements":True,
"monitor_all_contingencies":True,
"output_solver_logs":False,
"price_threshold":1000,
"contingency_price_threshold":100,
"reserve_price_threshold":5,
}
# run the simulator
Prescient().simulate(**prescient_options)