Parma Polyhedra Library requirements
C++ mip values
PPL-SPEC-001467
1. Mixed integer problem values PPL-SPEC-001467

A problem of dimension n shall denote the points in Rn satisfying its stored equalities and non-strict inequalities, with coordinates in integer_space_dimensions() restricted to integers. Other coordinates shall remain unrestricted real coordinates. The objective shall be an affine linear expression, including its constant term. The mode shall select minimization or maximization. Stored constraints shall retain their mathematical meaning independently of subsequent source mutations.

The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

PPL-SPEC-001468
2. Trivial mixed integer construction and dimensions PPL-SPEC-001468

Construction from dim shall create a problem with no explicit constraints or integer coordinates, zero objective and maximization mode. The default dimension shall be zero. Dimension queries shall report its ambient extent and the supported maximum. An extent greater than the maximum, including the reserved non-dimension value, shall raise std::length_error.

The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

PPL-SPEC-001469
3. Mixed integer construction from constraints PPL-SPEC-001469

System construction shall copy its canonical admitted constraints, objective and mode. Range construction shall copy the constraints in the valid half-open input range; the overload with int_vars shall additionally select those integer coordinates. Omitted objectives and modes shall mean zero and maximization.

The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. It shall additionally provide operator-> for constraint metadata. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.

An excessive ambient dimension shall raise std::length_error. Strict rows shall follow 🔗 1. Integer-supported strict MIP admission. Unsupported strict support or constraint, objective or integer-coordinate dimensions greater than dim shall raise std::invalid_argument. Failed construction shall release every constraint copy already acquired.

The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

PPL-SPEC-001470
4. Mixed integer copying, exchange and reset PPL-SPEC-001470

Copying and assignment shall preserve the mathematical problem and permit independent later mutation and solving. Assignment shall return the receiver and support self-assignment. Exchange shall swap the complete problem and solver state; self-exchange shall preserve the value. clear shall reset to the zero-dimensional trivial problem. Destruction shall release owned constraints and solver storage.

The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

PPL-SPEC-001471
5. Mixed integer descriptor views and iterators PPL-SPEC-001471

Descriptor accessors shall expose the stored objective, optimization mode and integer-coordinate subset. Constraint iterators shall expose const canonical admitted constraints in insertion order, as defined by 🔗 1. Integer-supported strict MIP admission, and support random-access movement, difference, dereference and comparison within the same live sequence. The end position shall not be dereferenced. Iterator arithmetic shall stay within that sequence and its end. Mutations that reallocate, clear, exchange or replace storage may invalidate borrowed views and iterators.

Default-constructed constraint iterators shall be singular and compare equal to one another. They shall support copying, assignment and destruction; dereference and movement require assignment from a valid iterator first. The constraint iterator shall satisfy the C++20 bidirectional-iterator and sized-sentinel concepts, permitting standard range adapters and algorithms.

The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.