At first sight, awarding a supply tender looks like a matter of sorting bids from cheapest to most expensive. It is not. Each bid states the minimum and maximum number of sub-blocks it will accept, some are only valid if awarded together with others, zonal blocks require balance among their components and nothing may exceed the Reserve Price. Under those conditions the number of feasible combinations grows exponentially with the number of bids, and going through them one by one stops being viable.
For the 2026/01 Supply Tender, which Chile's National Energy Commission (CNE) runs to supply regulated customers, we at SPEC developed the tool that solves that award. This column gathers some details of the implementation; the full walkthrough is in the presentation (in Spanish).
Three problems per block
The tool implements the award mechanism in section 9.2.3.2 of the Bidding Rules, together with the Levelized Price in 9.2.3.1 and the tie-break in 9.2.3.3, both invoked by that section. For each Supply Block it solves three mixed-integer linear optimization problems, one for each selection the section calls for. Each considers every valid and feasible combination of bids and returns the one with the lowest weighted average Levelized Price.
The first is the base case in point c). It awards while respecting each bid's sub-block range, the Reserve Price, the bids that must go together and a zonal condition: the same number of sub-blocks in components A, B and C of each Zonal Block. Its result is a reference price for what follows. The second is the First Stage in points d) and e), with the same constraints except the zonal one. The third is the Auction in point j), which opens only for the energy the First Stage left uncovered: it first maximizes the energy awarded and then minimizes the price. The zonal condition returns at that point, but on the sum of both stages.
The price of what is missing
The detail that orders the whole mechanism is how the energy left unawarded is valued. A problem that minimizes price and can leave energy uncovered at zero cost would rather award nothing; that is why, in each of the three problems, what is missing has a price. In the base case and in the Auction it is the Reserve Price plus 0.001. Since no valid bid exceeds the Reserve Price, covering the energy always beats leaving it empty.
In the First Stage that price depends on how much is missing, under point d). If the uncovered energy is below 40% of the block, it is valued at the base case price plus 0.001; if it reaches or exceeds that threshold, it goes back to the Reserve Price plus 0.001. In other words, when the First Stage is close to covering the block, the base case acts as a ceiling: a bid more expensive than it does not improve the result.
Seven possible outcomes
From point d) onwards, the mechanism is a decision tree. If the First Stage covers the whole block, it is awarded as is (point f). If not, the Second Stage opens (point g) and the remaining energy is auctioned. When the Auction is not feasible, the base case is awarded (point k). When it is, the price of the First Stage plus the Auction is compared with that of the base case, and the First Stage plus the Auction is awarded unless it turns out more expensive (point l).
Supply Block No. 2 repeats the three problems with the conditional bids that were not awarded in No. 1 (point m). That is why the stages follow a strict order: First and Second Stage of Block No. 1, then those of Block No. 2.
Ties and the seed
A mechanism that seeks the lowest price may find more than one combination with the same price, a problem we already discussed in the context of battery dispatch. The Bidding Rules settle it in section 9.2.3.3: the bid with the most sub-blocks wins, up to the maximum capacity tendered, and if the tie persists it is drawn by lot. The tool runs that draw with a seed set on the configuration sheet. Thus, with the same data and the same seed, it always returns the same result.
The tool is not the rule
In practice, the tool is an Excel workbook with macros connected to an optimization model. Bids are pasted exactly as they come in Document 15, and each stage runs through a macro that checks the data, sends it to the model, solves it and loads the solution into the results sheets. If something goes wrong during loading, the macro shows an error code and points to the cell.
It is worth being precise about its scope, though. The award is defined by the Bidding Rules; the tool is one implementation of that mechanism. It does not review administrative bids —it evaluates economic bids as entered— and it is not indispensable: any implementation that follows the same principles of section 9.2.3.2 must reach the same result. In our view, that is its greatest value. A model that opens its method, and whose result anyone holding the bids can reproduce, gives the process a transparency that a closed spreadsheet could not offer.