MathProg is a special purpose programming language that allows to formulate mathematical optimization problems. Its syntax closely follows the mathematical notation, allowing for a close correspondence between mathematical description and code.
Storage sizing/operation
SOforSG.mod (Storage Optimization for Smart Grid) is a minimal example of a linear optimization problem, dealing for dimensioning and operation of a lossless energy storage. Its goal is to minimize operational costs of the household for energy purchase. For brevity, the model is quite minimalistic.