Overview
E4ST.run_e4st
— Functionrun_e4st(config) -> out_path
run_e4st(filename(s)) -> out_path
Top-level function for running E4ST. Here is a general overview of what happens:
- Book-keeping
read_config(config_file)
- loads in theconfig
from file, if not passed in directly.save_config(config)
- the config is saved toconfig[:out_path]
start_logging!(config)
- Logging is started, some basic information is logged vialog_start
.
- Load Input Data
read_data(config)
- The data is loaded in from files specified in theconfig
.
- Construct JuMP Model and optimize
setup_model(config, data)
- Themodel
(a JuMP Model) is set up.JuMP.optimize!(model)
- Themodel
is optimized.
- Process Results
parse_results!(config, data, model)
- Retrieves all necessary values and shadow prices frommodel
, storing them into data[:results][:raw], (seeget_raw_results
andget_results
) and savesdata
ifconfig[:save_data_parsed]
istrue
(default istrue
). This is mostly stored in case the results processing throws an error before completion. That way, there is no need to re-run the model.process_results!(config, data)
- Callsmodify_results!(mod, config, data)
for eachmod
in theconfig
. Savesdata
ifconfig[:save_data_processeded]
istrue
(default istrue
)
- Iterate, running more simulations as needed.
- See
Iterable
andread_config
for more information.
- See