-
5. Linear optimization with integrality and parameters UID: PPL-HLR-000005 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000101 Mixed integer problem interpretation (Refined by)
- PPL-LLR-000102 Correct completed optimization outcomes (Refined by)
- PPL-LLR-000103 Feasible and optimal witnesses (Refined by)
- PPL-LLR-000104 Incremental problem changes preserve semantics (Refined by)
- PPL-LLR-000451 Integer-supported strict MIP admission (Refined by)
- PPL-LLR-000452 Strict mixed-integer feasibility (Refined by)
- PPL-LLR-000456 General strict mixed-integer optimization (Refined by)
- PPL-LLR-000111 Parametric problem and context interpretation (Refined by)
- PPL-LLR-000112 Solution-tree meaning (Refined by)
- PPL-LLR-000113 Parametric outcomes and result availability (Refined by)
- PPL-LLR-000114 Incremental parametric refinement (Refined by)
STATEMENT: PPL shall provide mixed-integer linear optimization and parametric integer programming facilities with defined feasibility, optimization and solution-result semantics for their supported problem classes.
RATIONALE: Clients need numerical decision and optimization services as well as abstract-domain operations.
VERIFICATION_CRITERIA: Review the problem classes and result meanings; check feasible, infeasible, unbounded and parameter-dependent examples against independently established results where those outcomes belong to the selected solver.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: src/MIP_Problem_defs.hh; src/PIP_Problem_defs.hh.
- PPL-SPEC-001544 C parametric problem values and ownership (Specified by)
- PPL-SPEC-001545 C parametric descriptors and parameter lists (Specified by)
- PPL-SPEC-001547 C parametric outcomes and borrowed solution trees (Specified by)
- PPL-SPEC-001548 C parametric controls, big parameter and memory (Specified by)
- PPL-SPEC-001486 Parametric integer coordinate growth (Specified by)
- PPL-SPEC-001487 Parametric coordinate selection and descriptor views (Specified by)
- PPL-SPEC-001488 Parametric constraint refinement (Specified by)
- PPL-SPEC-001493 Parametric solution display (Specified by)
- PPL-SPEC-001494 Reloadable parametric solver representations (Specified by)
- PPL-SPEC-001495 Parametric diagnostics and storage accounting (Specified by)
- PPL-SPEC-001492 Parametric big-parameter designation (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-001483 Parametric integer problem meaning (Specified by)
- PPL-SPEC-001484 Parametric integer construction and dimensions (Specified by)
- PPL-SPEC-001485 Parametric integer copying, exchange and reset (Specified by)
- PPL-SPEC-001466 Optimization and ranking valid use (Specified by)
The parametric integer solver shall interpret problem variables and parameters as nonnegative integers. Constraints involving problem variables shall restrict feasible solutions. Constraints involving only parameters shall restrict the initial context. Without a big parameter, optimization shall seek the lexicographically least feasible variable tuple in the documented variable order for every assignment in that context.
When a big parameter is designated, the sign decisions that assume it is arbitrarily large shall take the sign of its nonzero coefficient without considering the remaining terms. A finite parameter assignment shall be within the result's scope only when it satisfies the initial context and the signs assumed in those decisions, with artificial parameters evaluated in their introduction order.
Parametric optimization requires a precise distinction between decision variables, parameters, and the parameter assignments for which a result is meaningful.
Verification covers parametric problem construction, parameter contexts and lexicographic coordinate ordering. Verification independently enumerates bounded contexts and solutions; it does not replace the general mathematical argument. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.
Enumerate bounded nonnegative parameter and variable assignments independently and compare the resulting feasibility and lexicographic minima with the computed solution. Cover parameter-only constraints, mixed constraints, strict inequalities, no parameters, and unused dimensions. Evaluate solution results only for assignments in their declared scope. Distinguish a context with feasible small parameter values from its big-parameter result. Evaluate big-parameter trees on assignments that satisfy both the initial context and the assumed signs.
Feautrier88 | Whole work; journal background on exact parametric lexicographic integer programming.
src/PIP_Problem_defs.hh: class overview, implicit nonnegativity, initial context, lexicographic optimization, and solution-tree spanning preconditions. tests/PIP_Problem/boundedcontexts1.cc and tests/PIP_Problem/contextrefinement1.cc: bounded independent context and solution checks. tests/PIP_Problem/zerofaces1.cc and tests/PIP_Problem/pipproblem2.cc: big-parameter status and solution checks.
-
1. C parametric problem values and ownership UID: PPL-SPEC-001544 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP constructors shall create independent owned trivial, copied or constraint-range problems with the selected parameter coordinates. Range and counted-array arguments shall be valid during construction. Assignment shall replace native problem/tree state and rebind its owned nodes to the destination. Deletion shall release owned trees and problem data. Failed construction shall preserve its output handle and release acquired resources.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: A copied parametric problem owns another tree rather than borrowing the source tree.
INTERFACE: Public header: <ppl_c.h>.
int ppl_new_PIP_Problem_from_space_dimension(ppl_PIP_Problem_t *ppip, ppl_dimension_type d); int ppl_new_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t *ppip, ppl_const_PIP_Problem_t pip); int ppl_assign_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t dst, ppl_const_PIP_Problem_t src); int ppl_new_PIP_Problem_from_constraints( ppl_PIP_Problem_t *ppip, ppl_dimension_type d, ppl_Constraint_System_const_iterator_t first, ppl_Constraint_System_const_iterator_t last, size_t n, ppl_dimension_type ds[]); int ppl_delete_PIP_Problem(ppl_const_PIP_Problem_t pip);
VERIFICATION_CRITERIA: Check zero/nonzero dimensions, parameter selection, copied solved/pending problems, independent destruction and rejected construction.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
2. C parametric descriptors and parameter lists UID: PPL-SPEC-001545 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP descriptor queries shall expose native dimension, parameter-coordinate count/list and original constraint count. Constraint-at-index shall return the corresponding borrowed input constraint and reject an out-of-range index without changing the output handle. Output arrays shall have sufficient capacity for their separately queried count. Read-only metadata inspection shall follow the documented safe borrowing rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Clients require original parameter identities and constraints independent of solver transformations.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_space_dimension(ppl_const_PIP_Problem_t pip, ppl_dimension_type *m); int ppl_PIP_Problem_number_of_parameter_space_dimensions( ppl_const_PIP_Problem_t pip, ppl_dimension_type *m); int ppl_PIP_Problem_parameter_space_dimensions(ppl_const_PIP_Problem_t pip, ppl_dimension_type ds[]); int ppl_PIP_Problem_number_of_constraints(ppl_const_PIP_Problem_t pip, ppl_dimension_type *m); int ppl_PIP_Problem_constraint_at_index(ppl_const_PIP_Problem_t pip, ppl_dimension_type i, ppl_const_Constraint_t *pc);
VERIFICATION_CRITERIA: Compare parameter arrays, original constraint order and borrowed values before and after solving and dimension changes.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
4. C parametric outcomes and borrowed solution trees UID: PPL-SPEC-001547 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: A null solution root represents a mathematical outcome and is distinct from a negative failure status.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_is_satisfiable(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solve(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree); int ppl_PIP_Problem_optimizing_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree);
VERIFICATION_CRITERIA: Evaluate returned trees independently over bounded parameter contexts, including infeasible regions, floor terms, copies and incremental changes.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
5. C parametric controls, big parameter and memory UID: PPL-SPEC-001548 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP cutting/pivot controls and big-parameter selection shall forward native admission and stored values. A designated big parameter shall remain an admitted parameter coordinate and shall select the asymptotic interpretation in 🔗 1. Parametric problem and context interpretation. Native validity and memory results shall be returned or assigned without changing their meaning.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: C controls must preserve context and asymptotic meaning.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_get_big_parameter_dimension(ppl_const_PIP_Problem_t pip, ppl_dimension_type *pd); int ppl_PIP_Problem_total_memory_in_bytes(ppl_const_PIP_Problem_t pip, size_t *sz); int ppl_PIP_Problem_external_memory_in_bytes(ppl_const_PIP_Problem_t pip, size_t *sz); int ppl_PIP_Problem_OK(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_set_big_parameter_dimension(ppl_PIP_Problem_t pip, ppl_dimension_type d); int ppl_PIP_Problem_get_control_parameter(ppl_const_PIP_Problem_t pip, int name); int ppl_PIP_Problem_set_control_parameter(ppl_PIP_Problem_t pip, int value);
VERIFICATION_CRITERIA: Check all supported control choices against literal piecewise solutions, big-parameter histories, invalid native requests and memory/validity queries.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
1. Parametric integer coordinate growth UID: PPL-SPEC-001486 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Growth shall append m_vars new decision variables followed by m_params new parameter coordinates, preserving the indices and meaning of all old coordinates. New coordinates shall initially have only implicit nonnegativity restrictions. Zero/zero growth shall preserve the current state. The sum shall be checked against the remaining supported extent without arithmetic wraparound; overflow shall raise std::length_error before changing dimensions. Subsequent solution queries shall describe the expanded problem with artificial parameter indices adjusted to follow original coordinates.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Artificial parameter numbering must not displace or reinterpret original problem coordinates when new dimensions are appended.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_space_dimensions_and_embed(dimension_type m_vars, dimension_type m_params);
VERIFICATION_CRITERIA: Add either/both coordinate kinds before and after solving, check ordering and renumbering, zero additions, extreme sizes and fresh-problem equivalence.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/pipproblem2.cc.
-
2. Parametric coordinate selection and descriptor views UID: PPL-SPEC-001487 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Parameter addition shall select the supplied indices as parameters and preserve already selected parameters. Incompatible indices shall raise std::invalid_argument. A decision coordinate already processed by the solver shall not be reinterpreted as a parameter; such conversion shall raise std::invalid_argument. Already selected processed parameters may be supplied again. Descriptor access shall expose the parameter subset and const constraints in insertion order; borrowed iterators and views may be invalidated by storage changes or replacement.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Changing an already solved decision coordinate into a parameter would reinterpret cached tableau and tree coordinates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_to_parameter_space_dimensions(const Variables_Set&); const Variables_Set& parameter_space_dimensions() const; const_iterator constraints_begin() const; const_iterator constraints_end() const;
VERIFICATION_CRITERIA: Select fresh coordinates, repeat parameter selections, reject processed decision variables, inspect descriptors and compare valid histories with fresh models. Repeat processed parameter selections and an aliased public parameter view without changing the solved state. Exercise empty requests, multiple processed parameters, a mixed processed/fresh suffix and rejection of processed decision coordinates; retain ordinary fresh-coordinate additions.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/pipproblem2.cc; tests/PIP_Problem/pipproblem3.cc.
-
3. Parametric constraint refinement UID: PPL-SPEC-001488 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Constraint additions shall conjoin value copies with the current problem. A descriptor dimension greater than the ambient dimension shall raise std::invalid_argument, including an empty system with an incompatible declared extent. Strict inequalities shall be interpreted over nonnegative integers. Subsequent completed queries shall include all added variable and parameter-only constraints; obsolete feasible branches or cached solutions shall not be returned as current. After one or more rows are appended to a problem with a retained feasible solution tree, the next query that needs a solution shall rebuild the result from the complete updated model and its parameter context.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: New parameter-only constraints change the admissible initial context as well as the feasible decision region.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Add equations, strict and non-strict inequalities, parameter-only contradictions and empty dimensioned systems before/after solving; compare against fresh literal models. After appending rows to a previously solved feasible model, compare the rebuilt solution and parameter context with a fresh equivalent problem. Exercise bulk copies with both row representations. Allocation failure before an append shall retain the prior mathematical rows and cached status; after successful prefix copies, that prefix shall remain valid pending work and support solution queries and retry with the unappended suffix. Empty bulk additions shall not allocate or invalidate cached results.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc. tests/PIP_Problem/bulkconstraints1.cc; tests/PIP_Problem/bulkparser1.cc.
-
1. Parametric solution display UID: PPL-SPEC-001493 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Human-readable problem output shall show constraints, parameters and big-parameter selection and return its stream. print_solution shall display the already computed tree or infeasibility with the requested nonnegative indentation. A pending unsolved problem shall raise std::logic_error rather than be silently solved by this display member. Human display shall be distinct from reloadable serialization.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Observation of an existing solution is distinct from requesting solver work and from serializing its representation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void print_solution(std::ostream&, int indent=0) const; void print() const; std::ostream& IO_Operators::operator<<(std::ostream&, const PIP_Problem&);
VERIFICATION_CRITERIA: Check solved, infeasible and pending states, indentation, stream identity, labels and empty solution tuples.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/pipproblem1.cc.
-
2. Reloadable parametric solver representations UID: PPL-SPEC-001494 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.
These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: A valid tree depends on a compatible problem, context and owner; retaining old destination constraints changes its meaning.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void ascii_dump(std::ostream&) const; void ascii_dump() const; bool ascii_load(std::istream&);
VERIFICATION_CRITERIA: Round-trip every solver state and heuristic into fresh/populated destinations, then refine; check recursive false branches, owners, truncations, incompatible parameter dimensions, status/tree contradictions and malformed controls. Reject raw coordinate sets containing the largest dimension_type value, reserved indices and indices outside the ambient dimension before using a derived coordinate-set dimension. Exercise unsolved and solved records, zero ambient dimensions, empty/unsorted/duplicate valid sets, trailing input and complete valid replacement after false.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.
-
3. Parametric diagnostics and storage accounting UID: PPL-SPEC-001495 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: OK shall check the implemented problem, context, control and tree invariants, including that every owned tree node refers to this problem. It shall not establish a new mathematical solution. External memory shall estimate managed constraint, parameter, context and solution-tree storage; total memory shall add sizeof(*this). Destroying, clearing or replacing the problem shall release the storage it owns.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Ownership and structural checks support resource safety separately from the solver correctness argument.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
bool OK() const; memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const;
VERIFICATION_CRITERIA: Check valid pending/solved/infeasible states, every transferred owner, byte relationships and cleanup after copies, resets and failed loads.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc.
-
4. Parametric big-parameter designation UID: PPL-SPEC-001492 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: A symbolic parameter assumed sufficiently large is not interchangeable with an arbitrary finite input parameter.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void set_big_parameter_dimension(dimension_type); dimension_type get_big_parameter_dimension() const;
VERIFICATION_CRITERIA: Check designation before/after processing, invalid coordinates, copy/exchange/reset, sign-unrestricted encodings and sufficiently large concrete witnesses.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem2.cc; tests/PIP_Problem/zerofaces1.cc.
-
5. Integer feasibility of parametric compatibility contexts UID: PPL-SPEC-001741 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000134 Cooperative computation abandonment (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
STATEMENT: 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.
RATIONALE: Branch and guard pruning depends on integer feasibility of the original parameter context. Ownership and replay must preserve its meaning and the caller's interruption behavior.
INTERFACE: Protected PIP_Tree_Node::compatibility_check overloads and the private PIP_Implementation::Compatibility_Workspace, compatibility_check and exact_compatibility_check declarations in src/PIP_Compatibility.hh. The lower-level mutable overload used by the workspace operates on admitted working storage and may signal that exact replay is needed.
VERIFICATION_CRITERIA: Compare the answers with complete bounded integer enumeration and literal integral and half-integral solutions. Use changing dimensions, stored zeroes and varying row capacities. Compare the input rows before and after both native checks and replay. Check reuse of live slots after restoration and zeroing of recycled rows. Exercise pivot reduction across the coefficient boundary and retry the same workspace after allocation and checkpoint failures. Check that a client overflow is propagated once and that nested calls use independent scratch.
SOURCE: src/PIP_Tree_defs.hh, src/PIP_Tree.cc, src/PIP_Compatibility.hh, src/PIP_Exact_Compatibility.cc, tests/PIP_Problem/compatibilityworkspace1.cc, tests/PIP_Problem/exactcontexts1.cc and tests/PIP_Problem/compatibilityzero1.cc.
-
1. Parametric integer problem meaning UID: PPL-SPEC-001483 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: 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.
RATIONALE: Lexicographic nonnegative integer optimization differs from arbitrary real-valued linear optimization.
INTERFACE: 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 };
VERIFICATION_CRITERIA: Enumerate bounded parameter and variable tuples using literal scalar constraints and lexicographic comparison, including strict inequalities and interleaved parameters.
BIBLIOGRAPHY: Feautrier88 | Whole work; journal background on exact parametric lexicographic integer programming.
SOURCE: 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.
-
2. Parametric integer construction and dimensions UID: PPL-SPEC-001484 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: 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.
RATIONALE: Parameter selection and implicit nonnegativity must be fixed before interpreting a symbolic solution.
INTERFACE: 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;
VERIFICATION_CRITERIA: 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.
SOURCE: 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.
-
3. Parametric integer copying, exchange and reset UID: PPL-SPEC-001485 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: A solution node depends on the owning problem for original dimensions and parameter interpretation.
INTERFACE: 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&);
VERIFICATION_CRITERIA: Copy, assign, self-assign and exchange unsolved/infeasible/solved problems with unlike parameters; verify every owner, independent refinements and lifetime after source destruction.
SOURCE: 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.
-
Incoming links from: 1. Transition encoding and ranking interpretation 2. MS termination test outcomes 3. MS affine ranking witnesses 4. Normalized MS affine ranking spaces 5. MS affine quasi-ranking spaces 6. PR termination test outcomes 7. PR affine ranking witnesses 8. PR affine ranking spaces 1. Exact strict mixed-integer feasibility witnesses 1. Mixed integer constraint and dimension additions 2. Mixed integer integrality additions 3. Mixed integer objective and mode updates 1. Reloadable mixed integer solver representations 2. Mixed integer diagnostics, display and storage 1. Mixed integer satisfiability 1. Mixed integer satisfiability 2. Mixed integer optimization outcomes 3. Mixed integer objective evaluation 4. Mixed integer feasible witness access 5. Mixed integer optimal witnesses and values 6. Mixed integer pricing controls 7. Point-coordinate integrality predicate 8. Fractional branching-variable selection 1. Integer-supported strict MIP admission 1. Exact strict mixed-integer feasibility 1. Strict-row support and admission kernels 1. Uniform strict-margin denominator 2. Exact general strict mixed-integer optimization 1. Mixed integer problem values 2. Trivial mixed integer construction and dimensions 3. Mixed integer construction from constraints 4. Mixed integer copying, exchange and reset 5. Mixed integer descriptor views and iterators 1. Parametric integer coordinate growth 2. Parametric coordinate selection and descriptor views 3. Parametric constraint refinement 1. Parametric solution display 2. Reloadable parametric solver representations 3. Parametric diagnostics and storage accounting 1. Parametric solver outcomes and satisfiability 1. Parametric solver outcomes and satisfiability 2. Parametric solution-tree access 3. Parametric cutting and pivot controls 4. Parametric big-parameter designation 1. Parametric tree interpretation and artificial scope 2. Parametric node guards and artificial-parameter views 3. Parametric tree ownership associations 4. Parametric tree cloning and lifetime 5. Artificial parameter construction and value operations 6. Artificial parameter persistence and diagnostics 7. Reloadable parametric tree structure 8. Parametric solution leaves and coordinate values 9. Parametric decision nodes and branches 10. Parametric tree diagnostics, display and memory 1. Parametric integer problem meaning 2. Parametric integer construction and dimensions 3. Parametric integer copying, exchange and reset57
1. Optimization and ranking valid use UID: PPL-SPEC-001466 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000101 Mixed integer problem interpretation (Specifies)
- PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Solver and ranking interfaces shall use the selected coefficient profile without loss of mathematical information when every intermediate arithmetic operation meets that profile's range and exactness conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; coordinate indices shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, iterators and streams shall remain live and valid throughout each operation.
A completed mathematical result shall satisfy the applicable solver or ranking contract. Arithmetic, allocation and cancellation exceptions may propagate; exceptional completion shall not constitute a feasibility or termination conclusion. Surviving owned resources shall remain destructible, without a general rollback or further-query guarantee. Separate output coefficients shall refer to distinct writable objects and shall not alias input expression or generator storage. Borrowed views shall not survive a mutation, replacement, destruction or query that can invalidate their backing representation. Accesses that can change solver state, trees or caches shall be externally synchronized. Solver heuristics shall affect search choices rather than the meaning of successfully completed results.
RATIONALE: Exact mathematical conclusions require explicit arithmetic and ownership conditions; resource failure is a separate outcome.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
class MIP_Problem; class PIP_Problem; class PIP_Tree_Node;
VERIFICATION_CRITERIA: Check independently interpreted models, all result classes, unavailable results, ownership during failures and state invalidation after changes.
SOURCE: src/MIP_Problem.cc; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/PIP_Problem/boundedcontexts1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/Polyhedron/termination1.cc; tests/MIP_Problem/mipproblem2.cc.
-
5. Linear optimization with integrality and parameters UID: PPL-HLR-000005 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000101 Mixed integer problem interpretation (Refined by)
- PPL-LLR-000102 Correct completed optimization outcomes (Refined by)
- PPL-LLR-000103 Feasible and optimal witnesses (Refined by)
- PPL-LLR-000104 Incremental problem changes preserve semantics (Refined by)
- PPL-LLR-000451 Integer-supported strict MIP admission (Refined by)
- PPL-LLR-000452 Strict mixed-integer feasibility (Refined by)
- PPL-LLR-000456 General strict mixed-integer optimization (Refined by)
- PPL-LLR-000111 Parametric problem and context interpretation (Refined by)
- PPL-LLR-000112 Solution-tree meaning (Refined by)
- PPL-LLR-000113 Parametric outcomes and result availability (Refined by)
- PPL-LLR-000114 Incremental parametric refinement (Refined by)
STATEMENT: PPL shall provide mixed-integer linear optimization and parametric integer programming facilities with defined feasibility, optimization and solution-result semantics for their supported problem classes.
RATIONALE: Clients need numerical decision and optimization services as well as abstract-domain operations.
VERIFICATION_CRITERIA: Review the problem classes and result meanings; check feasible, infeasible, unbounded and parameter-dependent examples against independently established results where those outcomes belong to the selected solver.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: src/MIP_Problem_defs.hh; src/PIP_Problem_defs.hh.
- PPL-SPEC-001547 C parametric outcomes and borrowed solution trees (Specified by)
- PPL-SPEC-001549 C solution-tree kind, guards, children and values (Specified by)
- PPL-SPEC-001550 C artificial-parameter expression and coefficient queries (Specified by)
- PPL-SPEC-001551 C artificial-parameter sequence traversal (Specified by)
- PPL-SPEC-001646 Exact comparison of revised PIP tableau columns (Specified by)
- PPL-SPEC-001493 Parametric solution display (Specified by)
- PPL-SPEC-001494 Reloadable parametric solver representations (Specified by)
- PPL-SPEC-001489 Parametric solver outcomes and satisfiability (Specified by)
- PPL-SPEC-001490 Parametric solution-tree access (Specified by)
- PPL-SPEC-001491 Parametric cutting and pivot controls (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-001496 Parametric tree interpretation and artificial scope (Specified by)
- PPL-SPEC-001497 Parametric node guards and artificial-parameter views (Specified by)
- PPL-SPEC-001498 Parametric tree ownership associations (Specified by)
- PPL-SPEC-001499 Parametric tree cloning and lifetime (Specified by)
- PPL-SPEC-001500 Artificial parameter construction and value operations (Specified by)
- PPL-SPEC-001501 Artificial parameter persistence and diagnostics (Specified by)
- PPL-SPEC-001502 Reloadable parametric tree structure (Specified by)
- PPL-SPEC-001503 Parametric solution leaves and coordinate values (Specified by)
- PPL-SPEC-001504 Parametric decision nodes and branches (Specified by)
- PPL-SPEC-001505 Parametric tree diagnostics, display and memory (Specified by)
For valid problem data satisfying the optimization operation's stated input and computational-arithmetic preconditions, each solution tree returned by a successfully completed optimization shall, for every parameter assignment in the scope defined by 🔗 1. Parametric problem and context interpretation, identify either the lexicographically least feasible variable tuple or the absence of a feasible tuple. Its decision guards, solution-node guards and scoped artificial parameters shall together preserve this meaning. An absent branch or a failing solution-node guard in such a tree shall denote infeasibility in the corresponding subset of those assignments.
A symbolic result must preserve both feasible and infeasible parameter regions rather than merely provide values for selected examples. This guarantee applies to completed optimization within its declared input and computational-arithmetic scope; neither a returned status nor unchecked completion alone establishes that scope.
Verification covers returned parametric trees, guard evaluation, artificial-parameter scope and solution extraction. The normative contracts make the delegated optimization preconditions precise and preserve the required tree meaning over the admitted assignments, including the applicable big-parameter signs. Verification compares the feasible and infeasible regions with independent models within that scope.
Establish the optimization operation's stated input and computational-arithmetic preconditions for the assessed results. Traverse returned trees under independently enumerated parameter assignments in the scope of 🔗 1. Parametric problem and context interpretation, evaluating artificial parameters with the documented integer-division convention. Compare every accepted tuple and every infeasible branch against bounded enumeration. Include negative artificial-parameter numerators, missing false branches, and guards implied by the initial context. Unchecked completion alone does not establish the arithmetic preconditions.
Feautrier88 | Whole work; background on symbolic piecewise solutions, not a source for tree-interface details.
src/PIP_Problem_defs.hh: decision nodes, solution nodes, missing branches, artificial parameters, and context-relative spanning semantics. src/PIP_Tree_defs.hh: artificial-parameter and node contracts. tests/PIP_Problem/contextrefinement1.cc: independent tree evaluation and literal bounded models.
-
4. C parametric outcomes and borrowed solution trees UID: PPL-SPEC-001547 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: A null solution root represents a mathematical outcome and is distinct from a negative failure status.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_is_satisfiable(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solve(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree); int ppl_PIP_Problem_optimizing_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree);
VERIFICATION_CRITERIA: Evaluate returned trees independently over bounded parameter contexts, including infeasible regions, floor terms, copies and incremental changes.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
6. C solution-tree kind, guards, children and values UID: PPL-SPEC-001549 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: Tree-kind accessors shall return an alias of the input node for a matching kind and null for a different kind, without transferring ownership. Decision-child access shall select the requested boolean branch and return null for an absent branch. Guard getters shall return borrowed native constraint systems. Solution-coordinate getters shall return borrowed native affine expressions for decision coordinates, with native domain/index errors for invalid queries. Null handles shall be tested before further use. Traversal and independent coordinate queries shall not invalidate other documented read-only tree views.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Safe traversal depends on distinguishing successful absent nodes from errors.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Tree_Node_as_solution(ppl_const_PIP_Tree_Node_t spip_tree, ppl_const_PIP_Solution_Node_t *dpip_tree); int ppl_PIP_Tree_Node_as_decision(ppl_const_PIP_Tree_Node_t spip_tree, ppl_const_PIP_Decision_Node_t *dpip_tree); int ppl_PIP_Tree_Node_get_constraints(ppl_const_PIP_Tree_Node_t pip_tree, ppl_const_Constraint_System_t *pcs); int ppl_PIP_Tree_Node_OK(ppl_const_PIP_Tree_Node_t pip); int ppl_PIP_Solution_Node_OK(ppl_const_PIP_Solution_Node_t pip_sol); int ppl_PIP_Solution_Node_get_parametric_values( ppl_const_PIP_Solution_Node_t pip_sol, ppl_dimension_type var, ppl_const_Linear_Expression_t *le); int ppl_PIP_Decision_Node_OK(ppl_const_PIP_Decision_Node_t pip_dec); int ppl_PIP_Decision_Node_get_child_node(ppl_const_PIP_Decision_Node_t pip_dec, int b, ppl_const_PIP_Tree_Node_t *pip_tree);
VERIFICATION_CRITERIA: Traverse both branch kinds and absent branches, evaluate guards and leaf expressions over admitted contexts, and check invalid coordinate queries and unchanged failure outputs.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
7. C artificial-parameter expression and coefficient queries UID: PPL-SPEC-001550 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: The artificial-parameter input handle shall borrow an element of the owning tree. Expression access shall copy its affine numerator into the caller's existing expression object. That copy shall remain independent of the tree. Coefficient, constant and denominator queries shall assign their stored native values to existing coefficient objects. The artificial value shall remain the mathematical floor of the numerator divided by its positive denominator, including negative numerators. These accessors shall not normalize or replace the source representation or transfer ownership of the artificial parameter.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: The denominator is separate from an inherited affine numerator.
INTERFACE: Public header: <ppl_c.h>.
int ppl_Artificial_Parameter_get_Linear_Expression( ppl_const_Artificial_Parameter_t ap, ppl_Linear_Expression_t le); int ppl_Artificial_Parameter_coefficient(ppl_const_Artificial_Parameter_t ap, ppl_dimension_type var, ppl_Coefficient_t n); int ppl_Artificial_Parameter_inhomogeneous_term( ppl_const_Artificial_Parameter_t ap, ppl_Coefficient_t n); int ppl_Artificial_Parameter_denominator(ppl_const_Artificial_Parameter_t ap, ppl_Coefficient_t n);
VERIFICATION_CRITERIA: Check copied numerator dimensions and exact coefficients, independence after tree destruction, source preservation, positive denominators and independent floor evaluation for generated parameters.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
8. C artificial-parameter sequence traversal UID: PPL-SPEC-001551 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: Allocated artificial-parameter iterators shall own only their iterator storage. Node begin/end shall position them in that node's local ordered sequence; equality, increment and dereference shall use valid positions in the same live sequence. Dereference shall return a borrowed artificial parameter tied to the owning problem/tree. Copying positions shall not copy parameters or extend tree lifetime; deleting positions shall not delete tree contents. Count shall report the local sequence length.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Local artificial parameters have an order and a lifetime inherited from the solution tree.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Tree_Node_number_of_artificials(ppl_const_PIP_Tree_Node_t pip_tree, ppl_dimension_type *m); int ppl_PIP_Tree_Node_begin( ppl_const_PIP_Tree_Node_t pip_tree, ppl_Artificial_Parameter_Sequence_const_iterator_t pit); int ppl_PIP_Tree_Node_end( ppl_const_PIP_Tree_Node_t pip_tree, ppl_Artificial_Parameter_Sequence_const_iterator_t pit); int ppl_new_Artificial_Parameter_Sequence_const_iterator( ppl_Artificial_Parameter_Sequence_const_iterator_t *papit); int ppl_new_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator( ppl_Artificial_Parameter_Sequence_const_iterator_t *papit, ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit); int ppl_assign_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator( ppl_Artificial_Parameter_Sequence_const_iterator_t dst, ppl_const_Artificial_Parameter_Sequence_const_iterator_t src); int ppl_delete_Artificial_Parameter_Sequence_const_iterator( ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit); int ppl_Artificial_Parameter_Sequence_const_iterator_dereference( ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit, ppl_const_Artificial_Parameter_t *pap); int ppl_Artificial_Parameter_Sequence_const_iterator_increment( ppl_Artificial_Parameter_Sequence_const_iterator_t apit); int ppl_Artificial_Parameter_Sequence_const_iterator_equal_test( ppl_const_Artificial_Parameter_Sequence_const_iterator_t x, ppl_const_Artificial_Parameter_Sequence_const_iterator_t y);
VERIFICATION_CRITERIA: Traverse empty/nonempty local sequences, compare/copy/assign iterator positions and inspect borrowed parameters without invalidating the tree.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
2. Exact comparison of revised PIP tableau columns UID: PPL-SPEC-001646 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: The file-local column_lower helper shall compare two scaled columns of an admitted revised PIP tableau. The equally sized mapping and basis sequences shall enumerate each nonbasic tableau row and each basic variable column once in variable order. Reconstruct column Cj at position k as the matrix entry at mapping[k],j for a nonbasic entry, and as one or zero according as a basic entry maps to j or another column. Compared columns shall be lexicographically positive. Both pivot rows shall be actual rows of that tableau, with strictly positive selected entries pa, pb.
The result shall be true exactly when − caCja ⁄ pa < lex − cbCjb ⁄ pb, comparing reconstructed components in the stated variable order. The two column indices and pivot rows may coincide; zero and either sign of the costs shall be admitted. No input shall change. Comparisons shall evaluate complete two- and three-factor products exactly without requiring comparison-only products to fit the stored coefficient profile. The normal initialized coefficient/temporary- resource prerequisites shall apply.
Omitting the final reconstructed component shall be permitted when the admitted tableau invariants prove it cannot be the first unequal component. For distinct columns and two nonzero costs, one of their distinct basic unit entries distinguishes them before the final position. With exactly one nonzero cost, its positive pivot entry also appears among the mapped rows, so its basic unit entry and that row cannot both occupy the final position. Two zero costs yield equal vectors. Same-column comparisons shall use the positive-column ratio ordering.
RATIONALE: Exact rational column ordering supports pivot selection; its optimized early exits rely on the complete revised-tableau mapping rather than arbitrary unrelated row vectors.
INTERFACE: Names belong to Parma_Polyhedra_Library unless stated otherwise.
// File-local helper in src/PIP_Tree.cc, within the PPL namespace: bool column_lower(const Matrix<PIP_Tree_Node::Row>&, const std::vector<dimension_type>& mapping, const std::vector<bool>& basis, const PIP_Tree_Node::Row& pivot_a, dimension_type ja, const PIP_Tree_Node::Row& pivot_b, dimension_type jb, Coefficient_traits::const_reference ca = -1, Coefficient_traits::const_reference cb = -1);
VERIFICATION_CRITERIA: Generate coherent mapped tableaux, retain only lexicographically positive compared columns and positive actual pivots, and compare with independently reconstructed rational full vectors. Exercise reordered mappings, zero/positive/negative costs, same and different columns, equal vectors and late differences. Inspect the proof permitting omission of the final component under the admitted invariants.
BIBLIOGRAPHY: Feautrier88 | Journal background on parametric lexicographic integer programming; the local mapping proof is stated in this contract.
SOURCE: src/Exact_Arithmetic.hh; src/PIP_Tree.cc; tests/pipcolumnsspec1.cc.
-
1. Parametric solution display UID: PPL-SPEC-001493 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Human-readable problem output shall show constraints, parameters and big-parameter selection and return its stream. print_solution shall display the already computed tree or infeasibility with the requested nonnegative indentation. A pending unsolved problem shall raise std::logic_error rather than be silently solved by this display member. Human display shall be distinct from reloadable serialization.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Observation of an existing solution is distinct from requesting solver work and from serializing its representation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void print_solution(std::ostream&, int indent=0) const; void print() const; std::ostream& IO_Operators::operator<<(std::ostream&, const PIP_Problem&);
VERIFICATION_CRITERIA: Check solved, infeasible and pending states, indentation, stream identity, labels and empty solution tuples.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/pipproblem1.cc.
-
2. Reloadable parametric solver representations UID: PPL-SPEC-001494 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.
These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: A valid tree depends on a compatible problem, context and owner; retaining old destination constraints changes its meaning.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void ascii_dump(std::ostream&) const; void ascii_dump() const; bool ascii_load(std::istream&);
VERIFICATION_CRITERIA: Round-trip every solver state and heuristic into fresh/populated destinations, then refine; check recursive false branches, owners, truncations, incompatible parameter dimensions, status/tree contradictions and malformed controls. Reject raw coordinate sets containing the largest dimension_type value, reserved indices and indices outside the ambient dimension before using a derived coordinate-set dimension. Exercise unsolved and solved records, zero ambient dimensions, empty/unsorted/duplicate valid sets, trailing input and complete valid replacement after false.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.
-
1. Parametric solver outcomes and satisfiability UID: PPL-SPEC-001489 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: Every nonempty subset of nonnegative integer tuples has a lexicographic minimum; partly feasible contexts still require symbolic solutions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
PIP_Problem_Status solve() const; bool is_satisfiable() const;
VERIFICATION_CRITERIA: Check global and partial feasibility, empty initial contexts, zero coordinates, all parameters, repeated queries and independently enumerated contexts. Check a feasible zero face excluded by the big-parameter sign decisions. Compare fresh ordinary initialization and post-pivot incremental updates against literal optima and bounded integer enumeration, including sparse dimension gaps, strict rows and coefficients larger than a native machine word. Assess the context-feasibility kernels separately under 🔗 5. Integer feasibility of parametric compatibility contexts. Check determinant-minus-one equality and inequality families with literal solutions (1,1) and (0,2), including coefficients whose products exceed a machine word, both representations, both input orders and every cutting/pivot mode. Exercise consecutive nonunit pivots, common-factor cancellation, intervening cuts and subsequent unit pivots. Check independently constrained coordinate ceilings for 16 and 32 unknowns, with compatible upper bounds, across both representations, input orders and every cut and pivot strategy. Check independent GMP arithmetic for working-score multiplication, self aliasing and wide values; use a coupled ceiling example to force an oversized score. Check exact ordering and ties against literal optima. Evaluate symbolic trees with independent unbounded integers. Exercise a deterministic weight limit on a long search over an unbounded parameter context.
SOURCE: src/Exact_Arithmetic.hh; src/PIP_Tree.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/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/zerofaces1.cc; tests/PIP_Problem/weightwatch1.cc; tests/pipcolumnsspec1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/initialtableau1.cc. src/PIP_Divisibility.hh; tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc; tests/PIP_Problem/pipboundedpivot1.cc;
-
2. Parametric solution-tree access UID: PPL-SPEC-001490 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: The initial context and the guards along a tree path together determine where a symbolic leaf is valid.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
PIP_Tree solution() const; PIP_Tree optimizing_solution() const;
VERIFICATION_CRITERIA: Traverse both accessor results with an independent interpreter for guards and artificial parameters; compare feasible leaves and missing branches against bounded enumeration.
SOURCE: 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; tests/PIP_Problem/initialtableau1.cc. tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc;
-
3. Parametric cutting and pivot controls UID: PPL-SPEC-001491 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: Equivalent symbolic solutions can have different trees under different valid search heuristics.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
Control_Parameter_Value get_control_parameter(Control_Parameter_Name) const; void set_control_parameter(Control_Parameter_Value);
VERIFICATION_CRITERIA: Check defaults, all six cutting/pivot combinations, invalid setting values and literal tree evaluation rather than textual tree equality.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem2.cc. tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/compatibilitycandidates1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc; tests/PIP_Problem/pipboundedpivot1.cc;
-
5. Integer feasibility of parametric compatibility contexts UID: PPL-SPEC-001741 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000134 Cooperative computation abandonment (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
STATEMENT: 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.
RATIONALE: Branch and guard pruning depends on integer feasibility of the original parameter context. Ownership and replay must preserve its meaning and the caller's interruption behavior.
INTERFACE: Protected PIP_Tree_Node::compatibility_check overloads and the private PIP_Implementation::Compatibility_Workspace, compatibility_check and exact_compatibility_check declarations in src/PIP_Compatibility.hh. The lower-level mutable overload used by the workspace operates on admitted working storage and may signal that exact replay is needed.
VERIFICATION_CRITERIA: Compare the answers with complete bounded integer enumeration and literal integral and half-integral solutions. Use changing dimensions, stored zeroes and varying row capacities. Compare the input rows before and after both native checks and replay. Check reuse of live slots after restoration and zeroing of recycled rows. Exercise pivot reduction across the coefficient boundary and retry the same workspace after allocation and checkpoint failures. Check that a client overflow is propagated once and that nested calls use independent scratch.
SOURCE: src/PIP_Tree_defs.hh, src/PIP_Tree.cc, src/PIP_Compatibility.hh, src/PIP_Exact_Compatibility.cc, tests/PIP_Problem/compatibilityworkspace1.cc, tests/PIP_Problem/exactcontexts1.cc and tests/PIP_Problem/compatibilityzero1.cc.
-
1. Parametric tree interpretation and artificial scope UID: PPL-SPEC-001496 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: A returned tree shall be interpreted at parameter assignments in the scope defined by 🔗 1. Parametric problem and context interpretation. At each node, local artificial parameters shall be introduced in stored order after all original coordinates and inherited artificial parameters. An artificial parameter a = ⌊e ⁄ d⌋ shall use mathematical floor, including for negative numerators. Its expression shall refer only to original parameters and earlier artificial parameters in scope.
A decision's true branch shall require all local guards; its false branch, when present, shall require the complement of its single guard. A solution leaf shall require its own guards in addition to the path context. Missing branches and failed leaf guards shall mean infeasibility within that result's scope.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Guard evaluation and the scope of floor expressions jointly determine the meaning of a symbolic leaf.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
class PIP_Tree_Node; class PIP_Solution_Node; class PIP_Decision_Node;
VERIFICATION_CRITERIA: Use an independent integer-floor tree interpreter on bounded contexts, negative numerators, inherited/local artificial parameters, false decisions and guarded leaves.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/boundedcontexts1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/zerofaces1.cc.
-
2. Parametric node guards and artificial-parameter views UID: PPL-SPEC-001497 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: constraints shall return a borrowed const view of the node's local parameter guards. Artificial-parameter iterators shall traverse the local stored sequence in introduction order; the count shall report its size, without including ancestor parameters. The half-open range shall be empty when no local artificial parameter is introduced. Storage changes and node destruction may invalidate these borrowed views and iterators. Borrowing local constraints or artificial-parameter iterators shall require an lvalue node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Local scope must be distinguished from the inherited parameter environment when traversing a tree.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
const Constraint_System& constraints() const &; Artificial_Parameter_Sequence::const_iterator art_parameter_begin() const &; Artificial_Parameter_Sequence::const_iterator art_parameter_end() const &; dimension_type art_parameter_count() const;
VERIFICATION_CRITERIA: Check counts, range order and local versus ancestor scope on deep trees and round trips, and evaluate each guard independently.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc.
-
3. Parametric tree ownership associations UID: PPL-SPEC-001498 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: get_owner shall return the node's non-owning problem association. set_owner shall update that association throughout the receiver's subtree; check_ownership shall report whether every node in that subtree has the supplied owner. Rebinding shall not copy nodes or re-solve a problem. Callers rebinding a tree for interpretation shall provide a live owner with compatible original dimensions and parameter meanings. Every tree returned by a problem shall refer to that problem throughout its subtree.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Original coordinate interpretation is obtained through the problem association rather than stored independently in each leaf.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below. The base-class constructors and owner-association operations are protected.
const PIP_Problem* get_owner() const; virtual void set_owner(const PIP_Problem*) = 0; virtual bool check_ownership(const PIP_Problem*) const = 0;
VERIFICATION_CRITERIA: Check every node after problem copy, assignment, exchange and loading, and explicit rebinding of a separately owned clone.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem3.cc.
-
4. Parametric tree cloning and lifetime UID: PPL-SPEC-001499 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: clone shall allocate a structurally independent copy of the subtree, including guards, artificial parameters and solution representation, and return ownership of that copy to its caller. It shall preserve the original owner association but detach the clone's root from its former parent. Copied children shall refer to their copied parent. Deleting a tree through its virtual base shall release every owned descendant. Failed cloning shall release any subtree already acquired. Initial solution-node construction shall create solver state associated with the supplied owner; numerical leaf access shall require a complete solved representation.
Temporary ownership during recursive solving shall protect the successfully returned subtree or newly adopting parent. Retargeting that protection shall not delete a root already consumed by solving or adopted by the parent.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Tree storage can be independent while the problem association remains borrowed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below. The base-class constructors and owner-association operations are protected.
explicit PIP_Tree_Node(const PIP_Problem*); PIP_Tree_Node(const PIP_Tree_Node&); explicit PIP_Solution_Node(const PIP_Problem*); virtual PIP_Tree_Node* clone() const = 0; virtual ~PIP_Tree_Node();
VERIFICATION_CRITERIA: Clone nested true/false subtrees, destroy source or copies in valid ownership order, rebind compatible owners and inject failures during child copying.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem3.cc; tests/pipcolumnsspec1.cc.
-
5. Artificial parameter construction and value operations UID: PPL-SPEC-001500 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: Default construction shall represent zero with denominator one. Construction from expr and nonzero d shall preserve their rational ratio while normalizing the denominator to positive and dividing numerator coefficients, constant and denominator by their common factor. Zero denominator shall raise std::invalid_argument. In tree interpretation the value shall be the floor of that normalized rational expression.
Copying and assignment shall preserve the stored numerator expression, dimension and denominator, with independent later mutations. Exchange shall swap them. Equality shall compare stored dimension, numerator and denominator; inequality shall negate it. Equality shall not identify all distinct formulas that happen to have equal floors on a particular context. Inherited expression mutations shall follow the linear-expression contracts and shall not implicitly renormalize this denominator.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Joint normalization preserves the rational expression, whereas changing only the denominator would change the integer floor.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
class PIP_Tree_Node::Artificial_Parameter : public Linear_Expression { public: Artificial_Parameter(); Artificial_Parameter(const Linear_Expression&, Coefficient_traits::const_reference); Artificial_Parameter(const Artificial_Parameter&); Artificial_Parameter& operator=(const Artificial_Parameter&) = default; Coefficient_traits::const_reference denominator() const; void m_swap(Artificial_Parameter&); bool operator==(const Artificial_Parameter&) const; bool operator!=(const Artificial_Parameter&) const; };
VERIFICATION_CRITERIA: Check both denominator signs, zero numerator, common factors including constants, negative floors, dimensions, copy/assignment/exchange and structurally distinct equivalent expressions.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem2.cc.
-
6. Artificial parameter persistence and diagnostics UID: PPL-SPEC-001501 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Serialization shall retain numerator dimension, coefficients and the positive denominator. Loading shall preserve an admitted stored representation, including a common factor, without constructor normalization. Malformed or nonpositive denominators shall return false in both build modes. False shall not promise rollback or further queries; owned storage shall remain destructible. OK shall require a positive denominator. Human output shall display the expression and integer-division denominator and return its stream. External memory shall estimate expression storage; total shall add the artificial-parameter object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: An admitted serialized denominator must support a defined integer floor, while persistence need not canonicalize its representation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
void ascii_dump(std::ostream&) const; void ascii_dump() const; bool ascii_load(std::istream&); bool OK() const; void print() const; memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const; std::ostream& IO_Operators::operator<<( std::ostream&, const PIP_Tree_Node::Artificial_Parameter&);
VERIFICATION_CRITERIA: Check noncanonical positive round trips, replacement loads, zero/negative denominators, truncations, stream identity and byte relationships.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem2.cc.
-
7. Reloadable parametric tree structure UID: PPL-SPEC-001502 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Node dumping shall write local guards and artificial parameters; concrete solution and decision dumping shall additionally write their complete respective representation. Concrete loading shall replace the corresponding stored state, retain the receiver's live owner association and restore parent and owner links for loaded children. Reloading shall not append old artificial parameters. Recursive decision subtrees shall be supported on both branches.
Malformed fields, nonpositive tableau denominators, incompatible vector/matrix sizes, out-of-range mappings and invalid decision structure shall return false in both build modes, before unsafe indexing or successful use of the broken representation. Surviving ownership shall remain destructible after false, without a rollback or further-query guarantee. A tree shall be interpreted only after association with a compatible live problem. Stream and resource exceptions may propagate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Local formulas, tableau coordinates and ownership links must describe the same tree after replacement.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
void PIP_Tree_Node::ascii_dump(std::ostream&) const; bool PIP_Tree_Node::ascii_load(std::istream&); void PIP_Solution_Node::ascii_dump(std::ostream&) const; bool PIP_Solution_Node::ascii_load(std::istream&); void PIP_Decision_Node::ascii_dump(std::ostream&) const; bool PIP_Decision_Node::ascii_load(std::istream&);
VERIFICATION_CRITERIA: Round-trip fresh and populated clones, including local artificial parameters and recursive false branches; reject mismatched vector extents, mapping indices, denominators, kinds, guards and truncations with sanitizers.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.
-
8. Parametric solution leaves and coordinate values UID: PPL-SPEC-001503 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: A solution node shall return itself from as_solution and null from as_decision. On a complete solved leaf associated with a live problem, parametric_values(var) shall return a borrowed affine expression in original and in-scope artificial parameters describing that decision coordinate on the leaf's valid path context. Its coordinate shall be an original problem variable; a parameter coordinate or dimension-incompatible variable shall raise std::invalid_argument. Cached expressions may be materialized lazily. No tuple shall be inferred from the leaf when its guards fail. Returning a parametric-value reference shall require an lvalue solution node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Coordinate formulas are meaningful only after interpreting artificial parameters and the guards that select the leaf.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
const PIP_Solution_Node* as_solution() const; const PIP_Decision_Node* as_decision() const; const Linear_Expression& parametric_values(Variable) const &;
VERIFICATION_CRITERIA: Evaluate every decision coordinate against bounded lexicographic enumeration, including interleaved parameters, lazy/repeated access and invalid variable requests.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/zerofaces1.cc.
-
9. Parametric decision nodes and branches UID: PPL-SPEC-001504 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: A decision node shall return itself from as_decision and null from as_solution. child_node(true) and child_node(false) shall expose the respective borrowed subtree, with null denoting an absent branch. A valid decision shall have a true child. A decision with a false child shall have exactly one local guard. The mutable accessor shall expose the same node as the const accessor; callers shall preserve the owner's structure, backlinks and coordinate meaning when mutating an independently owned tree.
Borrowing a child pointer shall require an lvalue decision node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: A false branch complements one predicate, whereas a missing false branch leaves the excluded context infeasible.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
const PIP_Decision_Node* as_decision() const; const PIP_Solution_Node* as_solution() const; const PIP_Tree_Node* child_node(bool) const &; PIP_Tree_Node* child_node(bool) &;
VERIFICATION_CRITERIA: Traverse nested true and false decisions, missing branches and guarded leaves, compare const/mutable access and verify parent/owner associations after reload.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/pipproblem1.cc.
-
10. Parametric tree diagnostics, display and memory UID: PPL-SPEC-001505 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: OK shall check local guard, tableau/vector and decision-structure invariants and recursively check owned children. Invalid mapping indices shall be rejected before indexing the corresponding vector. These checks shall not prove lexicographic optimality. Printing shall show the subtree's guards, artificial parameters and decision-coordinate formulas under its compatible live owner, with nonnegative indentation. Stream insertion shall return its stream. Memory estimates shall include local storage and owned descendants; total shall add the concrete object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Structural diagnostics must not themselves dereference a malformed index, and tree accounting must include descendant ownership.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.
virtual bool OK() const = 0; void print(std::ostream&, int indent=0) const; virtual memory_size_type external_memory_in_bytes() const = 0; virtual memory_size_type total_memory_in_bytes() const = 0; std::ostream& IO_Operators::operator<<(std::ostream&, const PIP_Tree_Node&);
VERIFICATION_CRITERIA: Check leaf and deep-decision storage relationships, stream identity, every owner and safe rejection of malformed vector mappings.
SOURCE: src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc.
-
5. Linear optimization with integrality and parameters UID: PPL-HLR-000005 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000101 Mixed integer problem interpretation (Refined by)
- PPL-LLR-000102 Correct completed optimization outcomes (Refined by)
- PPL-LLR-000103 Feasible and optimal witnesses (Refined by)
- PPL-LLR-000104 Incremental problem changes preserve semantics (Refined by)
- PPL-LLR-000451 Integer-supported strict MIP admission (Refined by)
- PPL-LLR-000452 Strict mixed-integer feasibility (Refined by)
- PPL-LLR-000456 General strict mixed-integer optimization (Refined by)
- PPL-LLR-000111 Parametric problem and context interpretation (Refined by)
- PPL-LLR-000112 Solution-tree meaning (Refined by)
- PPL-LLR-000113 Parametric outcomes and result availability (Refined by)
- PPL-LLR-000114 Incremental parametric refinement (Refined by)
STATEMENT: PPL shall provide mixed-integer linear optimization and parametric integer programming facilities with defined feasibility, optimization and solution-result semantics for their supported problem classes.
RATIONALE: Clients need numerical decision and optimization services as well as abstract-domain operations.
VERIFICATION_CRITERIA: Review the problem classes and result meanings; check feasible, infeasible, unbounded and parameter-dependent examples against independently established results where those outcomes belong to the selected solver.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: src/MIP_Problem_defs.hh; src/PIP_Problem_defs.hh.
- PPL-SPEC-001547 C parametric outcomes and borrowed solution trees (Specified by)
- PPL-SPEC-001646 Exact comparison of revised PIP tableau columns (Specified by)
- PPL-SPEC-001489 Parametric solver outcomes and satisfiability (Specified by)
- PPL-SPEC-001490 Parametric solution-tree access (Specified by)
- PPL-SPEC-001491 Parametric cutting and pivot controls (Specified by)
For an ordinary parametric problem, a completed optimization request shall report infeasibility exactly when no assignment in the initial context admits a feasible variable tuple. When a big parameter is designated, the status shall reflect the asymptotic sign decisions under 🔗 1. Parametric problem and context interpretation. Infeasibility in that mode shall exclude solutions within those assumptions. Finite assignments outside them may still have feasible tuples. For both modes, the infeasible status shall have an empty solution tree. An optimized result shall have a solution tree with the meaning specified in 🔗 2. Solution-tree meaning. The configured arithmetic preconditions shall apply.
Global infeasibility must not be confused with infeasibility for only part of the parameter context.
Verification covers completed parametric solver status and solution availability. Verification distinguishes global infeasibility from infeasible subregions of a partly feasible parameter context. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.
Check completely infeasible contexts, partially feasible contexts, and unconstrained nonnegative problems. Compare status with independent bounded context enumeration and verify that an empty tree occurs exactly for globally infeasible completed cases. Include a feasible context with infeasible subregions and a problem with a feasible finite tuple excluded by the big-parameter convention.
src/PIP_Problem_defs.hh: optimization status and solution-access contracts, and the distinction between empty trees and absent context branches. src/PIP_Problem_types.hh: solver outcome meanings. tests/PIP_Problem/pipproblem1.cc and tests/PIP_Problem/boundedcontexts1.cc: solver status and context cases. tests/PIP_Problem/zerofaces1.cc: ordinary and big-parameter outcomes on the same feasible zero face.
-
4. C parametric outcomes and borrowed solution trees UID: PPL-SPEC-001547 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: A null solution root represents a mathematical outcome and is distinct from a negative failure status.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_is_satisfiable(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solve(ppl_const_PIP_Problem_t pip); int ppl_PIP_Problem_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree); int ppl_PIP_Problem_optimizing_solution(ppl_const_PIP_Problem_t pip, ppl_const_PIP_Tree_Node_t *pip_tree);
VERIFICATION_CRITERIA: Evaluate returned trees independently over bounded parameter contexts, including infeasible regions, floor terms, copies and incremental changes.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
2. Exact comparison of revised PIP tableau columns UID: PPL-SPEC-001646 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: The file-local column_lower helper shall compare two scaled columns of an admitted revised PIP tableau. The equally sized mapping and basis sequences shall enumerate each nonbasic tableau row and each basic variable column once in variable order. Reconstruct column Cj at position k as the matrix entry at mapping[k],j for a nonbasic entry, and as one or zero according as a basic entry maps to j or another column. Compared columns shall be lexicographically positive. Both pivot rows shall be actual rows of that tableau, with strictly positive selected entries pa, pb.
The result shall be true exactly when − caCja ⁄ pa < lex − cbCjb ⁄ pb, comparing reconstructed components in the stated variable order. The two column indices and pivot rows may coincide; zero and either sign of the costs shall be admitted. No input shall change. Comparisons shall evaluate complete two- and three-factor products exactly without requiring comparison-only products to fit the stored coefficient profile. The normal initialized coefficient/temporary- resource prerequisites shall apply.
Omitting the final reconstructed component shall be permitted when the admitted tableau invariants prove it cannot be the first unequal component. For distinct columns and two nonzero costs, one of their distinct basic unit entries distinguishes them before the final position. With exactly one nonzero cost, its positive pivot entry also appears among the mapped rows, so its basic unit entry and that row cannot both occupy the final position. Two zero costs yield equal vectors. Same-column comparisons shall use the positive-column ratio ordering.
RATIONALE: Exact rational column ordering supports pivot selection; its optimized early exits rely on the complete revised-tableau mapping rather than arbitrary unrelated row vectors.
INTERFACE: Names belong to Parma_Polyhedra_Library unless stated otherwise.
// File-local helper in src/PIP_Tree.cc, within the PPL namespace: bool column_lower(const Matrix<PIP_Tree_Node::Row>&, const std::vector<dimension_type>& mapping, const std::vector<bool>& basis, const PIP_Tree_Node::Row& pivot_a, dimension_type ja, const PIP_Tree_Node::Row& pivot_b, dimension_type jb, Coefficient_traits::const_reference ca = -1, Coefficient_traits::const_reference cb = -1);
VERIFICATION_CRITERIA: Generate coherent mapped tableaux, retain only lexicographically positive compared columns and positive actual pivots, and compare with independently reconstructed rational full vectors. Exercise reordered mappings, zero/positive/negative costs, same and different columns, equal vectors and late differences. Inspect the proof permitting omission of the final component under the admitted invariants.
BIBLIOGRAPHY: Feautrier88 | Journal background on parametric lexicographic integer programming; the local mapping proof is stated in this contract.
SOURCE: src/Exact_Arithmetic.hh; src/PIP_Tree.cc; tests/pipcolumnsspec1.cc.
-
1. Parametric solver outcomes and satisfiability UID: PPL-SPEC-001489 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: Every nonempty subset of nonnegative integer tuples has a lexicographic minimum; partly feasible contexts still require symbolic solutions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
PIP_Problem_Status solve() const; bool is_satisfiable() const;
VERIFICATION_CRITERIA: Check global and partial feasibility, empty initial contexts, zero coordinates, all parameters, repeated queries and independently enumerated contexts. Check a feasible zero face excluded by the big-parameter sign decisions. Compare fresh ordinary initialization and post-pivot incremental updates against literal optima and bounded integer enumeration, including sparse dimension gaps, strict rows and coefficients larger than a native machine word. Assess the context-feasibility kernels separately under 🔗 5. Integer feasibility of parametric compatibility contexts. Check determinant-minus-one equality and inequality families with literal solutions (1,1) and (0,2), including coefficients whose products exceed a machine word, both representations, both input orders and every cutting/pivot mode. Exercise consecutive nonunit pivots, common-factor cancellation, intervening cuts and subsequent unit pivots. Check independently constrained coordinate ceilings for 16 and 32 unknowns, with compatible upper bounds, across both representations, input orders and every cut and pivot strategy. Check independent GMP arithmetic for working-score multiplication, self aliasing and wide values; use a coupled ceiling example to force an oversized score. Check exact ordering and ties against literal optima. Evaluate symbolic trees with independent unbounded integers. Exercise a deterministic weight limit on a long search over an unbounded parameter context.
SOURCE: src/Exact_Arithmetic.hh; src/PIP_Tree.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/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/zerofaces1.cc; tests/PIP_Problem/weightwatch1.cc; tests/pipcolumnsspec1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/initialtableau1.cc. src/PIP_Divisibility.hh; tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc; tests/PIP_Problem/pipboundedpivot1.cc;
-
2. Parametric solution-tree access UID: PPL-SPEC-001490 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: The initial context and the guards along a tree path together determine where a symbolic leaf is valid.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
PIP_Tree solution() const; PIP_Tree optimizing_solution() const;
VERIFICATION_CRITERIA: Traverse both accessor results with an independent interpreter for guards and artificial parameters; compare feasible leaves and missing branches against bounded enumeration.
SOURCE: 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; tests/PIP_Problem/initialtableau1.cc. tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc;
-
3. Parametric cutting and pivot controls UID: PPL-SPEC-001491 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000113 Parametric outcomes and result availability (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: Equivalent symbolic solutions can have different trees under different valid search heuristics.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
Control_Parameter_Value get_control_parameter(Control_Parameter_Name) const; void set_control_parameter(Control_Parameter_Value);
VERIFICATION_CRITERIA: Check defaults, all six cutting/pivot combinations, invalid setting values and literal tree evaluation rather than textual tree equality.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem2.cc. tests/PIP_Problem/pip_test_oracle.hh; tests/PIP_Problem/compatibilitysingleton1.cc; tests/PIP_Problem/compatibilitycandidates1.cc; tests/PIP_Problem/pipdivisibility1.cc; tests/PIP_Problem/compatibilityzero1.cc; tests/PIP_Problem/pipboundedpivot1.cc;
-
5. Linear optimization with integrality and parameters UID: PPL-HLR-000005 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000101 Mixed integer problem interpretation (Refined by)
- PPL-LLR-000102 Correct completed optimization outcomes (Refined by)
- PPL-LLR-000103 Feasible and optimal witnesses (Refined by)
- PPL-LLR-000104 Incremental problem changes preserve semantics (Refined by)
- PPL-LLR-000451 Integer-supported strict MIP admission (Refined by)
- PPL-LLR-000452 Strict mixed-integer feasibility (Refined by)
- PPL-LLR-000456 General strict mixed-integer optimization (Refined by)
- PPL-LLR-000111 Parametric problem and context interpretation (Refined by)
- PPL-LLR-000112 Solution-tree meaning (Refined by)
- PPL-LLR-000113 Parametric outcomes and result availability (Refined by)
- PPL-LLR-000114 Incremental parametric refinement (Refined by)
STATEMENT: PPL shall provide mixed-integer linear optimization and parametric integer programming facilities with defined feasibility, optimization and solution-result semantics for their supported problem classes.
RATIONALE: Clients need numerical decision and optimization services as well as abstract-domain operations.
VERIFICATION_CRITERIA: Review the problem classes and result meanings; check feasible, infeasible, unbounded and parameter-dependent examples against independently established results where those outcomes belong to the selected solver.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: src/MIP_Problem_defs.hh; src/PIP_Problem_defs.hh.
- PPL-SPEC-001546 C parametric incremental updates (Specified by)
- PPL-SPEC-001486 Parametric integer coordinate growth (Specified by)
- PPL-SPEC-001487 Parametric coordinate selection and descriptor views (Specified by)
- PPL-SPEC-001488 Parametric constraint refinement (Specified by)
- PPL-SPEC-001494 Reloadable parametric solver representations (Specified by)
- PPL-SPEC-001492 Parametric big-parameter designation (Specified by)
- PPL-SPEC-001485 Parametric integer copying, exchange and reset (Specified by)
Following supported additions of dimensions, parameters, or constraints, subsequent completed parametric solver queries shall describe the resulting problem and initial context. When the model is unchanged, repeated queries may reuse the current result. Original coordinates shall retain their meanings through re-solving and artificial-parameter renumbering.
Incremental context refinement and artificial-parameter renumbering must preserve the mathematical result independently of earlier solve requests.
Verification covers consecutive parametric problem changes, repeated queries and artificial-parameter numbering. Verification compares operation histories with freshly reconstructed equivalent problems and independently evaluated contexts. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.
Compare incrementally modified problems with freshly reconstructed equivalents after each change, using bounded enumeration as an additional oracle. Include narrowing parameter contexts, changes that remove all solutions, and dimensions or parameters added after a solution tree has been computed.
src/PIP_Problem_defs.hh: supported updates, repeated queries and artificial-parameter dimension numbering. src/PIP_Problem.cc: added dimensions, parameters, constraints, and solution-state updates. tests/PIP_Problem/contextrefinement1.cc: incremental histories compared with fresh problems and literal models.
-
3. C parametric incremental updates UID: PPL-SPEC-001546 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
STATEMENT: PIP clear, variable/parameter growth, parameter-coordinate selection and constraint additions shall have native PIP_Problem effects and admission rules. Variables shall be appended before newly appended parameters. Selected dimensions shall be interpreted as a set. Existing processed decision variables shall not be reinterpreted as parameters. An empty constraint system shall still retain its declared dimension for compatibility checks. Later completed solution queries shall refer to the updated input and initial context.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Parameter identity and dimension admission govern subsequent piecewise solutions.
INTERFACE: Public header: <ppl_c.h>.
int ppl_PIP_Problem_clear(ppl_PIP_Problem_t pip); int ppl_PIP_Problem_add_space_dimensions_and_embed( ppl_PIP_Problem_t pip, ppl_dimension_type pip_vars, ppl_dimension_type pip_params); int ppl_PIP_Problem_add_to_parameter_space_dimensions(ppl_PIP_Problem_t pip, ppl_dimension_type ds[], size_t n); int ppl_PIP_Problem_add_constraint(ppl_PIP_Problem_t pip, ppl_const_Constraint_t c); int ppl_PIP_Problem_add_constraints(ppl_PIP_Problem_t pip, ppl_const_Constraint_System_t cs);
VERIFICATION_CRITERIA: Compare fresh and incremental models, floor-term renumbering, duplicate selections, dimension overflow and incompatible empty systems.
SOURCE: interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.
-
1. Parametric integer coordinate growth UID: PPL-SPEC-001486 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Growth shall append m_vars new decision variables followed by m_params new parameter coordinates, preserving the indices and meaning of all old coordinates. New coordinates shall initially have only implicit nonnegativity restrictions. Zero/zero growth shall preserve the current state. The sum shall be checked against the remaining supported extent without arithmetic wraparound; overflow shall raise std::length_error before changing dimensions. Subsequent solution queries shall describe the expanded problem with artificial parameter indices adjusted to follow original coordinates.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Artificial parameter numbering must not displace or reinterpret original problem coordinates when new dimensions are appended.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_space_dimensions_and_embed(dimension_type m_vars, dimension_type m_params);
VERIFICATION_CRITERIA: Add either/both coordinate kinds before and after solving, check ordering and renumbering, zero additions, extreme sizes and fresh-problem equivalence.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/exceptions1.cc; tests/PIP_Problem/pipproblem2.cc.
-
2. Parametric coordinate selection and descriptor views UID: PPL-SPEC-001487 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Parameter addition shall select the supplied indices as parameters and preserve already selected parameters. Incompatible indices shall raise std::invalid_argument. A decision coordinate already processed by the solver shall not be reinterpreted as a parameter; such conversion shall raise std::invalid_argument. Already selected processed parameters may be supplied again. Descriptor access shall expose the parameter subset and const constraints in insertion order; borrowed iterators and views may be invalidated by storage changes or replacement.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: Changing an already solved decision coordinate into a parameter would reinterpret cached tableau and tree coordinates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_to_parameter_space_dimensions(const Variables_Set&); const Variables_Set& parameter_space_dimensions() const; const_iterator constraints_begin() const; const_iterator constraints_end() const;
VERIFICATION_CRITERIA: Select fresh coordinates, repeat parameter selections, reject processed decision variables, inspect descriptors and compare valid histories with fresh models. Repeat processed parameter selections and an aliased public parameter view without changing the solved state. Exercise empty requests, multiple processed parameters, a mixed processed/fresh suffix and rejection of processed decision coordinates; retain ordinary fresh-coordinate additions.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/pipproblem2.cc; tests/PIP_Problem/pipproblem3.cc.
-
3. Parametric constraint refinement UID: PPL-SPEC-001488 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: Constraint additions shall conjoin value copies with the current problem. A descriptor dimension greater than the ambient dimension shall raise std::invalid_argument, including an empty system with an incompatible declared extent. Strict inequalities shall be interpreted over nonnegative integers. Subsequent completed queries shall include all added variable and parameter-only constraints; obsolete feasible branches or cached solutions shall not be returned as current. After one or more rows are appended to a problem with a retained feasible solution tree, the next query that needs a solution shall rebuild the result from the complete updated model and its parameter context.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: New parameter-only constraints change the admissible initial context as well as the feasible decision region.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Add equations, strict and non-strict inequalities, parameter-only contradictions and empty dimensioned systems before/after solving; compare against fresh literal models. After appending rows to a previously solved feasible model, compare the rebuilt solution and parameter context with a fresh equivalent problem. Exercise bulk copies with both row representations. Allocation failure before an append shall retain the prior mathematical rows and cached status; after successful prefix copies, that prefix shall remain valid pending work and support solution queries and retry with the unappended suffix. Empty bulk additions shall not allocate or invalidate cached results.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem1.cc. tests/PIP_Problem/bulkconstraints1.cc; tests/PIP_Problem/bulkparser1.cc.
-
2. Reloadable parametric solver representations UID: PPL-SPEC-001494 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000112 Solution-tree meaning (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.
These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
RATIONALE: A valid tree depends on a compatible problem, context and owner; retaining old destination constraints changes its meaning.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void ascii_dump(std::ostream&) const; void ascii_dump() const; bool ascii_load(std::istream&);
VERIFICATION_CRITERIA: Round-trip every solver state and heuristic into fresh/populated destinations, then refine; check recursive false branches, owners, truncations, incompatible parameter dimensions, status/tree contradictions and malformed controls. Reject raw coordinate sets containing the largest dimension_type value, reserved indices and indices outside the ambient dimension before using a derived coordinate-set dimension. Exercise unsolved and solved records, zero ambient dimensions, empty/unsorted/duplicate valid sets, trailing input and complete valid replacement after false.
SOURCE: 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/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.
-
4. Parametric big-parameter designation UID: PPL-SPEC-001492 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: A symbolic parameter assumed sufficiently large is not interchangeable with an arbitrary finite input parameter.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.
void set_big_parameter_dimension(dimension_type); dimension_type get_big_parameter_dimension() const;
VERIFICATION_CRITERIA: Check designation before/after processing, invalid coordinates, copy/exchange/reset, sign-unrestricted encodings and sufficiently large concrete witnesses.
SOURCE: 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/exceptions1.cc; tests/PIP_Problem/pipproblem1.cc; tests/PIP_Problem/pipproblem2.cc; tests/PIP_Problem/zerofaces1.cc.
-
3. Parametric integer copying, exchange and reset UID: PPL-SPEC-001485 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000111 Parametric problem and context interpretation (Specifies)
- PPL-LLR-000114 Incremental parametric refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
STATEMENT: 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.
RATIONALE: A solution node depends on the owning problem for original dimensions and parameter interpretation.
INTERFACE: 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&);
VERIFICATION_CRITERIA: Copy, assign, self-assign and exchange unsolved/infeasible/solved problems with unlike parameters; verify every owner, independent refinements and lifetime after source destruction.
SOURCE: 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.