Parma Polyhedra Library requirements
C++ pip values

C++ pip values

UID:
VERSION:
CLASSIFICATION:
PREFIX:
Type
Level
MID
UID
REFS
Title
Statement
Rationale
Comment
BIBLIOGRAPHY
STATUS
COMPONENT
APPLICABILITY
VERIFICATION_METHODS
VERIFICATION_CRITERIA
SOURCE
LANGUAGE
VISIBILITY
INTERFACE
SW_SPEC
1
PPL-SPEC-001483
PPL-SPEC-001483
Parametric integer problem meaning

A problem shall interpret every coordinate as a nonnegative integer. Selected parameter coordinates shall be fixed by a parameter assignment; remaining coordinates shall be decision variables ordered by increasing original index. Constraints mentioning only parameters shall restrict the initial context. For every assignment in the scope defined by 🔗 1. Parametric problem and context interpretation, a completed solver result shall describe the lexicographically least feasible decision tuple or its absence. A designated big parameter shall follow 🔗 4. Parametric big-parameter designation. A strict integer inequality shall use the strict comparison on integer values.

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

Lexicographic nonnegative integer optimization differs from arbitrary real-valued linear optimization.

Feautrier88 | Whole work; journal background on exact parametric lexicographic integer programming.

APPROVED
PIP_SOLVER
IF_CPP
Test, Analysis, Inspection

Enumerate bounded parameter and variable tuples using literal scalar constraints and lexicographic comparison, including strict inequalities and interleaved parameters.

src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; tests/PIP_Problem/boundedcontexts1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/zerofaces1.cc.

CPP
Public

Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.

class PIP_Problem;
enum PIP_Problem_Status { UNFEASIBLE_PIP_PROBLEM, OPTIMIZED_PIP_PROBLEM };
SW_SPEC
2
PPL-SPEC-001484
PPL-SPEC-001484
Parametric integer construction and dimensions

Construction from a dimension shall create an unconstrained problem with no parameters and the all-zero decision tuple as optimum. Default dimension shall be zero. Range construction shall copy the constraints in its valid half-open input range and interpret p_vars as parameter indices.

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&. 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 ambient extent above the supported maximum shall raise std::length_error; incompatible constraint or parameter dimensions shall raise std::invalid_argument. Failed construction shall release owned storage. Dimension queries shall report the current and maximum extents.

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

Parameter selection and implicit nonnegativity must be fixed before interpreting a symbolic solution.

APPROVED
PIP_SOLVER
IF_CPP
Test, Analysis, Inspection

Check constrained overload admission and standard common-iterator adapters for non-common sentinels, single-pass reference/value/proxy inputs, source independence, failed acquisition and allocation failure followed by retry. Check empty/no-parameter/all-parameter problems, source independence, strict constraints, incompatible inputs, extent limits and construction failures. Exercise true single-pass ranges without preliminary traversal, sized ranges whose declared count exceeds pending-vector capacity, and invalid rows after a valid prefix. Verify one row evaluation per copy and prompt failure without accessing the remainder of an invalid range.

src/Constraint_types.hh; tests/constraintinput1.cc; src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; tests/PIP_Problem/boundedcontexts1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/pipproblem1.cc. tests/PIP_Problem/bulkconstraints1.cc; tests/PIP_Problem/bulkparser1.cc.

CPP
Public

Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.

explicit PIP_Problem(dimension_type dim=0);
template<class In>
  requires Constraint_Input_Iterator<In>
PIP_Problem(dimension_type dim, In first, In last, const Variables_Set& p_vars);
static dimension_type max_space_dimension();
dimension_type space_dimension() const;
SW_SPEC
3
PPL-SPEC-001485
PPL-SPEC-001485
Parametric integer copying, exchange and reset

Copying and assignment shall preserve the problem, controls, designated big parameter and solution meaning while permitting independent later changes. Copied tree nodes shall be owned by the new problem. Assignment shall return the receiver and support self-assignment. Exchange shall transfer problem and tree state and update every transferred node's owner; self-exchange shall preserve the value. It shall not copy or allocate tree nodes, but shall visit the transferred trees to restore ownership. Reset shall create the zero-dimensional trivial problem with default controls and no big parameter. Destruction shall release its solution tree and other owned storage.

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

A solution node depends on the owning problem for original dimensions and parameter interpretation.

APPROVED
PIP_SOLVER
IF_CPP
Test, Analysis, Inspection

Copy, assign, self-assign and exchange unsolved/infeasible/solved problems with unlike parameters; verify every owner, independent refinements and lifetime after source destruction.

src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem3.cc.

CPP
Public

Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.

PIP_Problem(const PIP_Problem&); ~PIP_Problem();
PIP_Problem& operator=(const PIP_Problem&);
void m_swap(PIP_Problem&); void clear();
void swap(PIP_Problem&, PIP_Problem&);