A Decision-Support Framework for Contracted Demand and Tariff Management in Brazilian Group A Consumers
Abstract
1. Introduction
1.1. General Considerations
1.2. State of the Art
1.3. Motivation and Contributions
- The formalization of Brazilian Group A billing rules, including Green and Blue time-of-use tariff modalities, active energy charges, active demand charges, overrun penalties, and tax treatment;
- The implementation of this formulation in a Python-based tool designed for transparent and reproducible use by energy managers;
- The comparison between the Maximum Recorded Demand criterion and a Grid Search cost-minimization procedure, representing conservative and cost-oriented decision strategies;
- The validation of the framework using real billing data from two consumer units, combining retrospective out-of-sample assessment and observed post-implementation savings after real contract revision.
2. Regulatory and Mathematical Background
2.1. Conventional Tariff Modality
2.2. Green Time-of-Use Tariff Modality
2.3. Blue Time-of-Use Tariff Modality
2.4. Rates, Taxes and Final Billed Cost
2.5. Contracted Demand Definition
2.5.1. Maximum Recorded Demand Method
2.5.2. Grid Search Method
3. Tool Development and Computational Implementation
3.1. Computational Implementatio of Contracted Demand
3.2. Computational Workflow
3.3. Interface and User Interaction
3.4. Transition to Validation
4. Methodology and Validation
4.1. Case-Study Design
- Installation No. 0010054117 was selected for retrospective validation. In this case, one 12-month billing cycle was used as the analysis horizon to determine the optimal tariff modality and contracted-demand values, and the resulting recommendation was then applied to a subsequent 12-month unseen period. Since no contractual revision was actually implemented for this consumer unit, this case provides a counterfactual validation setting in which the projected savings can be estimated by comparing the unchanged contract with the optimized alternatives.
- Installation No. 2001131798 was selected for real-world validation. In this case, the recommendation generated by DSManager was effectively implemented with the utility, allowing the pre-intervention and post-intervention billing outcomes to be compared. This case, therefore, provides direct evidence of the practical economic effect of the proposed framework under actual operating conditions.
4.2. Retrospective Validation: Installation No. 0010054117
4.3. Real-World Validation: Installation No. 2001131798
4.4. Discussion of Validation Results
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Fernández, M.A.; Zorita, A.L.; García-Escudero, L.A.; Duque, O.; Moríñigo, D.; Riesco, M.; Muñoz, M. Cost Optimization of Electrical Contracted Capacity for Large Customers. Int. J. Electr. Power Energy Syst. 2013, 46, 123–131. [Google Scholar] [CrossRef]
- Moreira, G.A.M.; Tabora, J.M.; Soares, T.M.; de Lima Tostes, M.E.; Bezerra, U.H.; de M. Carvalho, C.C.M.; de Matos, E.O. Demand Side Management Strategies for the Introduction of Electric Vehicles: A Case Study. In Proceedings of the 2023 IEEE Colombian Caribbean Conference (C3), Barranquilla, Colombia, 22–25 November 2023; pp. 1–6. [Google Scholar]
- Palensky, P.; Dietrich, D. Demand Side Management: Demand Response, Intelligent Energy Systems, and Smart Loads. IEEE Trans. Ind. Inform. 2011, 7, 381–388. [Google Scholar] [CrossRef]
- Faruqui, A.; Sergici, S. Household Response to Dynamic Pricing of Electricity: A Survey of 15 Experiments. J. Regul. Econ. 2010, 38, 193–225. [Google Scholar] [CrossRef]
- Agência Nacional de Energia Elétrica (ANEEL). Resolução 1000 da ANEEL, Seus Direitos Sobre Energia Elétrica, Agora Num só Lugar! Brasília, Brazil. Available online: https://www.gov.br/aneel/pt-br/assuntos/campanhas/resolucao-1000-da-aneel-seus-direitos-sobre-energia-eletrica-agora-num-so-lugar-2022 (accessed on 3 April 2026).
- Agência Nacional de Energia Elétrica (ANEEL). Modalidades Tarifárias, Brasília, Brazil. Available online: https://www.gov.br/aneel/pt-br/assuntos/tarifas/entenda-a-tarifa/modalidades-tarifarias (accessed on 3 April 2026).
- Liu, K.; Li, B.; Jiang, Q.; Zhang, Y.; Liu, T. Fault Ride-Through Strategy for Hybrid Cascaded HVdc Systems Based on Controllable LCC. IEEE Trans. Circuits Syst. II Express Briefs 2026, 73, 88–92. [Google Scholar] [CrossRef]
- Dos Reis, J.R.; Muñoz Tabora, J.; Carvalho De Lima, M.; Pessoa Monteiro, F.; Cruz De Aquino Monteiro, S.; Holanda Bezerra, U.; Emília De Lima Tostes, M. Medium and Long Term Energy Forecasting Methods: A Literature Review. IEEE Access 2025, 13, 29305–29326. [Google Scholar] [CrossRef]
- Dharani, R.; Balasubramonian, M.; Babu, T.S.; Nastasi, B. Load Shifting and Peak Clipping for Reducing Energy Consumption in an Indian University Campus. Energies 2021, 14, 558. [Google Scholar] [CrossRef]
- Prakobkaew, P.; Sirisumrannukul, S. Load Aggregation Management Strategies for Demand Response: A Dual Forecasting Approach for Cost Minimization. Front. Energy Res. 2025, 13, 1511207. [Google Scholar] [CrossRef]
- Mendes, N.; Tabora, J.M.; de Lima Tostes, M.E.; Matos, E.O.d.; H.Bezerra, U.; Moura, P.; Mendes, J.; Ferreira, F.J.T.E.; Almeida, A.T.d. ANN for Motor Loading Diagnosis under Voltage Variation Conditions. In Proceedings of the 2023 IEEE Kansas Power and Energy Conference (KPEC), Manhattan, KS, USA, 27–28 April 2023; pp. 1–6. [Google Scholar]
- Tabora, J.M.; de Lima Tostes, M.E.; de Matos, E.O.; Bezerra, U.H. Voltage Unbalance & Variations Impacts on IE4 Class LSPMM. In Proceedings of the 2021 14th IEEE International Conference on Industry Applications (INDUSCON), São Paulo, Brazil, 15–18 August 2021; pp. 940–946. [Google Scholar]
- Tshoombe, B.K.; Muñoz Tabora, J.; da Silva Fonseca, W.; Emília Lima Tostes, M.; de Matos, E.O. Voltage Harmonic Impacts on Line Start Permanent Magnet Motor. In Proceedings of the 2021 14th IEEE International Conference on Industry Applications (INDUSCON), São Paulo, Brazil, 15–18, August 2021; pp. 962–968. [Google Scholar]
- Tabora, J.M.; Tshoombe, B.K.; Fonseca, W.d.S.; Tostes, M.E.d.L.; Matos, E.O.d.; Bezerra, U.H.; Silva, M.d.O.e. Virtual Modeling and Experimental Validation of the Line-Start Permanent Magnet Motor in the Presence of Harmonics. Energies 2022, 15, 8603. [Google Scholar] [CrossRef]
- Wang, Y.; Li, L. Time-of-Use Electricity Pricing for Industrial Customers: A Survey of U.S. Utilities. Appl. Energy 2015, 149, 89–103. [Google Scholar] [CrossRef]
- Hung, Y.-C.; Michailidis, G. Modeling and Optimization of Time-of-Use Electricity Pricing Systems. IEEE Trans. Smart Grid 2019, 10, 4116–4127. [Google Scholar] [CrossRef]
- Ansarin, M.; Ghiassi-Farrokhfal, Y.; Ketter, W.; Collins, J. The Economic Consequences of Electricity Tariff Design in a Renewable Energy Era. Appl. Energy 2020, 275, 115317. [Google Scholar] [CrossRef]
- Tabora, J.M.; Velasquez, Y.G.; Rivera, D.A.; Quijano, D.A.; Melgar-Dominguez, O.D. A Multiobjective Strategy for Generation Expansion Planning to Enable Increased Penetration of Variable Renewable Energy Sources. IEEE Access 2024, 12, 187665–187675. [Google Scholar] [CrossRef]
- Wilk, P.; Cantor, E.; Li, J. Net-Zero Emission for Multi-Energy Campus System. In Proceedings of the 2023 IEEE Power & Energy Society General Meeting (PESGM), Orlando, FL, USA, 16–20 July 2023; pp. 1–5. [Google Scholar]
- Marangoni, F.; Magatão, L.; de Arruda, L.V.R. Demand Response Optimization Model to Energy and Power Expenses Analysis and Contract Revision. Energies 2020, 13, 2803. [Google Scholar] [CrossRef]
- Alcayde, A.; Baños, R.; Arrabal-Campos, F.M.; Montoya, F.G. Optimization of the Contracted Electric Power by Means of Genetic Algorithms. Energies 2019, 12, 1270. [Google Scholar] [CrossRef]
- Martins, A.M.; Guimarães Medeiros, C.A.; Domingos, J.L.; Reis, M.R.; Pacheco, W.C.; de Aquino Gomes, R. Minimization of the Electricity Bill of Brazilian Consumers with PV System through the Optimization of Contracting Demand and the Orientation of Photovoltaic Panels. In Proceedings of the 2019 IEEE International Conference on Environment and Electrical Engineering and 2019 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Genova, Italy, 11–14 June 2019; pp. 1–6. [Google Scholar]
- dos Santos Junior, L.C.; Tabora, J.M.; Reis, J.; Andrade, V.; Carvalho, C.; Manito, A.; Tostes, M.; Matos, E.; Bezerra, U. Demand-Side Management Optimization Using Genetic Algorithms: A Case Study. Energies 2024, 17, 1463. [Google Scholar] [CrossRef]
- Jhones Passos Nascimento, A.; Berrehil El Kattel, M.; Antônio Fernandes de Macêdo, J.; Antunes, F.L.M. Integrated Time Series Analysis, Clustering, and Forecasting for Energy Efficiency Optimization and Tariff Management. IEEE Access 2025, 13, 59309–59325. [Google Scholar] [CrossRef]
- dos Santos, L.C.; Muñoz Tabora, J.; Figueredo Rocha, C.A.; Moura de M. C., C.C.; Soares, T.M.; Emília de Lima Tostes, M. Energy Demand Forecasting for High Energy Consumers: A Case Study in Brazil. In Proceedings of the 2024 IEEE International Symposium on Technology and Society (ISTAS), Puebla, Mexico, 18–20 September 2024; pp. 1–6. [Google Scholar]
- de Freitas, R.C.; Gregorio, R.M.; Cruz, M.D. Application of Classical Optimization Methods to Reduce Demand for Contracted Energy in the Brazilian Public Sector. Energy Effic. 2026, 19, 21. [Google Scholar] [CrossRef]
- Chen, C.-Y.; Liao, C.-J. A Linear Programming Approach to the Electricity Contract Capacity Problem. Appl. Math. Model. 2011, 35, 4077–4082. [Google Scholar] [CrossRef]
- Chassin, D.P.; Sun, Y.; Somani, A. Optimization of Customer Subscription Rates to Electric Utility Tariffs. In Proceedings of the 2015 48th Hawaii International Conference on System Sciences, Kauai, HI, USA, 5–8 January 2015; pp. 2604–2609. [Google Scholar]
- Rosado, B.; Torquato, R.; Venkatesh, B.; Gooi, H.B.; Freitas, W.; Rider, M.J. Framework for Optimizing the Demand Contracted by Large Customers. IET Gener. Transm. Distrib. 2020, 14, 635–644. [Google Scholar] [CrossRef]
- Ordóñez, Á.; Sánchez, E.; Carlos Solano, J.; Parra-Domínguez, J. Demand Charges Reduction with Photovoltaics in Industry. Heliyon 2024, 10, e23404. [Google Scholar] [CrossRef]
- Lin, J.-L.; Zhang, Y.; Zhu, K.; Chen, B.; Zhang, F. Asymmetric Loss Functions for Contract Capacity Optimization. Energies 2020, 13, 3123. [Google Scholar] [CrossRef]
- Leonel, L.D.; Balan, M.H.; Camargo, L.A.S.; Ramos, D.S.; Castro, R.; Clemente, F.S. Stochastic Decision-Making Optimization Model for Large Electricity Self-Producers Using Natural Gas in Industrial Processes: An Approach Considering a Regret Cost Function. Energies 2024, 17, 5389. [Google Scholar] [CrossRef]
- Ferdavani, A.K.; Hooshmand, R.-A.; Gooi, H.B. Analytical Solution for Demand Contracting with Forecasting-Error Analysis on Maximum Demands and Prices. IET Gener. Transm. Distrib. 2018, 12, 3097–3105. [Google Scholar] [CrossRef]
- Tai, S.-H.; Tsai, M.-T.; Huang, W.-H.; Tsai, Y.-H. Contracted Capacity Optimization Problem of Industrial Customers with Risk Assessment. Inventions 2024, 9, 81. [Google Scholar] [CrossRef]
- Agência Nacional de Energia Elétrica (ANEEL). Procedimentos de Regulação Tarifária—PRORET, Módulo 7: Estrutura Tarifária das Concessionárias de Distribuição de Energia Elétrica, Submódulo 7.1: Procedimentos Gerais, Brasília, Brazil. Available online: https://Www.Gov.Br/Aneel/Pt-Br/Centrais-de-Conteudos/Procedimentos-Regulatorios/Proret (accessed on 21 May 2026).
- Agência Nacional de Energia Elétrica (ANEEL). Base de Dados Das Tarifas Das Distribuidoras de Energia Elétrica, Portal ANEEL de Relatórios Abertos, Brasília, Brazil. Available online: https://portalrelatorios.aneel.gov.br/luznatarifa/basestarifas (accessed on 21 May 2026).
- Base Legislação da Presidência da República—Lei Complementar No 87 de 13 de Setembro de 1996. Available online: https://legislacao.presidencia.gov.br/atos/?tipo=LCP&numero=87&ano=1996&ato=6b9oXSq1UMJpWTfd0 (accessed on 3 April 2026).
- Superior Tribunal de Justiça. Súmula n. 391: O ICMS Incide Sobre o Valor da Tarifa de Energia Elétrica Correspondente à Demanda de Potência Efetivamente Utilizada. Diário da Justiça Eletrônico, 7 October 2009. Available online: https://www.stj.jus.br/docs_internet/revista/eletronica/stj-revista-sumulas-2013_36_capSumula391.pdf (accessed on 21 May 2026).
- Brasil: Ministério da Economia. Cartilha Energia: Como Analisar Gastos com Energia Elétrica, 2nd ed.; Secretaria de Gestão: Brasília, Brazil, 2020. Available online: https://www.gov.br/compras/pt-br/sistemas/arquivos-doc-e-pdf/cartilha_energia.pdf (accessed on 5 March 2026).
- Liashchynskyi, P.; Liashchynskyi, P. Grid Search, Random Search, Genetic Algorithm: A Big Comparison for NAS. Available online: https://arxiv.org/abs/1912.06059v1 (accessed on 3 April 2026).
- Bergstra, J.; Bengio, Y. Random Search for Hyper-Parameter Optimization. J. Mach. Learn. Res. 2012, 13, 281–305. [Google Scholar]
- McKinney, W. Data Structures for Statistical Computing in Python. SciPy 2010, 445, 51–56. [Google Scholar] [CrossRef]
- Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array Programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef]
- Streamlit. Basic Concepts of Streamlit, Streamlit Docs. Available online: https://Docs.Streamlit.Io/Get-Started/Fundamentals/Main-Concepts (accessed on 21 May 2026).












| Notation | Description |
|---|---|
| Consumption of the UC can be separated by tariff station according to the modality applied. | |
| Energy tariff applied to consumption per tariff station in R$/kWh according to the tariff modality. | |
| Tariff for the Use of the Distribution System applied to energy consumption in R$/kWh and active power demand in R$/kW, according to the station and tariff modality. | |
| Active power demand in kW can be separated by tariff station, according to the modality applied. |
| Optimization Method for Contracted Demand | Annual Cost for Analysis Period | Annual Cost for Validation Period | ||
|---|---|---|---|---|
| Green | Blue | Green | Blue | |
| No Alteration | US$57,259.96 | - | US$54,110.75 | - |
| MRD | US$47,022.60 | US$48,947.26 | US$44,649.08 | US$47,224.73 |
| Grid Search | US$47,020.60 | US$48,259.89 | US$44,556.55 | US$46,251.37 |
| Contracted Demand Optimization Method | Projected Average Monthly Savings |
|---|---|
| MRD (240 kW) | US$1932.39 |
| Grid Search (206 kW) | US$2214.87 |
| Contracted Demand Optimization Method | Total Cost over the Period (9 Months) | Monthly Savings |
|---|---|---|
| No Alteration (450 kW) | US$93,975.15 | - |
| MRD (240 kW) | US$76,476.38 | US$1944.31 |
| Grid Search (206 kW) | US$74,515.09 | US$2162.23 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lima, C.M.; Muñoz Tabora, J.; Rocha, C.A.; Carvalho, C.C.M.d.M.; Bezerra, U.H.; Tostes, M.E.d.L. A Decision-Support Framework for Contracted Demand and Tariff Management in Brazilian Group A Consumers. Energies 2026, 19, 2579. https://doi.org/10.3390/en19112579
Lima CM, Muñoz Tabora J, Rocha CA, Carvalho CCMdM, Bezerra UH, Tostes MEdL. A Decision-Support Framework for Contracted Demand and Tariff Management in Brazilian Group A Consumers. Energies. 2026; 19(11):2579. https://doi.org/10.3390/en19112579
Chicago/Turabian StyleLima, Cleydson Matos, Jonathan Muñoz Tabora, Cezar Augusto Rocha, Carminda Célia Moura de Moura Carvalho, Ubiratan H. Bezerra, and Maria Emília de Lima Tostes. 2026. "A Decision-Support Framework for Contracted Demand and Tariff Management in Brazilian Group A Consumers" Energies 19, no. 11: 2579. https://doi.org/10.3390/en19112579
APA StyleLima, C. M., Muñoz Tabora, J., Rocha, C. A., Carvalho, C. C. M. d. M., Bezerra, U. H., & Tostes, M. E. d. L. (2026). A Decision-Support Framework for Contracted Demand and Tariff Management in Brazilian Group A Consumers. Energies, 19(11), 2579. https://doi.org/10.3390/en19112579

