CDR optimization model
-
Clean_data.py: Loads input excel file and cleans it.
-
Functions_params.py: Creates all variables (e.g. costs, demand, capacities, etc.)
-
Scenarios.json: Change parameter level of each scenario (high, medium, low)
-
Run.py: Where the model is built. Pyomo and the solver Gurobi are used. Runs only one pathway at a time, you have to manually change the inputs:
- max_growth_rate
- min_decline_rate
- foresight
- decision_period
- discount_rate
- penalty_cdr
- penalty_storage
-
main.py: Alternate way to run all possible combinations of foresight, decision_period and max_growth_rate.
Step 1. pip install -r requirements.txt
Step 2. Make sure you have Gurobi license credentials
Step 3. python Run.py -i <input_file_name> -s <scenario_input(low,mod,high)> -o <output_file_name>
Step 3. (alternate) python main.py -i <input_file_name> -s <scenario_input(low,mod,high)> -o <output_folder>