Decision Optimization

 View Only
Expand all | Collapse all

MILP On Pythong using Cplex for power plant optimization

  • 1.  MILP On Pythong using Cplex for power plant optimization

    Posted Mon October 16, 2023 01:41 PM

    Hi there, this code models a power generation optimization problem considering multiple plants with different capacities, costs, and startup costs. The goal is to minimize the total cost while meeting the demand for each hour. It includes constraints for power generation within the capacity limits, startup and shutdown conditions, and on/off states for each plant. It seems that the model is not correctly enforcing the constraints related to plant_on and startup_vars. Can anybody please help ? Thanks a lot 

    Hour 1 - Demand: 290 MW
    Plant 1 - Power Generated: 290.0 MW (Startup: 0), On/Off: 0, Cost: 1 €
    Plant 2 - Power Generated: 0 MW (Startup: 0), On/Off: 0, Cost: 2 €
    Plant 3 - Power Generated: 0 MW (Startup: 0), On/Off: 0, Cost: 3 €
    Hour 2 - Demand: 500 MW
    Plant 1 - Power Generated: 300.0 MW (Startup: 0), On/Off: 0, Cost: 1 €
    Plant 2 - Power Generated: 200.0 MW (Startup: 0), On/Off: 0, Cost: 2 €
    Plant 3 - Power Generated: 0 MW (Startup: 0), On/Off: 0, Cost: 3 €
    Solution:  {(0, 0): 290.0, (0, 1): 300.0, (1, 0): 0, (1, 1): 200.0, (2, 0): 0, (2, 1): 0}


    The model should be showing Startup 1 and on/off 1 for the second plant and the second hour


  • 2.  RE: MILP On Pythong using Cplex for power plant optimization

    Posted Mon October 23, 2023 09:20 AM

    Hello,

    nothing in your model forces Startup (nor on/off) to be 1. 

     



    ------------------------------
    Olivier Lhomme
    ------------------------------