IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v402y2026ipcs0306261925017623.html

A novel differentiable predictive control (DPC) approach for safe and optimal EV charging and discharging scheduling

Author

Listed:
  • Li, Yuewei
  • Dong, Bing
  • Wang, Xuezheng
  • Qiu, Yueming

Abstract

Differentiable Predictive Control (DPC) has emerged as a data-driven alternative to Model Predictive Control (MPC), attracting growing interest across various research domains. Unlike traditional MPC, which relies on physics-based models, DPC utilizes black-box models—typically neural networks—to learn control policies. The primary advantage of DPC is its computational efficiency. However, a key challenge lies in ensuring constraint satisfaction, as neural network-based policies often struggle with maintaining feasibility. In conventional DPC frameworks for building-related studies, both equality and inequality constraints are enforced through penalty methods. However, tuning penalty parameters is complex, and constraint violations often persist. To address this issue, we propose a novel DPC approach that strictly enforces constraints. Specifically, we incorporate a projection layer based on Karush-Kuhn-Tucker (KKT) conditions to satisfy equality constraints. For inequality constraints, we replace the traditional penalty method with barrier functions, which provide steeper gradient as the solution approaches constraint boundaries, enforcing stricter constraint compliance. To evaluate the effectiveness of our approach, we apply it to an electric vehicle (EV) charging and discharging optimization problem, considering three objectives: minimizing electricity costs, reducing CO2 emissions, and load flattening. We compare our method against conventional penalty-based DPC and the augmented Lagrangian method. The results indicated that the proposed approach reduced constraint violations by over 90 % in occurrence, compared to the conventional penalty method. Additionally, objective performance improved, achieving a 3 % greater bill reduction, 12 % more CO2 reduction, and 29 % greater peak load reduction.

Suggested Citation

  • Li, Yuewei & Dong, Bing & Wang, Xuezheng & Qiu, Yueming, 2026. "A novel differentiable predictive control (DPC) approach for safe and optimal EV charging and discharging scheduling," Applied Energy, Elsevier, vol. 402(PC).
  • Handle: RePEc:eee:appene:v:402:y:2026:i:pc:s0306261925017623
    DOI: 10.1016/j.apenergy.2025.127032
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261925017623
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.127032?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:402:y:2026:i:pc:s0306261925017623. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.