energy#
Battery Energy Storage System (BESS) Evaluation Model#
Description: This optimization model determines the optimal hourly operation of a grid-connected battery and solar PV system to maximize total value from energy savings, demand reduction, and grid services over a one-year horizon. The mixed-integer linear program captures the complex interplay between facility load, equipment constraints, and multiple revenue streams to produce a profit-maximizing operational schedule.
Bilevel Markets#
Description: A notebook that presents a comprehensive mathematical formulation of strategic bidding in electricity markets using bilevel optimization and its equivalent single-level Mathematical Program with Equilibrium Constraints (MPEC) obtained through Karush-Kuhn-Tucker (KKT) transformation.
Tags: educational, bilevel, complementarity, amplpy, gurobi, knitro, baron, mpec, energy, electric-power-industry
Capacity expansion of power generation#
Description: Models the extensive form of a deterministic multi-stage capacity expansion problem. In this model we can have multiple resources of the same type which have identical properties. The model can be further developed into a stochastic one.
Diverse alternatives: beyond the solution pool#
Description: Generate near-optimal alternatives that really differ: a solution pool against max-min Modelling to Generate Alternatives (MGA) on a unit commitment model, with the budget as a constraint or as an objective hierarchy
Tags: mp, mga, alternative-solutions, solution-pool, multi-objective, suffixes, unit-commitment, energy, milp, amplpy, highs, gurobi
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Hierarchies with tolerances: the Pareto front and pass statistics#
Description: Cost, emissions and starts in a unit commitment model: objective priorities and tolerances as AMPL suffixes, per-pass statistics, native against emulated hierarchies, and the Pareto front traced by a tolerance sweep
Tags: mp, multi-objective, pareto-front, suffixes, unit-commitment, energy, milp, amplpy, highs, gurobi
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Hydrogen Facility Operations Introduction#
Description: A notebook that demonstrates the optimization of a green hydrogen production facility that must navigate the complex interplay between variable renewable energy supply, fluctuating electricity prices, multiple market segments, and operational constraints.
Infeasible? Ask the solver for an IIS#
Description: Find out why a unit commitment model is infeasible: ask an MP solver for an irreducible infeasible subsystem (IIS) and read it through AMPL suffixes in amplpy
Tags: mp, iis, infeasibility, suffixes, unit-commitment, energy, milp, amplpy, highs, gurobi, xpress
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Power Generation Portfolio Optimization#
Description: Power generation portfolio optimization to manage several assets and resources.
Power System Optimization with Amplpower package#
Description: this notebook uses amplpower package to solver opf problems
Price what you would relax: feasibility relaxation and priced slacks#
Description: After an infeasible unit commitment: a priced feasibility relaxation through AMPL suffixes (.rhspen, .lbpen, .ubpen) against a slack priced in the model, which runs on any solver and sweeps into an operating reserve demand curve
Tags: mp, feasibility-relaxation, infeasibility, suffixes, unit-commitment, energy, milp, amplpy, highs, gurobi
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Unit Commitment MINLP with Knitro#
Description: Solving a nonlinear Unit Commitment problem with Knitro using MP features for logic and multi-objective optimization. The goal of this notebook is to show a straightforward and clear way of using nonlinear solvers for complex models with logical expressions and also hierarchical multi-objective optimization.
Tags: mp, knitro, mp2nl, nonlinear, quadratic, minlp, unit-commitment, electric-power-industry, energy, multi-objective, gurobi, xpress, mp2nl
Unit Commitment for Colombia’s Energy Market#
Description: Unit Commitment and Reserve Co-Optimization in the Colombian Market.
Unit Commitment for Electrical Power Generation#
Description: This notebook illustrates the power generation problem using AMPL. The original version featured the Gurobi solver. By default, this notebook uses the HiGHS and CBC solvers.