time:
  starttime: 2018-02-27 00:00:00
  endtime: 2018-02-28 00:00:00
  timeunit: hour
  timeresolution:
    2018-02-27 00:00:00: 1
model:
  reservoir:
    Reservoir1:
      max_vol: 12
      lrl: 90
      hrl: 100
      vol_level:
        ref: 0
        x:
          - 0
          - 12
          - 14
        y:
          - 90
          - 100
          - 101
      start_level: 92
      inflow:
        2018-02-27 00:00:00: 10
      energy_value_input: 39.7
    Reservoir2:
      max_vol: 5
      lrl: 40
      hrl: 50
      vol_level:
        ref: 0
        x:
          - 0
          - 5
          - 6
        y:
          - 40
          - 50
          - 51
      start_level: 43
      inflow:
        2018-02-27 00:00:00: 0
  plant:
    Plant1:
      outlet_line: 40
      main_loss:
        - 0.0002
      penstock_loss:
        - 0.0001
  generator:
    P1G1:
      penstock: 1
      p_min: 25
      p_max: 100
      p_nom: 100
      gen_eff_curve:
        ref: 0
        x:
          - 0
          - 100
        y:
          - 95
          - 98
      turb_eff_curves:
        - ref: 90
          x:
            - 25
            - 90
            - 100
          y:
            - 80
            - 95
            - 90
        - ref: 100
          x:
            - 25
            - 90
            - 100
          y:
            - 82
            - 98
            - 92
      startcost:
        2018-02-27 00:00:00: 500
  river:
    outlet:
      upstream_elevation: 50
      flow_cost:
        2018-02-27 00:00:00: 10
  market:
    Day_Ahead:
      max_buy:
        2018-02-27 00:00:00: 9999
      max_sale:
        2018-02-27 00:00:00: 9999
      buy_price:
        2018-02-27 00:00:00: 20.01
        2018-02-27 06:00:00: 40.01
      sale_price:
        2018-02-27 00:00:00: 19.99
        2018-02-27 06:00:00: 39.99
  pump:
    P1P1:
      penstock: 1
      p_min: 38
      p_max: 42
      p_nom: 40
      gen_eff_curve:
        ref: 0
        x:
          - 0
          - 50
        y:
          - 100
          - 100
      turb_eff_curves:
        - ref: 40
          x:
            - 80
          y:
            - 87
        - ref: 50
          x:
            - 70
          y:
            - 86
        - ref: 60
          x:
            - 60
          y:
            - 85
      startcost:
        2018-02-27 00:00:00: 500
connections:
  - from: Reservoir1
    to: Plant1
  - from: P1G1
    to: Plant1
  - from: P1P1
    to: Plant1
  - from: Plant1
    to: Reservoir2
  - from: Reservoir2
    to: outlet
commands:
  - start sim 3
  - set code /inc
  - start sim 3