Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1007 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 1007 Bytes

CDR_Flex

Description

CDR optimization model

  1. Clean_data.py: Loads input excel file and cleans it.

  2. Functions_params.py: Creates all variables (e.g. costs, demand, capacities, etc.)

  3. Scenarios.json: Change parameter level of each scenario (high, medium, low)

  4. 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
  5. main.py: Alternate way to run all possible combinations of foresight, decision_period and max_growth_rate.

How to run

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>