Overview
E4ST.run_e4st — Functionrun_e4st(config) -> out_path
run_e4st(filename(s)) -> out_pathTop-level function for running E4ST. Here is a general overview of what happens:
- Book-keeping
read_config(config_file)- loads in theconfigfrom 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)- Themodelis optimized.
- Process Results
parse_results!(config, data, model)- Retrieves all necessary values and shadow prices frommodel, storing them into data[:results][:raw], (seeget_raw_resultsandget_results) and savesdataifconfig[: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 eachmodin theconfig. Savesdataifconfig[:save_data_processeded]istrue(default istrue)
- Iterate, running more simulations as needed.
- See
Iterableandread_configfor more information.
- See
Common Modifications
DCLine- description here