Lorem ipsum color sit amet, consectetur adipiscing elite. Suspended Varius Enim in Eros Elementum Tristique. Duis cursus, mi quis viverra ornare, Eros Dolor Interdum Nulla, ut commodo diam libre vitae erat. Aenean faucibus nibh et usto cursus di rutrum lorem imperdit. Never ut without vitae risus tristique possesses.

Lorem ipsum color sit amet, consectetur adipiscing elite. Suspended Varius Enim in Eros Elementum Tristique. Duis cursus, mi quis viverra ornare, Eros Dolor Interdum Nulla, ut commodo diam libre vitae erat. Aenean faucibus nibh et usto cursus di rutrum lorem imperdit. Never ut without vitae risus tristique possesses.

Lorem ipsum color sit amet, consectetur adipiscing elite. Suspended Varius Enim in Eros Elementum Tristique. Duis cursus, mi quis viverra ornare, Eros Dolor Interdum Nulla, ut commodo diam libre vitae erat. Aenean faucibus nibh et usto cursus di rutrum lorem imperdit. Never ut without vitae risus tristique possesses.

Comgas redefines its energy decisions with intelligent planning in a new competitive market

Comgas transformed the management of gas contracts with intelligent models that optimize costs, risks and strategic decisions.

40×
More speed in scenario analysis compared to the use of spreadsheets.
— 15%
Total gas costs, optimizing contractual combinations.
Significant reduction in penalties for deviations from contracted volume.
December 12, 2025
By
Pyplan
Labels:
All industries
All markets
No items found.
No items found.

A market that changed the rules of the game

The opening of the New Gas Market in Brazil marked a turning point for the entire energy industry. The emergence of new suppliers, more flexible contractual modalities and multiple pricing schemes created a highly competitive environment, but also much more complex from a planning point of view. For Comgas, this new scenario involved going from analyzing two or three supply contracts to evaluating more than twenty simultaneous proposals, each with different combinations of prices, volumes, deadlines and logistics conditions.


Until then, contract analysis was mostly carried out using spreadsheets and manual evaluations, which limited the ability to compare scenarios, quantify risks and anticipate economic impacts. The lack of an integrated model made it difficult to answer key questions: what combination of contracts minimizes total cost, how demand deviations affect penalties, and what level of risk the company assumes in different macroeconomic contexts.

From Intuition to Quantitative Planning

Faced with this challenge, Comgas defined a clear objective: to professionalize and systematize decision-making related to the purchase of natural gas. It wasn't just about choosing cheaper contracts, but about building a robust supply strategy, capable of integrating demand projections, macroeconomic scenarios and regulatory rules into a single analytical process.


The company needed a flexible solution that would allow simulating short and medium-term scenarios, evaluating risks associated with volume deviations, and quickly adapting analyses to regulatory or market changes. The integration between tactical planning and operational decisions became critical to ensure coherence between strategy, signed contracts and actual operation.

Intelligence applied to critical decisions

With Pyplan, Comgas implemented a unified planning model and portfolio optimization of gas contracts. The platform made it possible to load all the contractual variables — prices, volumes, penalties, deadlines and modalities — and combine them with demand projections in different scenarios. Based on this model, optimization algorithms automatically identify the combination of contracts that minimizes the total cost and associated risk.


The solution incorporated advanced simulation capabilities, allowing analysts to adjust macroeconomic or consumption variables and obtain results in seconds. Pyplan's analytical intelligence and AI agents facilitated prescriptive analysis, explaining impacts and recommending optimal alternatives. This allowed us to move from a reactive approach, based on manual comparisons, to predictive and prescriptive planning, aligned with the dynamics of the new market.


The result was more agile, transparent and quantitative decision-making. Not only did Comgas manage to reduce costs and penalties, but it also incorporated a reusable strategic tool for future negotiations, strengthening its ability to adapt in an increasingly competitive energy market.

Learn how Pyplan can help you transform complex decisions into intelligent, actionable plans.
Learn about our solutions or talk to an expert:
👉 https://pyplan.com/es/entre-en-contacto/

About
Comgas
Main natural gas distributor in the state of São Paulo and one of the largest in Latin America, supplying homes, businesses and industries in Brazil.
More than 2.2 million customers.
Industry
Natural Gas
20,000 km
From the gas distribution network.
Leading operation in the state of São Paulo.

See Pyplan in action

Complete the form with your details and let us know!
we will get in touch with you!