Card; move Markowitz file to portfolio-markowitz-synthetic-mof
Browse filesFiles changed (2)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495---# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1# Doc / guide: https://huggingface.co/docs/hub/datasets-cards{}---**Curated by:** [Andrew Rosemberg & Contributors]# Dataset Card for Parametric Optimization Problems<!-- Provide a quick summary of the dataset. -->This dataset is a collection of parametrized optimization problems stored in [MathOptFormat](https://jump.dev/MathOptFormat/) (`.mof.json`) files. Each file encodes a mathematical optimization problem—its objective, constraints, and parameters—using a standardized data structure for portability and ease of parsing.## Dataset Details### Dataset Description<!-- Provide a longer summary of what this dataset is. -->Parametric optimization problems arise in scenarios where certain elements (e.g., coefficients, constraints) may vary according to problem parameters. This collection gathers different problem instances across various domains (e.g., power systems, control, resource allocation) in a uniform JSON-based format. Users can load, modify, and solve these problems with specialized libraries—particularly with the [LearningToOptimize.jl](https://github.com/andrewrosemberg/LearningToOptimize.jl) package in Julia.A general form of a parameterized convex optimization problem is$$\begin{aligned}&\min_{x} \quad f(x; \theta) \\&\text{subject to} \quad g_i(x; \theta) \leq 0, \quad i = 1,\dots, m \\&\quad\quad\quad\quad A(\theta)x = b(\theta)\end{aligned}$$where \\( \theta \\) is the parameter.## UsageUsing the [LearningToOptimize.jl](https://github.com/andrewrosemberg/LearningToOptimize.jl) package in julia,users can generate problem variants by sampling parameter values follwing defined rules:```juliausing LearningToOptimizegeneral_sampler("PGLib/Load/ACPPowerModel/pglib_opf_case3_lmbd.m_ACPPowerModel_load.mof.json";samplers=[(original_parameters) -> scaled_distribution_sampler(original_parameters, 10000),(original_parameters) -> line_sampler(original_parameters, 1.01:0.01:1.25),(original_parameters) -> box_sampler(original_parameters, 300),],)```where `scaled_distribution_sampler`, `line_sampler` and `box_sampler` are some examples of built in samplers.### Outside Dataset Sources<!-- Provide the basic links for the dataset. -->- **PGLib:** [power-grid-lib](https://github.com/power-grid-lib/pglib-opf)- **JuMP** [JuMP Tutorials](https://github.com/jump-dev/JuMP.jl)## Uses<!-- Address questions around how the dataset is intended to be used. -->### Direct UseThese problems can be directly used to:- Test **solver performance** on a variety of instances.- **Benchmark** machine learning models that learn optimization proxies.- Generate **synthetic scenarios** by applying parametric samplers for stress-testing or research.### Out-of-Scope Use- The dataset is not intended for training general-purpose NLP or computer vision models.- Direct personal or sensitive information is not included, so any privacy-infringing use does not apply.## Dataset StructureTBD## File StructureIn a typical `.mof.json` file, you will find:- **Objectives**: Specifies the optimization sense (e.g., `Min`, `Max`) and the functions to be optimized.- **Variables**: A list of decision variables, potentially including parameters as special variable entries.- **Constraints**: Each constraint references a function (made up of one or more variables) and a set specifying bounds, including `Parameter` sets for parametric variables.An example snippet for a parameter:```json{"function": {"name": "name_of_parameter","type": "Variable"},"set": {"type": "Parameter","value": 1.0}}123456789101112131415161718192021222324252627282930313233---license: cc-by-4.0tags: [acopf, power-systems, parametric-optimization, mathoptformat]pretty_name: AC-OPF PGLib load-parametrized problems (MathOptFormat)---# acopf-pglib-loads-mof## What it isParametrized AC optimal power flow (AC-OPF) problems, one file per network case, stored in [MathOptFormat](https://jump.dev/MathOptFormat/) (`.mof.json`). Each file encodes the objective, constraints and the load parameters theta of the problemmin_x f(x; theta) s.t. g_i(x; theta) <= 0, A(theta) x = b(theta)so that instances can be generated by sampling theta.## How it was producedThe networks are the cases of PGLib-OPF (https://github.com/power-grid-lib/pglib-opf), from 14 to about 20,000 buses, formulated with PowerModels (`ACPPowerModel`) and JuMP, with the nodal loads exposed as parameters. The files contain the problem definition only (no solutions). Instances are produced from them with the samplers of LearningToOptimize.jl (https://github.com/LearningToOptimize/LearningToOptimize.jl).## Structure`PGLib/Load/ACPPowerModel/<case>.m_ACPPowerModel_load.mof.json`, 66 files, 0.16 MB to 283 MB (about 4.6 GB in total). In a file: objective (sense and function), variables (parameters appear as variables constrained to a `Parameter` set), and constraints with their sets.## UsesBenchmarking solvers and learned optimization proxies; generating instances by sampling loads. Not intended for training general-purpose language or vision models. No personal data.## LicenseCreative Commons Attribution 4.0 (CC BY 4.0), following the PGLib-OPF data license (https://creativecommons.org/licenses/by/4.0/). The cases were adapted into parametrized form; credit the PGLib-OPF authors. The generating code (LearningToOptimize.jl) is MIT.## SourceGenerated with LearningToOptimize.jl; exact commit not recorded for this early upload.## Related`acopf-case300-diffopt-sensitivity-systems`, `acopf-pegase89-madnlp-spcond-systems`, `portfolio-markowitz-synthetic-mof` (formerly in this repository).Formerly named `Parametric-Optimization-Problems`; the Markowitz file that used to be here moved to `portfolio-markowitz-synthetic-mof`.
Markowitz/OBJ_AND_STD_LIMIT/RANDOM_SEED_1_NUM_ASSETS_500_MARKOWITZ_OBJ_AND_STD_LIMIT.mof.jsonDeleted
README.md+20-82