Parma Polyhedra Library requirements
C++ pip solving
PPL-SPEC-001489
1. Parametric solver outcomes and satisfiability PPL-SPEC-001489

A completed solve shall return UNFEASIBLE_PIP_PROBLEM for infeasibility and OPTIMIZED_PIP_PROBLEM with a retained tree otherwise. With no big parameter, infeasibility shall mean that no assignment in the initial context has a feasible nonnegative integer decision tuple. With a big parameter, the status shall reflect the sign decisions in 🔗 4. Parametric big-parameter designation. is_satisfiable shall solve as needed and return true exactly for the optimized status. An infeasible subregion of a partly feasible context shall not imply global infeasibility in ordinary mode. Repeated queries may reuse current state without changing the mathematical result.

An integer search over an unbounded parameter context or feasible region may run indefinitely. Configured deterministic weight limits and supported cancellation shall be observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.

Integer compatibility checks used to determine feasibility shall follow 🔗 5. Integer feasibility of parametric compatibility contexts.

Ordinary bounded-coefficient simplex pivots shall preserve the shared rational tableau across both its variable and parameter numerator matrices. When direct arithmetic has not been proved representable, the complete pivot shall be evaluated exactly and the common positive factor of both numerator matrices and their one denominator shall be cancelled before coefficient admission. Rows shall not be scaled independently. Parameter-row and cut-selection scores, including products of residue sums, shall be compared as exact working integers without requiring those comparison-only values to fit a coefficient. Pivot and cut ties shall retain their existing traversal order.

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

PPL-SPEC-001490
2. Parametric solution-tree access PPL-SPEC-001490

Both accessors shall solve a pending problem as needed and return a borrowed const tree describing its current lexicographic optima. Infeasibility in the selected solve mode shall return a null tree. Interpret a returned tree only at assignments satisfying the initial context and, if a big parameter is designated, the sign assumptions in 🔗 4. Parametric big-parameter designation. On such assignments, every reached feasible leaf shall provide the least decision tuple; a missing branch or a failed leaf guard shall denote infeasibility for that context subset. Mutation, replacement, destruction or a cache-replacing query on the owning problem may invalidate the tree and its derived views.

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

PPL-SPEC-001491
3. Parametric cutting and pivot controls PPL-SPEC-001491

Setting a cutting value shall select first-row, deepest-cut or all-cuts generation; setting a pivot value shall select first-row or maximum-column pivot choice. The getter shall report the selected value for a valid control name. Defaults shall be CUTTING_STRATEGY_FIRST and PIVOT_ROW_STRATEGY_FIRST. Unsupported setting values shall raise std::invalid_argument. Heuristic changes may change tree shape and work, while completed solutions shall retain the same context-relative meaning. The maximum-column heuristic shall compare candidate pivot updates by stored row order, then constant/original/artificial parameter column order. These comparisons shall retain exact ordering and ties when intermediate two- or three-factor products exceed the bounded coefficient range.

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

4. Parametric big-parameter designation PPL-SPEC-001492

The setter shall designate an existing, not-yet-processed parameter coordinate as the big parameter. A non-parameter or a parameter already processed by the solver shall raise std::invalid_argument. The getter shall return its index, or not_a_dimension() when none is selected. In symbolic sign decisions, a nonzero coefficient of this parameter shall dominate the remaining expression. This convention shall represent an arbitrarily large parameter; concrete finite assignments shall be interpreted only where the result's asymptotic sign conditions hold, accounting for the values of artificial parameters. See 🔗 1. Parametric problem and context interpretation.

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

5. Integer feasibility of parametric compatibility contexts PPL-SPEC-001741

A native context shall include a constant column. Each row shall denote an inequality whose constant is in column zero and whose remaining coefficients multiply nonnegative integer coordinates. The affine row value shall be required to be nonnegative. The additional row, when supplied, shall have the same logical width and shall be conjoined with the context. A completed query shall return true exactly when that system has a nonnegative integer solution. A rational solution that fails an integrality constraint shall not justify true. Explicitly stored zeroes and differing physical row capacities shall not alter the result.

The const-input entry points shall preserve the context and any additional row. The destructive entry point may modify and extend its working tableau. A compatibility workspace shall own its scratch storage and shall be noncopyable. Nested queries shall use distinct workspaces. Restoring a context shall replace the logical rows, including zeroing retained coordinates absent from the source. Reuse may retain inactive row allocations and sparse entries holding zero. After failure or interruption, another query shall rebuild or reinitialize the scratch state before relying on it.

When direct bounded arithmetic has not been proved representable, complete rational pivot rows shall be evaluated exactly and the common positive factor of their numerators and denominator shall be cancelled before admission. Comparison-only products shall retain exact order without requiring them to fit a stored coefficient. When a reduced numerator or denominator cannot be stored, the protected entry points and the workspace overload accepting a const context and an additional row shall replay the original unchanged context in owned unbounded rational working storage. Replay shall preserve reconstructed original-variable column order and enforce integer feasibility of those variables using cuts. It shall not widen the public solution-tree coefficient type.

Only the internal working-range condition shall trigger replay. Allocation failures and client abandonment exceptions, including client overflow exceptions, shall propagate. Scratch from an unsuccessful query shall not establish any feasibility result.