Cyber-Physical Systems (BIL-435), week 9 of 14

Energy Optimisation: Economic Dispatch, Battery Scheduling and Demand Response

Prof. Dr. Utku Kose, Süleyman Demirel University

Energy optimisation lab

Two parts of this interactive lab are virtual laboratories in three dimensions (3D) with the hardware in the foreground. Part A runs whole days at the battery container of the campus. Part C opens the car park with its ten chargers. Part B computes the formulas of the lecture step by step, and Part D asks for the values of stage 9 by hand. Part E is a field task with the menu of the load controller of the car park. In the calculator every intermediate value is rounded, and the next step continues with the rounded value. The results of Parts A and C can be copied into the Colab notebook. Each laboratory first shows its site. Start moves the view closer, and the view returns to the site at the end. The laboratories work best with a mouse or a touchpad on a computer.

Part A: The battery container

The battery container of the campus holds the racks of the battery and its inverter. Beside it stand the transformer at the grid connection and the tariff board, which shows the price of each hour. The energy management system replays a whole day hour by hour and records the cost, the peak of the import and the state of charge at midnight.

Choose the day, the strategy and its settings below the view and press Run the day. A strategy that leaves less energy in the battery than at the start pays 0.15 € for each missing kWh in its corrected cost. Your missions: First, run the clear day without the battery, with the rule of Week 1 and with the optimal schedule. Second, run the cloudy day with the rule of Week 1 at 450 kW and with the optimal schedule. Third, tune the threshold of the rule until its corrected cost on the cloudy day comes within 1 percent of the optimum.

RunDayStrategySettingsCost (€)Peak (kW)State of charge at midnightCorrected cost (€)

Back to the lecture: Battery scheduling, where the text continues after the box of this part.
Continue in Colab, section 3: Paste your runs into MY_RUNS and compare them with the model.

Part B: The dispatch, step by step

The calculator follows the formulas of the lecture. It computes the economic dispatch of a night in megawatts (MW) with the base and the middle unit and the price for the campus. It then solves the two evening hours for the energy stored and the peak limit, and it compares two ways of charging car J.

Back to the lecture: Battery scheduling, where the text continues after the box of this part.
Continue in Colab, section 3: Schedule the battery of the campus as a linear program.

Part C: The car park

The car park of the campus has ten chargers of 22 kW and a load controller in its cabinet. Ten cars arrive and leave during the day, and each one needs its energy before it leaves. The board of the car park lists the cars with their arrival, their departure and the energy still missing. The screen of the controller shows the power of the car park and the import of the campus. The battery stays idle in this part.

Choose the strategy of the controller below the view and press Run the day. Your missions: First, run charging at once and charging in the cheapest hours, and compare the cost of the campus and its peak. Second, find the smallest limit of the car park, in steps of 11 kW, at which every car is full before it leaves. Third, run the optimal charging and compare it with the cheapest hours.

RunStrategyLimit (kW)Cost of the campus (€)Peak of the campus (kW)Cars full in timeEnergy missing (kWh)

Back to the lecture: Demand response, where the text continues after the box of this part.
Continue in Colab, section 4: Paste your runs into MY_CARS and compare them with the model.

Part D: By hand: Stage 9 of the microgrid

At night the region needs 700 MW, served by the base and the middle unit: Compute the incremental cost λ in €/MWh to two decimals. The battery holds 250 kWh above its minimum, and the import has no peak limit: Compute the saving of the two evening hours in €. Finally, a car arrives at 20:00, leaves at midnight and needs 66 kWh: Compute the cost in € of charging it in its three cheapest hours.

Back to the lecture: The campus microgrid, stage 9: The dispatch of the microgrid, where the text continues after the box of this part.
Continue in Colab, section 5: Compute the results of stage 9 of the campus microgrid.

Part E: Field task: The limit of the car park

The load controller of the car park arrives with the settings of its maker. Stage 9 gives the smallest limit of the car park in kilowatts, but the controller asks for a current in amperes per phase. It also asks for the fail-safe current, which each charger uses when it loses its controller. In both tests of the controller, ten cars are plugged in.

The keys work as on the real device. The keys ▲ and ▼ choose a line, OK opens it or starts and saves a change, and the escape key (ESC) goes back. A number changes digit by digit: ◀ and ▶ choose the digit, and ▲ and ▼ change it. On a computer, the arrow keys, Enter and Escape work as well, once the front panel has been clicked.

Back to the lecture: In the field: The limit in amperes, where the text continues after the box of this part.