Parma Polyhedra Library requirements
Mixed integer programming low-level requirements
PPL-LLR-000101
1. Mixed integer problem interpretation UID: PPL-LLR-000101 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

The incremental mixed integer solver shall interpret a supported stored problem as a finite set of linear equalities and non-strict inequalities over the declared vector space, together with a linear objective, an optimization direction, and a designated subset of integer coordinates. Coordinates outside that subset shall remain real-valued. The solver shall admit strict inequalities whose nonzero variable support is declared integral, storing equivalent closed rows under those integer restrictions. It shall reject strict inequalities depending on continuous coordinates and dimension-incompatible problem data through the documented input-validation mechanism.

RATIONALE:

Correct optimization depends on preserving the distinction between integer and real coordinates and on avoiding silent reinterpretation of unsupported constraints.

COMMENT:

Verification covers mixed-integer problem construction and validation, including coordinate interpretation, permitted constraints and designated integer coordinates. Verification uses independently interpreted finite problem models and invalid-input cases. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.

VERIFICATION_CRITERIA:

Compare bounded mixed integer instances against independent enumeration of integer coordinates and rational optimization of the remaining coordinates. Include empty integer subsets, all-integer problems, zero-dimensional problems, integer-supported strict admission, continuous-support strict rejection, and incompatible constraint, objective, and integer-coordinate dimensions.

BIBLIOGRAPHY:

Schrijver99 | Whole work; background on linear and integer programming, not a source for interface-specific obligations.

SOURCE:

src/MIP_Problem_defs.hh: class overview and construction preconditions define the feasible region, integer-coordinate subset, objective, optimization direction, and strict-row admission rules and rejection of incompatible dimensions. tests/MIP_Problem/exceptions1.cc: input-validation cases. tests/MIP_Problem/enumeratedmodels1.cc: bounded independently evaluated problem models.

PPL-LLR-000102
2. Correct completed optimization outcomes UID: PPL-LLR-000102 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

When an optimization request on the incremental stored problem model completes successfully within the configured arithmetic preconditions, the mixed integer solver shall distinguish infeasibility, unboundedness in the requested optimization direction, and attainment of a finite optimum. Infeasibility shall mean that no point satisfies both the linear constraints and the designated integrality restrictions; unboundedness shall require feasibility.

RATIONALE:

Clients need to distinguish absence of feasible solutions from absence of a finite objective bound.

COMMENT:

Verification covers completed mixed-integer solver outcomes and their access conditions. Analysis and independent models distinguish infeasibility, feasible unboundedness and a finite attained optimum; arithmetic or resource failures are not solver conclusions. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.

VERIFICATION_CRITERIA:

Exercise independently justified infeasible, feasible unbounded, and finite-optimum cases in both optimization directions. Include problems whose real relaxation is feasible but whose integer restrictions make them infeasible. Confirm the same mathematical outcome under the documented pricing choices for cases that complete without arithmetic or resource errors.

BIBLIOGRAPHY:

Schrijver99 | Whole work; background on feasibility and optimization classification.

SOURCE:

src/MIP_Problem_types.hh: three solver outcome meanings. src/MIP_Problem_defs.hh: feasibility and optimization result contracts. tests/MIP_Problem/mipproblem1.cc and tests/MIP_Problem/enumeratedmodels1.cc: optimization outcome and bounded-model checks.

  • PPL-SPEC-001542
    4. C mixed integer solution outcomes and witnesses UID: PPL-SPEC-001542 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Satisfiability shall return the native boolean result. Solve shall return the published infeasible, unbounded or optimized status. Feasible/optimizing point getters shall return borrowed native point witnesses and reject requests for unavailable witnesses; their output handles shall remain unchanged on failure. Objective evaluation and optimum queries shall assign exact numerator/positive denominator values to existing coefficient objects under native admission and nonaliasing prerequisites. Solver-computing calls may invalidate earlier borrowed witnesses.

    The standalone strict mixed-integer query shall decide the exact feasibility contract in 🔗 1. Exact strict mixed-integer feasibility using its explicit ambient dimension. Unused coordinates and empty systems shall retain that dimension. Out-of-space rows or integer coordinates shall be rejected. Constraint-system dimension completion shall occur on a copy, preserving the input and its metadata. The standalone query shall remain available with no selected domain interface.

    The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.

    RATIONALE:

    A borrowed witness and a status have distinct ownership and mathematical roles.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_is_mixed_integer_satisfiable(ppl_dimension_type dimension,
                                         ppl_const_Constraint_System_t cs,
                                         const ppl_dimension_type integers[],
                                         size_t n);
    int ppl_MIP_Problem_is_satisfiable(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_solve(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_evaluate_objective_function(ppl_const_MIP_Problem_t mip,
                                                    ppl_const_Generator_t g,
                                                    ppl_Coefficient_t num,
                                                    ppl_Coefficient_t den);
    int ppl_MIP_Problem_feasible_point(ppl_const_MIP_Problem_t mip,
                                       ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimizing_point(ppl_const_MIP_Problem_t mip,
                                         ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimal_value(ppl_const_MIP_Problem_t mip,
                                      ppl_Coefficient_t num, ppl_Coefficient_t den);
    
    VERIFICATION_CRITERIA:

    Check all three solve outcomes, exact rational objectives, mixed integrality, witness satisfaction, failure outputs and repeated/incremental solving.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • 1. Mixed integer satisfiability UID: PPL-SPEC-001475 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed is_satisfiable shall return true exactly when a point satisfies every stored constraint and designated integer restriction. True shall include feasible problems with unbounded objective. The query may update solver caches without changing the problem. If an exception interrupts a solver query, the cache shall be discarded without allocation and the original exception shall propagate. A subsequent query shall solve from the stored model. A real-relaxation witness alone shall not establish mixed integer feasibility.

    Before solving the real relaxation for a pending result, check each stored equality whose nonzero variable coefficients all belong to declared integer coordinates. If the greatest common divisor of those coefficients fails to divide the constant, report infeasibility. The check shall preserve stored constraints and use exact working integers. Equalities with a nonzero coefficient on a continuous coordinate are outside this check. Use the current constraints and integer selection after model changes.

    An integer search over an unbounded real relaxation may run indefinitely. Configured deterministic weight limits and supported cancellation are observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.

    When the initial auxiliary objective is zero, the feasibility phase shall recognize that its upper bound is attained without pricing. Before removing basic artificial variables, it shall discard this completed objective. Cleanup pivots shall prefer a non-artificial column occurring in the fewest current tableau rows, retaining the lowest column index on a tie. Redundant rows shall be removed. These steps shall preserve the feasible point; subsequent optimization shall use the stored client objective.

    When pending nonnegativity constraints permit merging split variables, the implementation shall stably remove the negative-part columns and renumber all retained basis and variable mappings. Rows losing a basic negative part shall be reported in descending original-variable order. Any such loss shall invalidate cached-point satisfaction hints for pending inequalities. Larger merge batches shall compact row indices together; small batches may retain individual removals.

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

    RATIONALE:

    The mixed integer feasible region can be empty even when its real relaxation is nonempty.

    INTERFACE:

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

    bool is_satisfiable() const;
    
    VERIFICATION_CRITERIA:

    Check real-relaxation-only solutions, exact integral witnesses, infeasible and unbounded problems, repeated queries and queries before/after solve. Exercise an incompatible equality over integer coordinates with an unbounded real relaxation, a divisible equality, an equality involving continuous coordinates, and a previously queried problem after constraints or integer selections change.

    Check homogeneous equalities with a certified feasible origin, dependent rows, and all pricing rules, both fresh and after a feasibility query. Include bounded-coefficient cases where pricing the completed auxiliary objective, retaining it during cleanup, or choosing a more coupled pivot would overflow despite a representable cleanup. Check a later constraint excluding the origin. Check simultaneous noncontiguous merges with basic and nonbasic negative parts, fresh construction, pending cross-row cuts and intermediate feasibility queries. Use independent literal bounds and optimizing points under every pricing rule, including bounded coefficients and both matrix layouts.

    BIBLIOGRAPHY:

    Schrijver99 | Whole work; background on linear and integer optimization.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/pricing1.cc; tests/MIP_Problem/mipproblem4.cc.

  • PPL-SPEC-001476
    2. Mixed integer optimization outcomes UID: PPL-SPEC-001476 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed solve shall return UNFEASIBLE_MIP_PROBLEM exactly for an empty mixed integer feasible region, UNBOUNDED_MIP_PROBLEM for a nonempty region whose objective is unbounded in the requested direction, and OPTIMIZED_MIP_PROBLEM when a finite optimum is attained. The categories shall be mutually exclusive. Repeated queries and admissible pricing choices shall preserve the mathematical outcome; search effort or arithmetic failure shall not be reported as one of these successful conclusions. The equality divisibility check and the search and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.

    For a bounded coefficient profile, simplex row elimination shall evaluate complete two-product combinations and cancel the resulting row's positive common factor before coefficient admission when direct arithmetic has not been proved representable. Magnitude bounds may be reused only while their source rows remain unchanged, or updated conservatively after each combination. Such scratch shall belong to one active simplex invocation, with fresh bounds on a later invocation; it shall not become persistent problem state. After this proof, native updates may omit redundant arithmetic checks while retaining the existing row support merge and cancellation rules. When no proof is available, exact complete-row evaluation shall remain mandatory. This projective row normalization shall include constant and objective coordinates. An unrepresentable primitive row may raise the selected profile's arithmetic exception.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply. The exceptional cache-reset guarantee in 🔗 1. Mixed integer satisfiability shall apply.

    RATIONALE:

    Objective unboundedness presupposes feasibility and differs from the absence of any solution.

    INTERFACE:

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

    MIP_Problem_Status solve() const;
    
    VERIFICATION_CRITERIA:

    Check all three outcomes in both directions under every pricing rule and compare finite mixed-coordinate models with independent optima.

    BIBLIOGRAPHY:

    Schrijver99 | Whole work; background on linear and integer optimization.

    SOURCE:

    tests/MIP_Problem/pricingoverflowpublic1.cc; src/MIP_Problem.cc; src/Exact_Arithmetic.hh; tests/Polyhedron/termination2.cc; tests/MIP_Problem/primitivepivots1.cc; src/Sparse_Row.cc; src/Sparse_Row_defs.hh; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/mipproblem2.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/mipproblem3.cc; tests/MIP_Problem/mipproblem4.cc; tests/MIP_Problem/exceptions1.cc.

  • PPL-SPEC-001480
    6. Mixed integer pricing controls UID: PPL-SPEC-001480 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    get_control_parameter(PRICING) shall return the current pricing choice. Setting one of PRICING_STEEPEST_EDGE_FLOAT, PRICING_STEEPEST_EDGE_EXACT or PRICING_TEXTBOOK shall select that search heuristic without changing constraints, integrality or objective. The default shall be floating steepest-edge pricing. Names and values passed to these accessors shall belong to their documented enumerations. A floating heuristic shall not weaken the exact meaning of a completed mathematical result.

    Exact steepest-edge pricing shall compare the squared reduced costs divided by 1 + sum_i (tableau[i][j] / tableau[i][base[i]])^2. Equal scores shall retain the candidate with the highest column index. Candidate pruning shall exclude a column only when integer bounds prove its score strictly smaller than another candidate's; overlapping bounds shall retain exact comparison.

    Floating steepest-edge pricing shall approximate the same cost-to-edge ratio. Coefficient magnitudes and normalized edge lengths outside the direct range of double shall remain comparable without infinities or NaNs in the scores. Ties in the computed floating scores shall retain the candidate with the highest column index.

    When there are no eligible entering columns, both steepest-edge rules shall return zero without pricing arithmetic. When there is exactly one, they shall return its index without computing basis LCMs or edge norms, including when those intermediate calculations would exceed the coefficient range.

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

    RATIONALE:

    Pivot selection can alter effort and resource use without changing the mathematical optimization task.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of MIP_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:

    Compare independent public optimization results before and after objective replacement under both ordinary and reduced-limit exact pricing. Exercise both reduced-limit overflow guards, the exact accumulation boundary and preservation of the complete candidate sequence on fallback. Retain the full-width helper boundary tests. Compare public exact-pricing optimization with independent polygon-vertex optima before and after adding a tighter bound. Include zero, positive and negative objective coefficients, both directions, unused ambient coordinates and valid optimal witnesses; retain the existing large-coefficient pruning and tie oracles. Check defaults, round trips of each control value and independently justified statuses/witnesses under all three choices.

    Compare exact entering-column choices with independent rational score oracles, including sparse gaps, signed basis coefficients, unequal coefficient sizes, equal scores and near ties. Check outward integer bounds and arithmetic-limit fallbacks against unbounded integer calculations.

    Check floating selections against rational squared-score oracles for well-separated scores and equal columns. Include reversed cost and edge rankings, signed coefficients, sparse gaps, and coefficient magnitudes beyond the floating exponent range. Scaling a row and its basis coefficient, or all candidate costs, by a common power of two shall preserve these choices.

    Check zero and sole eligible columns with consecutive basis coefficients near the coefficient limit, whose LCM would overflow, in sparse and dense layouts.

    SOURCE:

    tests/MIP_Problem/pricingoverflowpublic1.cc; tests/MIP_Problem/pricingoverflow1.cc; tests/MIP_Problem/pricingoverflow1_impl.cc; tests/MIP_Problem/exactpricingkeys1.cc; src/MIP_Problem.cc; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/mipproblem3.cc; tests/MIP_Problem/pricing1.cc; tests/MIP_Problem/pricing1_impl.cc; tests/MIP_Problem/mipproblem4.cc.

  • PPL-SPEC-001651
    7. Point-coordinate integrality predicate UID: PPL-SPEC-001651 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For live finite coefficients numerator and divisor, with a strictly positive divisor, coordinate_is_integral shall return true exactly when numerator ⁄ divisor ∈ ℤ. It shall preserve both arguments. Zero and negative numerators, including the minimum value of a bounded signed coefficient type, shall be admitted. The predicate shall not require the quotient or the absolute numerator to be representable as a coefficient. It shall not construct quotient or GCD coefficient objects, own scratch containers, or introduce floating-point arithmetic. first_fractional_coordinate(point,variables) shall require a valid point with a positive divisor and selected indices within its dimension. It shall preserve its inputs and return the least selected index having a nonintegral coordinate, or not_a_dimension() when all selected coordinates are integral. An empty selection and divisor one shall yield that sentinel. The scan shall check early selected coordinates before sparsity admission, skip only zero coordinates, and retain an ordinary scan for dense suffixes. It shall allocate no scratch containers and shall be used by optimization, heuristic-disabled feasibility, and the cached integer-witness invariant check.

    Coefficient objects and their backend allocation/lifetime facilities shall satisfy the applicable conditions of 🔗 1. Optimization and ranking valid use.

    RATIONALE:

    A rational point coordinate is integral precisely when its positive divisor divides its numerator. Testing divisibility avoids computing an unused GCD. A positive divisor excludes zero division and the signed minimum divided by minus one, so native remainder admits the complete finite numerator range.

    INTERFACE:

    The function is local to the translation unit src/MIP_Problem.cc. The coefficient types belong to Parma_Polyhedra_Library.

    bool coordinate_is_integral(
        Coefficient_traits::const_reference numerator,
        Coefficient_traits::const_reference divisor);
    dimension_type first_fractional_coordinate(
        const Generator& point, const Variables_Set& variables);
    
    VERIFICATION_CRITERIA:

    Compare with exact unbounded-integer quotient multiplication for zero, positive, negative, minimum and maximum numerators; unit, nonunit and maximum positive divisors; large GMP values and reproducible pseudorandom inputs. Preserve the arguments. Exercise the predicate through optimization, feasibility with and without the branching heuristic, and cached integer witness validation. Inspect coefficient dispatch and scratch allocation. Compare first-fractional selection with an independent exact quotient oracle for dense/sparse points, empty and noncontiguous subsets, early/late fractions, sparsity-admission boundaries, nonselected fractional coordinates, integral nonzero suffixes and zero runs. Include positive GMP divisors with a low limb equal to one, spanning single- and multiple-limb values. Check a late fractional cached integer and wide public mixed-integer histories with independent literal optima.

    SOURCE:

    src/MIP_Problem.cc; tests/MIP_Problem/integrality1.cc; tests/MIP_Problem/integrality1_impl.cc; tests/MIP_Problem/integralityfallback1_impl.cc; tests/MIP_Problem/branching1.cc.

  • PPL-SPEC-001652
    8. Fractional branching-variable selection UID: PPL-SPEC-001652 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    choose_branching_variable shall inspect the cached rational point of mip and the variable indices in i_vars without changing either. The cached point shall be valid, have mip.space_dimension() coordinates, and satisfy the input constraints. The helper shall be called at a solver state where this cached point and these input rows are meaningful; it shall not require the tableau to determine this selection. Every index in i_vars shall belong to the ambient dimension. Scalar arithmetic and synchronization shall satisfy 🔗 1. Optimization and ranking valid use.

    Let C be the indices in i_vars whose cached coordinates are not integers. If C = ⌀, the helper shall return true and preserve branching_index. Otherwise it shall return false and assign a member of C. When |C| = 1, that member shall be selected without evaluating constraint-appearance scores.

    For more than one candidate, an active input row shall be an equality or an inequality saturated by the cached point. A candidate's score shall be the number of active input rows having a nonzero coefficient at that candidate. Rows shall contribute individually, including repeated rows. Coefficients beyond a row's dimension and constant terms shall not contribute. The helper shall select a maximum-score candidate, choosing the greatest variable index when scores tie, including when all scores are zero. Dense and sparse row representations shall have the same selection semantics.

    RATIONALE:

    Branching must select a fractional integer-constrained coordinate. The appearance heuristic and its tie rule determine a reproducible choice; a singleton needs no scoring. Sparse storage changes which zeros are visited, not the mathematical counts.

    INTERFACE:

    Private static member of Parma_Polyhedra_Library::MIP_Problem; src/MIP_Problem_defs.hh and src/MIP_Problem.cc.

    static bool choose_branching_variable(
        const MIP_Problem& mip, const Variables_Set& i_vars,
        dimension_type& branching_index);
    
    VERIFICATION_CRITERIA:

    Use independent exact rational candidate and active-row evaluation. Check divisor one, empty integer subsets, integral zero coordinates, singleton candidates, multiple candidates, ties, equalities, saturated and inactive inequalities, constant/short rows, noncandidate nonzero coefficients and candidate suffixes beyond a row's dimension. Compare both point and row representations and preserve input values and empty-case output sentinels. Include large sparse points, nonselected nonzero coordinates, sparse/dense prefixes and suffixes, integral nonzero coordinates and fractional candidates separated by zero runs.

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/MIP_Problem/branching_test.hh; tests/MIP_Problem/branching1.cc; tests/MIP_Problem/sparsebranching1.cc; tests/MIP_Problem/sparsecandidates1.cc.

PPL-LLR-000103
3. Feasible and optimal witnesses UID: PPL-LLR-000103 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

For valid stored problem data satisfying the incremental solver's solve and result-access operations' stated input and computational-arithmetic preconditions, a feasible witness returned from a successfully solved feasible mixed integer problem shall satisfy every constraint and every designated integrality restriction. Under the same conditions, an optimal witness returned from a successfully optimized problem shall additionally attain the reported objective value, and objective values shall be represented as rational values without loss of information.

Requests for witnesses that do not exist shall be rejected through the documented result-access mechanism.

RATIONALE:

A solver status is useful to clients only when its associated witness and objective value have matching mathematical meaning. The numerical guarantee depends on the declared computational preconditions for solving and result access; accepting an unchecked calculation as completed does not establish that guarantee. Unavailable-result rejection is a separate access obligation.

COMMENT:

Verification covers feasible and optimal witness access, objective evaluation and unavailable-result rejection. The normative contracts make the input and computational-arithmetic conditions of the numerical clauses precise without qualifying the separate unavailable-result rejection obligation. Verification substitutes returned witnesses into the original mathematical constraints and objective rather than relying only on the reported solver status.

VERIFICATION_CRITERIA:

Establish the solve and result-access operations' stated input and computational-arithmetic preconditions for numerical evidence cases. Evaluate each returned point against an independent scalar form of the original constraints and check integral coordinates. Independently evaluate the objective and compare rational values by cross multiplication. Cover feasible unbounded problems, infeasible problems, and requests for an optimum in both cases. Check unavailable-witness rejection separately from the numerical guarantee and do not accept unchecked completion alone as proof of valid arithmetic.

SOURCE:

src/MIP_Problem_defs.hh: objective evaluation, feasible-point, optimizing-point, and optimal-value contracts. tests/MIP_Problem/mipfeasibilityhistories1.cc: literal feasibility witnesses and optimum checks across solver histories.

  • PPL-SPEC-001542
    4. C mixed integer solution outcomes and witnesses UID: PPL-SPEC-001542 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Satisfiability shall return the native boolean result. Solve shall return the published infeasible, unbounded or optimized status. Feasible/optimizing point getters shall return borrowed native point witnesses and reject requests for unavailable witnesses; their output handles shall remain unchanged on failure. Objective evaluation and optimum queries shall assign exact numerator/positive denominator values to existing coefficient objects under native admission and nonaliasing prerequisites. Solver-computing calls may invalidate earlier borrowed witnesses.

    The standalone strict mixed-integer query shall decide the exact feasibility contract in 🔗 1. Exact strict mixed-integer feasibility using its explicit ambient dimension. Unused coordinates and empty systems shall retain that dimension. Out-of-space rows or integer coordinates shall be rejected. Constraint-system dimension completion shall occur on a copy, preserving the input and its metadata. The standalone query shall remain available with no selected domain interface.

    The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.

    RATIONALE:

    A borrowed witness and a status have distinct ownership and mathematical roles.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_is_mixed_integer_satisfiable(ppl_dimension_type dimension,
                                         ppl_const_Constraint_System_t cs,
                                         const ppl_dimension_type integers[],
                                         size_t n);
    int ppl_MIP_Problem_is_satisfiable(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_solve(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_evaluate_objective_function(ppl_const_MIP_Problem_t mip,
                                                    ppl_const_Generator_t g,
                                                    ppl_Coefficient_t num,
                                                    ppl_Coefficient_t den);
    int ppl_MIP_Problem_feasible_point(ppl_const_MIP_Problem_t mip,
                                       ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimizing_point(ppl_const_MIP_Problem_t mip,
                                         ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimal_value(ppl_const_MIP_Problem_t mip,
                                      ppl_Coefficient_t num, ppl_Coefficient_t den);
    
    VERIFICATION_CRITERIA:

    Check all three solve outcomes, exact rational objectives, mixed integrality, witness satisfaction, failure outputs and repeated/incremental solving.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • 1. Mixed integer satisfiability UID: PPL-SPEC-001475 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed is_satisfiable shall return true exactly when a point satisfies every stored constraint and designated integer restriction. True shall include feasible problems with unbounded objective. The query may update solver caches without changing the problem. If an exception interrupts a solver query, the cache shall be discarded without allocation and the original exception shall propagate. A subsequent query shall solve from the stored model. A real-relaxation witness alone shall not establish mixed integer feasibility.

    Before solving the real relaxation for a pending result, check each stored equality whose nonzero variable coefficients all belong to declared integer coordinates. If the greatest common divisor of those coefficients fails to divide the constant, report infeasibility. The check shall preserve stored constraints and use exact working integers. Equalities with a nonzero coefficient on a continuous coordinate are outside this check. Use the current constraints and integer selection after model changes.

    An integer search over an unbounded real relaxation may run indefinitely. Configured deterministic weight limits and supported cancellation are observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.

    When the initial auxiliary objective is zero, the feasibility phase shall recognize that its upper bound is attained without pricing. Before removing basic artificial variables, it shall discard this completed objective. Cleanup pivots shall prefer a non-artificial column occurring in the fewest current tableau rows, retaining the lowest column index on a tie. Redundant rows shall be removed. These steps shall preserve the feasible point; subsequent optimization shall use the stored client objective.

    When pending nonnegativity constraints permit merging split variables, the implementation shall stably remove the negative-part columns and renumber all retained basis and variable mappings. Rows losing a basic negative part shall be reported in descending original-variable order. Any such loss shall invalidate cached-point satisfaction hints for pending inequalities. Larger merge batches shall compact row indices together; small batches may retain individual removals.

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

    RATIONALE:

    The mixed integer feasible region can be empty even when its real relaxation is nonempty.

    INTERFACE:

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

    bool is_satisfiable() const;
    
    VERIFICATION_CRITERIA:

    Check real-relaxation-only solutions, exact integral witnesses, infeasible and unbounded problems, repeated queries and queries before/after solve. Exercise an incompatible equality over integer coordinates with an unbounded real relaxation, a divisible equality, an equality involving continuous coordinates, and a previously queried problem after constraints or integer selections change.

    Check homogeneous equalities with a certified feasible origin, dependent rows, and all pricing rules, both fresh and after a feasibility query. Include bounded-coefficient cases where pricing the completed auxiliary objective, retaining it during cleanup, or choosing a more coupled pivot would overflow despite a representable cleanup. Check a later constraint excluding the origin. Check simultaneous noncontiguous merges with basic and nonbasic negative parts, fresh construction, pending cross-row cuts and intermediate feasibility queries. Use independent literal bounds and optimizing points under every pricing rule, including bounded coefficients and both matrix layouts.

    BIBLIOGRAPHY:

    Schrijver99 | Whole work; background on linear and integer optimization.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/pricing1.cc; tests/MIP_Problem/mipproblem4.cc.

  • PPL-SPEC-001477
    3. Mixed integer objective evaluation UID: PPL-SPEC-001477 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Objective evaluation shall assign rational outputs numer and denom whose ratio equals the stored objective evaluated at the supplied point, including its constant term. The denominator shall be positive. The point need not be feasible or integral. A non-point generator or one with coordinate dimension greater than the problem shall raise std::invalid_argument. Missing trailing point coordinates shall mean zero. The numerator and denominator shall be coprime.

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

    RATIONALE:

    Evaluating an affine function is independent of deciding whether its argument is a feasible witness.

    INTERFACE:

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

    void evaluate_objective_function(const Generator&,
                                      Coefficient& numer, Coefficient& denom) const;
    
    VERIFICATION_CRITERIA:

    Evaluate rational, negative, zero-dimensional and shorter points against direct scalar arithmetic, and reject rays, lines, closure points and oversized points.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/exceptions1.cc; tests/MIP_Problem/mipproblem1.cc.

  • PPL-SPEC-001478
    4. Mixed integer feasible witness access UID: PPL-SPEC-001478 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    feasible_point shall establish feasibility as needed and return a borrowed point satisfying every constraint and selected integrality condition. It shall be available for feasible unbounded as well as bounded problems. An infeasible problem shall raise std::domain_error. The returned point need not optimize the objective, and no particular feasible point shall be selected by this contract. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed point.

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

    RATIONALE:

    A feasible witness certifies membership independently of whether an optimum exists.

    INTERFACE:

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

    const Generator& feasible_point() const;
    
    VERIFICATION_CRITERIA:

    Substitute returned coordinates into original scalar constraints and integrality restrictions across all solver histories; check unavailable access.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/exceptions1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc.

  • PPL-SPEC-001479
    5. Mixed integer optimal witnesses and values UID: PPL-SPEC-001479 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    optimizing_point shall solve as needed and return a borrowed feasible point attaining the current optimum. optimal_value shall assign rational outputs with positive denominator whose ratio is that objective value. Both operations shall raise std::domain_error for infeasible or unbounded problems. No particular optimizing point or reduced fraction shall be promised when several representations are possible. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed optimizing point.

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

    RATIONALE:

    An optimization status, its witness and its rational objective value must describe the same current problem.

    INTERFACE:

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

    const Generator& optimizing_point() const;
    void optimal_value(Coefficient& numer, Coefficient& denom) const;
    
    VERIFICATION_CRITERIA:

    Independently check feasibility, integrality and objective equality, tied optima, both directions, incremental invalidation and unavailable cases.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/exceptions1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/mipproblem3.cc; tests/MIP_Problem/mipproblem4.cc.

  • PPL-SPEC-001651
    7. Point-coordinate integrality predicate UID: PPL-SPEC-001651 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For live finite coefficients numerator and divisor, with a strictly positive divisor, coordinate_is_integral shall return true exactly when numerator ⁄ divisor ∈ ℤ. It shall preserve both arguments. Zero and negative numerators, including the minimum value of a bounded signed coefficient type, shall be admitted. The predicate shall not require the quotient or the absolute numerator to be representable as a coefficient. It shall not construct quotient or GCD coefficient objects, own scratch containers, or introduce floating-point arithmetic. first_fractional_coordinate(point,variables) shall require a valid point with a positive divisor and selected indices within its dimension. It shall preserve its inputs and return the least selected index having a nonintegral coordinate, or not_a_dimension() when all selected coordinates are integral. An empty selection and divisor one shall yield that sentinel. The scan shall check early selected coordinates before sparsity admission, skip only zero coordinates, and retain an ordinary scan for dense suffixes. It shall allocate no scratch containers and shall be used by optimization, heuristic-disabled feasibility, and the cached integer-witness invariant check.

    Coefficient objects and their backend allocation/lifetime facilities shall satisfy the applicable conditions of 🔗 1. Optimization and ranking valid use.

    RATIONALE:

    A rational point coordinate is integral precisely when its positive divisor divides its numerator. Testing divisibility avoids computing an unused GCD. A positive divisor excludes zero division and the signed minimum divided by minus one, so native remainder admits the complete finite numerator range.

    INTERFACE:

    The function is local to the translation unit src/MIP_Problem.cc. The coefficient types belong to Parma_Polyhedra_Library.

    bool coordinate_is_integral(
        Coefficient_traits::const_reference numerator,
        Coefficient_traits::const_reference divisor);
    dimension_type first_fractional_coordinate(
        const Generator& point, const Variables_Set& variables);
    
    VERIFICATION_CRITERIA:

    Compare with exact unbounded-integer quotient multiplication for zero, positive, negative, minimum and maximum numerators; unit, nonunit and maximum positive divisors; large GMP values and reproducible pseudorandom inputs. Preserve the arguments. Exercise the predicate through optimization, feasibility with and without the branching heuristic, and cached integer witness validation. Inspect coefficient dispatch and scratch allocation. Compare first-fractional selection with an independent exact quotient oracle for dense/sparse points, empty and noncontiguous subsets, early/late fractions, sparsity-admission boundaries, nonselected fractional coordinates, integral nonzero suffixes and zero runs. Include positive GMP divisors with a low limb equal to one, spanning single- and multiple-limb values. Check a late fractional cached integer and wide public mixed-integer histories with independent literal optima.

    SOURCE:

    src/MIP_Problem.cc; tests/MIP_Problem/integrality1.cc; tests/MIP_Problem/integrality1_impl.cc; tests/MIP_Problem/integralityfallback1_impl.cc; tests/MIP_Problem/branching1.cc.

  • PPL-SPEC-001652
    8. Fractional branching-variable selection UID: PPL-SPEC-001652 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    choose_branching_variable shall inspect the cached rational point of mip and the variable indices in i_vars without changing either. The cached point shall be valid, have mip.space_dimension() coordinates, and satisfy the input constraints. The helper shall be called at a solver state where this cached point and these input rows are meaningful; it shall not require the tableau to determine this selection. Every index in i_vars shall belong to the ambient dimension. Scalar arithmetic and synchronization shall satisfy 🔗 1. Optimization and ranking valid use.

    Let C be the indices in i_vars whose cached coordinates are not integers. If C = ⌀, the helper shall return true and preserve branching_index. Otherwise it shall return false and assign a member of C. When |C| = 1, that member shall be selected without evaluating constraint-appearance scores.

    For more than one candidate, an active input row shall be an equality or an inequality saturated by the cached point. A candidate's score shall be the number of active input rows having a nonzero coefficient at that candidate. Rows shall contribute individually, including repeated rows. Coefficients beyond a row's dimension and constant terms shall not contribute. The helper shall select a maximum-score candidate, choosing the greatest variable index when scores tie, including when all scores are zero. Dense and sparse row representations shall have the same selection semantics.

    RATIONALE:

    Branching must select a fractional integer-constrained coordinate. The appearance heuristic and its tie rule determine a reproducible choice; a singleton needs no scoring. Sparse storage changes which zeros are visited, not the mathematical counts.

    INTERFACE:

    Private static member of Parma_Polyhedra_Library::MIP_Problem; src/MIP_Problem_defs.hh and src/MIP_Problem.cc.

    static bool choose_branching_variable(
        const MIP_Problem& mip, const Variables_Set& i_vars,
        dimension_type& branching_index);
    
    VERIFICATION_CRITERIA:

    Use independent exact rational candidate and active-row evaluation. Check divisor one, empty integer subsets, integral zero coordinates, singleton candidates, multiple candidates, ties, equalities, saturated and inactive inequalities, constant/short rows, noncandidate nonzero coefficients and candidate suffixes beyond a row's dimension. Compare both point and row representations and preserve input values and empty-case output sentinels. Include large sparse points, nonselected nonzero coordinates, sparse/dense prefixes and suffixes, integral nonzero coordinates and fractional candidates separated by zero runs.

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/MIP_Problem/branching_test.hh; tests/MIP_Problem/branching1.cc; tests/MIP_Problem/sparsebranching1.cc; tests/MIP_Problem/sparsecandidates1.cc.

PPL-LLR-000104
4. Incremental problem changes preserve semantics UID: PPL-LLR-000104 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

After supported additions of dimensions, constraints, or integer-coordinate restrictions, or changes of the objective or optimization direction, subsequent mixed integer solver queries shall describe the modified problem. Previously computed feasibility and optimality results shall not be reused when they are invalid for the modified problem.

RATIONALE:

Incremental reuse must preserve the result of solving the current mathematical problem rather than the history of earlier queries.

COMMENT:

Verification covers incremental mixed-integer problem changes and subsequent query validity. Verification compares modified problems with freshly reconstructed equivalents and checks that invalidated results are not exposed as current. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.

VERIFICATION_CRITERIA:

At each step of a change sequence, compare completed queries with a newly constructed equivalent problem and independent bounded-model results where available. Cover feasible-to-infeasible changes, changed optimal values, integer restrictions added after feasibility queries, and dimensions added after optimization.

SOURCE:

src/MIP_Problem_defs.hh: incremental solver overview and problem modification operations. src/MIP_Problem.cc: state updates for added constraints and integer-coordinate restrictions. tests/MIP_Problem/mipfeasibilityhistories1.cc: repeated queries and problem changes.

  • PPL-SPEC-001541
    3. C mixed integer incremental updates UID: PPL-SPEC-001541 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    MIP clear, dimension growth, integer-coordinate selection, constraint additions and objective/mode replacement shall forward the corresponding native updates, including integer-supported strict admission under 🔗 1. Integer-supported strict MIP admission. Counted dimension arrays shall identify selected coordinates, with duplicates having set semantics. Completed later queries shall describe the updated problem; native admission errors shall retain their categories. Clear shall restore the zero-dimensional trivial problem.

    The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.

    RATIONALE:

    Incremental C solving must agree with rebuilding the same native model.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_clear(ppl_MIP_Problem_t mip);
    int ppl_MIP_Problem_add_space_dimensions_and_embed(ppl_MIP_Problem_t mip,
                                                       ppl_dimension_type d);
    int ppl_MIP_Problem_add_to_integer_space_dimensions(ppl_MIP_Problem_t mip,
                                                        ppl_dimension_type ds[],
                                                        size_t n);
    int ppl_MIP_Problem_add_constraint(ppl_MIP_Problem_t mip,
                                       ppl_const_Constraint_t c);
    int ppl_MIP_Problem_add_constraints(ppl_MIP_Problem_t mip,
                                        ppl_const_Constraint_System_t cs);
    int ppl_MIP_Problem_set_objective_function(ppl_MIP_Problem_t mip,
                                               ppl_const_Linear_Expression_t le);
    int ppl_MIP_Problem_set_optimization_mode(ppl_MIP_Problem_t mip, int mode);
    
    VERIFICATION_CRITERIA:

    Compare independent fresh models after each update, including new integer coordinates, free dimensions, contradictory cuts and objective reversal.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001472
    1. Mixed integer constraint and dimension additions UID: PPL-SPEC-001472 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Constraint additions shall conjoin canonical admitted copies of the supplied constraints under 🔗 1. Integer-supported strict MIP admission. Unsupported continuous-support strict rows and dimension-incompatible descriptors shall raise std::invalid_argument. Dimension growth shall append unrestricted real coordinates, preserve old coordinates and reject m > max - dimension with std::length_error before adding extents. Subsequent completed queries shall refer to the modified problem; earlier results may be reused only when still valid for it.

    If allocation fails during add_constraints, an already appended prefix may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall describe exactly the retained constraints, objective and integer subset. Cached non-infeasibility results invalidated by retained rows shall be recomputed; known infeasibility shall remain valid. Input descriptors shall be preserved. Rollback to the entry constraint sequence is not required.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.

    RATIONALE:

    Incremental storage reuse must agree with a fresh problem containing exactly the retained constraints and coordinates. Conjoining constraints can invalidate feasible points and optima, whereas an empty feasible set remains empty after further constraints.

    INTERFACE:

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

    void add_constraint(const Constraint&);
    void add_constraints(const Constraint_System&);
    void add_space_dimensions_and_embed(dimension_type m);
    
    VERIFICATION_CRITERIA:

    Compare incremental and fresh instances after feasible/infeasible changes, growth after optimization, empty systems and invalid/extreme dimensions. Inject allocation failures before any append and after retained prefixes from pending, feasible, optimized, unbounded and infeasible states. Check subsequent satisfiability, witnesses, optimization status and exact values, together with input and original-source preservation.

    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; tests/MIP_Problem/exceptions1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/constraintrecovery1.cc.

  • PPL-SPEC-001473
    2. Mixed integer integrality additions UID: PPL-SPEC-001473 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Adding i_vars shall union those indices into the existing integer coordinate subset. An incompatible index shall raise std::invalid_argument. Repeated addition and an empty subset shall preserve the mathematical problem. Any cached feasible or optimal point invalidated by a newly required integral coordinate shall be recomputed before a subsequent successful result is returned.

    If allocation of integer-set nodes fails, indices already inserted may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall use exactly the retained integer subset; invalidated cached feasibility, optima and witnesses shall be recomputed. Known infeasibility shall remain valid. If no new index was inserted, the mathematical problem shall be preserved. The supplied index set shall be preserved. Rollback to the entry subset is not required.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.

    RATIONALE:

    A point feasible over the real relaxation need not remain feasible under new integer restrictions. A retained integral coordinate must therefore affect subsequent queries even if insertion of a later coordinate fails; no new restriction can make an infeasible problem feasible.

    INTERFACE:

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

    void add_to_integer_space_dimensions(const Variables_Set& i_vars);
    
    VERIFICATION_CRITERIA:

    Add integrality before and after feasibility/optimization; include fractional cached points, duplicate indices, infeasibility and fresh-model comparisons. Inject allocation failures before and after retained indices from pending, feasible, optimized, unbounded and infeasible states. Compare subsequent satisfiability, witnesses and exact optimization results with a fresh model. Check that empty and duplicate-only selections allocate no new nodes, input sets remain unchanged and invalid indices are rejected before mutation.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/exceptions1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/integerrecovery1.cc.

  • PPL-SPEC-001474
    3. Mixed integer objective and mode updates UID: PPL-SPEC-001474 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Setting an objective shall copy its affine expression and reject an expression dimension greater than the ambient dimension with std::invalid_argument. Setting mode shall select a valid MINIMIZATION or MAXIMIZATION value. Changes shall preserve the feasible region and invalidate optimality conclusions for a different objective or direction. Subsequent completed queries shall optimize the current objective and mode.

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

    RATIONALE:

    Feasibility survives objective changes, whereas finite and unbounded optimality are direction-dependent.

    INTERFACE:

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

    void set_objective_function(const Linear_Expression&);
    void set_optimization_mode(Optimization_Mode);
    
    VERIFICATION_CRITERIA:

    Change signs, constants and modes after each solver status; compare optimal witnesses and values against a fresh equivalent problem.

    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; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/constraintrecovery1.cc.

  • PPL-SPEC-001481
    1. Reloadable mixed integer solver representations UID: PPL-SPEC-001481 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Dumping shall write the problem and incremental solver representation. Loading a complete admitted representation produced by a matching coefficient and format configuration shall replace the destination problem and preserve its constraints, integer coordinates, objective, direction and subsequent query meaning. A valid prefix may be followed by unrelated stream content. These records are trusted solver snapshots. Malformed tokens, incompatible dimensions, invalid counts or indices and structural inconsistencies between the status, extents and basis shall return false without relying on debug assertions. The loader reads the recorded tableau. An altered record can pass those checks with a tableau that fails to represent its processed constraints. The loader shall check declared tableau extents against known solver bounds before loading rows and allocate constraint storage as records are read. False shall not promise rollback or further queries. Surviving resources 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:

    Reloading is replacement, and structural admission must hold in optimized as well as debugging builds.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of MIP_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 unsolved and every solved state into fresh and populated destinations, then modify/solve; reject every truncated token, malformed extent, count, mapping and status combination. 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/MIP_Problem.cc; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; tests/MIP_Problem/ascii_dump_load1.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/mipproblem4.cc.

  • PPL-SPEC-001470
    4. Mixed integer copying, exchange and reset UID: PPL-SPEC-001470 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

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

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

    RATIONALE:

    Cached optimization state is part of owned storage but must not compromise mathematical value independence.

    INTERFACE:

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

    MIP_Problem(const MIP_Problem&); ~MIP_Problem();
    MIP_Problem& operator=(const MIP_Problem&);
    void m_swap(MIP_Problem&); void clear();
    void swap(MIP_Problem&, MIP_Problem&);
    
    VERIFICATION_CRITERIA:

    Copy unsolved, feasible, optimized, infeasible and unbounded states; modify each copy, self-assign, exchange and reset after solving.

    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; tests/MIP_Problem/constructorownership1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/MIP_Problem/mipproblem1.cc; tests/MIP_Problem/persistenceadmission1.cc.

PPL-LLR-000451
5. Integer-supported strict MIP admission UID: PPL-LLR-000451 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

The C++ mixed integer solver shall admit strict rows whose nonzero variable support is declared integral. Under the arithmetic preconditions, canonical closed storage shall preserve exactly the feasible set with its declared integer coordinates, objective values and existing optimization-result meaning. Rows depending on continuous coordinates shall remain unsupported by stored MIP optimization models.

RATIONALE:

Strict inequalities over integer-valued linear forms have exact closed equivalents. The declared integer subset, rather than the problem being globally all-integer, determines eligibility.

VERIFICATION_CRITERIA:

Compare integer-supported rows with integer arithmetic, include signs, constants, homogeneous GCD reduction, all construction/insertion forms, canonical descriptor queries and reload. Check rejection before value updates for unsupported bulk input.

  • 1. Integer-supported strict MIP admission UID: PPL-SPEC-001668 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A strict row ax + b > 0 shall be admitted by MIP_Problem construction and insertion exactly when every coordinate with nonzero coefficient in a is in the declared integer subset. Unused continuous coordinates shall not prevent admission. Constructors without an integer subset shall therefore admit only strict constant rows. Dimension validation shall precede normalization. Unsupported support shall raise std::invalid_argument.

    Under the arithmetic preconditions, the admitted row shall be stored as an integer-equivalent closed row. For positive homogeneous GCD g, its meaning shall be (a ⁄ g)x ≥ ⌊ − b ⁄ g⌋ + 1; constant rows shall retain their truth value. Constraint views and reloadable storage shall expose these canonical closed rows in admitted input order. Integer declarations shall restrict the selected coordinates to integers. Optimization results and witnesses shall satisfy 🔗 2. Mixed integer optimization outcomes, 🔗 4. Mixed integer feasible witness access and 🔗 5. Mixed integer optimal witnesses and values.

    Single-row validation/conversion failure shall not append a row. Bulk strict support validation and conversion shall complete before any row is appended. A later allocation failure may leave an appended prefix with provisional solution state; known infeasibility shall remain valid. Input descriptors shall be preserved.

    The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.

    RATIONALE:

    An integer-valued primitive form is strictly greater than  − b ⁄ g exactly when it is at least ⌊ − b ⁄ g⌋ + 1. Dividing before adjusting the constant avoids unnecessary coefficient growth, such as 3x − 128 > 0 becoming x ≥ 43. Nonstrict input retains its existing admission path; strict-only work is outlined.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

    The constructors in 🔗 3. Mixed integer construction from constraints and the following members:

    void MIP_Problem::add_constraint(const Constraint&);
    void MIP_Problem::add_constraints(const Constraint_System&);
    
    VERIFICATION_CRITERIA:

    Check integer truth tables, constant true/false rows, partially integral support, trailing zero coordinates, canonical views, cached feasible/infeasible/optimized states, all constructor forms, single-pass ranges, invalid dimensions, bulk validation before append, resource-failure state validity, reload and C-wrapper forwarding.

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem_templates.hh; src/MIP_Problem.cc; tests/MIP_Problem/integralstrict1.cc.

  • PPL-SPEC-001671
    1. Strict-row support and admission kernels UID: PPL-SPEC-001671 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    mip_strict_support_is_integral shall return true exactly when all nonzero visible variable coefficients of the supplied row of any relation refer to indices in the supplied integer subset. It shall ignore the constant, hidden NNC epsilon coordinate and zero coefficients, without changing either input.

    For an integer-supported strict row, mip_closed_integral_strict shall produce the closed equivalent defined in 🔗 1. Integer-supported strict MIP admission, handling constant truth values separately. Its GCD, quotient and adjustment operations shall satisfy the selected exact arithmetic profile's intermediate-value preconditions. Inputs shall retain their value.

    add_integral_strict_constraint requires dimension compatibility and a strict input. It shall validate support, convert, append and invalidate any cached non-infeasibility conclusion. Validation, conversion or pre-append allocation failure shall preserve the model.

    add_integral_strict_constraints requires dimension compatibility and a system containing strict rows. It shall validate and convert all strict rows before appending any source row. Conversion failure shall preserve the model; subsequent append failure may leave a prefix with provisional solution state. Both helpers shall preserve known infeasibility.

    The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.

    RATIONALE:

    Nonzero traversal makes support checking depend on represented coefficients rather than sparse ambient extent. A positive GCD permits exact divisibility testing without another GCD or a signed minimum divided by minus one. Preconversion isolates strict validation from model mutation.

    INTERFACE:

    File-local helpers: unnamed namespace in src/MIP_Problem.cc. Private member declarations: src/MIP_Problem_defs.hh, class Parma_Polyhedra_Library::MIP_Problem.

    bool mip_strict_support_is_integral(const Constraint&, const Variables_Set&);
    Constraint mip_closed_integral_strict(const Constraint&);
    void MIP_Problem::add_integral_strict_constraint(const Constraint&);
    void MIP_Problem::add_integral_strict_constraints(const Constraint_System&);
    
    VERIFICATION_CRITERIA:

    Exercise equality, weak and strict row support, every sign/divisibility combination, empty and mixed support, sparse trailing coordinates, constant truth, homogeneous GCD one/non-one, canonical integer equivalence, rejected support and append-failure cache validity through the public APIs.

    SOURCE:

    src/MIP_Problem.cc; src/MIP_Problem_defs.hh; tests/MIP_Problem/integralstrict1.cc; tests/MIP_Problem/strictoptimizationpolicy1.cc.

PPL-LLR-000452
6. Strict mixed-integer feasibility UID: PPL-LLR-000452 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide a C++ exact feasibility query for finite systems of linear equalities and weak or strict inequalities with a selected subset of integer coordinates. Under the input, dimension and arithmetic preconditions, true shall mean that at least one point satisfies every row and integer restriction; false shall mean none exists. No positive fixed numerical tolerance shall replace strict satisfaction. When a feasibility witness is requested, a true result shall provide a point satisfying every original row and integer restriction; a false result shall preserve the supplied witness.

RATIONALE:

A closed relaxation can admit points or integer layers excluded by strict boundaries. A continuous slack variable tests simultaneous positive slack without changing the integer subset. Its positive maximizing point also supplies an exact feasibility witness.

VERIFICATION_CRITERIA:

Compare strict intervals, empty integer intervals, mixed-coordinate slices and excluded integer layers with independent reasoning and slack optimization. Exercise source preservation, constants, unsupported index sets and auxiliary dimension limits. Independently evaluate returned witness coordinates and verify that false preserves the prior witness.

  • 1. Exact strict mixed-integer feasibility witnesses UID: PPL-SPEC-001680 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A successfully completed three-argument is_mixed_integer_satisfiable shall report the exact feasibility defined by 🔗 1. Exact strict mixed-integer feasibility, preserving both inputs. True shall assign a POINT of the original ambient dimension that satisfies every original row and designated integrality restriction. False shall preserve the supplied witness. The output shall own its representation independently of the local solver.

    Index validation, dimension capacity, exact normalization of integer-supported strict rows and the positive shared-slack criterion shall be those of 🔗 1. Exact strict mixed-integer feasibility. Closed systems and systems whose strict rows all have integral support shall require no auxiliary slack coordinate. With remaining strict rows, a positive optimum shall supply the maximizing point, projected off that slack coordinate; optimum zero or infeasibility shall return false. Empty systems, zero dimensions and constant rows shall retain their ordinary mathematical meanings.

    The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply. The false-result preservation guarantee shall not strengthen those common guarantees for exceptions during solving, copying or output assignment.

    RATIONALE:

    A strictly feasible point has a positive minimum slack across the finitely many strict rows. Conversely, every positive shared-slack point satisfies them all. Copying the resulting point before destruction of the local solver and removing the auxiliary coordinate produces an independently owned witness in the original space.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

    bool is_mixed_integer_satisfiable(const Constraint_System& cs,
                                     const Variables_Set& integer_dimensions,
                                     Generator& witness);
    
    VERIFICATION_CRITERIA:

    Check closed, integral-strict and continuously strict feasible/infeasible systems, both coefficient signs, equalities, mixed and empty integer subsets, constants, zero dimensions, rational slacks and invalid dimensions. Compare with independent bounded integer-fiber enumeration and evaluate witnesses using GMP rational arithmetic. Verify false-result and input preservation, source independence, and valid state under allocation failures.

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/MIP_Problem/strictwitness1.cc; tests/MIP_Problem/strictwitnessfailure1.cc.

  • 1. Exact strict mixed-integer feasibility UID: PPL-SPEC-001669 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A successfully completed is_mixed_integer_satisfiable(cs, integer_dimensions) shall return true exactly when {x ∈ Rn ∣ cs(x),  xi ∈ Z for selected i} is nonempty, where n is the system's ambient dimension. Other coordinates shall remain real, and every strict boundary shall retain its membership meaning. The inputs shall be preserved.

    A selected index outside that dimension shall raise std::invalid_argument. The ordinary MIP dimension limit shall apply. If a strict row depends on a continuous coordinate, one additional continuous coordinate shall be required; insufficient dimension capacity shall raise std::length_error. Integer-supported strict rows shall use exact closed normalization without requiring that extra coordinate. Empty selections, empty systems, zero dimensions and constant rows shall retain their mathematical meanings.

    For remaining strict rows aix + bi > 0, feasibility shall be decided by a shared continuous slack s, with aix + bi ≥ s, 0 ≤ s ≤ 1, and exact maximization of s. Integer indices shall remain unchanged and shall exclude s. Infeasibility or optimum zero shall yield false; a positive exact optimum shall yield true. This interface shall not optimize an arbitrary user objective over an open feasible set.

    The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.

    The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.

    RATIONALE:

    Any strict witness has a positive minimum slack across the finitely many strict rows; taking its minimum with one gives a feasible positive s. Conversely, a positive slack witness satisfies every original strict row. The slack objective is bounded by one. Closing integer-supported rows first avoids unnecessary auxiliary dimensions and optimization. The comparisons use exact rational values, not a chosen floating-point epsilon.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

    bool is_mixed_integer_satisfiable(const Constraint_System& cs,
                                     const Variables_Set& integer_dimensions);
    
    VERIFICATION_CRITERIA:

    Check independent always-slack and literal finite-coordinate witnesses, closed and open unit intervals, incompatible integer declarations, mixed slices with only closure-feasible integer layers, rational positive slacks, false/tautological constants, input preservation. Review dimension-capacity rejection through the checked dimension-growth operation.

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/MIP_Problem/strictfeasibility1.cc.

PPL-LLR-000456
7. General strict mixed-integer optimization UID: PPL-LLR-000456 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide C++ optimization over finite systems of linear equalities and weak or strict inequalities with a selected subset of integer coordinates. Under the input, dimension and configured-arithmetic preconditions, a completed request shall distinguish infeasibility, feasible unboundedness in the requested direction, an attained finite optimum, and an unattained finite bound. A finite bound shall be returned as an exact rational value. An attained result shall provide a feasible optimizing point; an unattained result shall provide a limit point with the reported objective value in the closure of a nonempty original fiber at its integer coordinates. Infeasible and unbounded results shall preserve the supplied value and point outputs. Inputs shall retain their values. No fixed positive numerical tolerance shall replace strict satisfaction.

RATIONALE:

Closing strict boundaries can introduce entirely infeasible integer layers. A limit is valid only when it is approachable while retaining its integer coordinates in the original feasible set. A rational closed auxiliary model can represent exactly those valid limits, followed by a separate attainment query in the original strict system.

VERIFICATION_CRITERIA:

Check both optimization directions, all four outcomes, rational bounds, constant objectives and zero dimensions. Include closure-only integer layers and unbounded integer ranges. Compare bounded integer fibers with independent polyhedral optimization, evaluate every returned point and objective directly, and establish nonempty original fibers for returned limits. Exercise range and capacity rejection, output/input preservation and allocation failures.

BIBLIOGRAPHY:

Meyer74 | Abstract (rational constraint coefficients suffice for attainment in feasible bounded closed mixed-integer problems).

  • PPL-SPEC-001681
    1. Uniform strict-margin denominator UID: PPL-SPEC-001681 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    strict_margin_denominator(cs, integers, continuous) shall require valid input rows, in-range integer indices and a sorted complete list of the other coordinates. At least one strict row shall depend on a continuous coordinate. Missing trailing row coordinates shall have coefficient zero.

    Let k count continuously supported strict rows and let Sj = max(1, ∑ia2ij) for each listed continuous column. The result shall be D = ⌈√((k + 2)∏jSj)⌉. The norm sums, product, square root and ceiling shall use exact GMP integers. For each nonempty fiber obtained by fixing the designated integer coordinates, a strict witness shall exist with every continuously supported strict row ei ≥ 1 ⁄ D while satisfying all other rows.

    GMP coefficients shall admit the exact result without a fixed integer bound. For bounded signed coefficients, a positive result beyond the configured maximum shall raise std::overflow_error before narrowing it, including in native configurations. Inputs shall be preserved. Resource and other common failure conditions shall be those of 🔗 1. Optimization and ranking valid use.

    RATIONALE:

    Fixing integer coordinates leaves integer right-hand sides. A positive optimal shared slack has a basic rational value whose denominator is bounded by a nonzero integer basis determinant. Removing unit slack columns leaves a minor of the continuous and shared-slack columns. Signed copies of a free column cannot both occur independently in a basis. Hadamard's inequality bounds every such minor by the product of column norms; factors at least one also bound smaller minors. The slack column has squared norm at most k + 2, including its two bounds. Thus every positive optimum is at least 1 ⁄ D, independently of the integer right-hand sides.

    INTERFACE:

    File-local helper in the unnamed namespace of src/MIP_Problem.cc.

    Coefficient strict_margin_denominator(
      const Constraint_System& cs, const Variables_Set& integers,
      const std::vector<dimension_type>& continuous);
    
    VERIFICATION_CRITERIA:

    Through the public optimizer, cover zero/unit/nonunit column norms, perfect and nonperfect square products, different integer subsets, trailing constant false rows, mixed relation kinds, finite and unbounded integer ranges, both storage layouts and exact bounded-range rejection. Use literal limits and independent integer-fiber optimization to verify the resulting feasible set. Review the determinant bound and capacity checks independently of test counts.

    SOURCE:

    src/MIP_Problem.cc; tests/MIP_Problem/strictoptimization1.cc; tests/MIP_Problem/strictoptimizationpolicy1.cc; tests/MIP_Problem/strictoptimizationfailure1.cc.

  • PPL-SPEC-001682
    2. Exact general strict mixed-integer optimization UID: PPL-SPEC-001682 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    optimize_mixed_integer shall interpret the input constraints, integer subset, affine objective and valid minimization/maximization mode over the original strict feasible set. The scalar output objects shall be distinct. An integer index or objective dimension outside the system's ambient dimension shall raise std::invalid_argument. The inputs shall be preserved.

    A successfully completed query shall report a Mixed_Integer_Optimization_Status that distinguishes: INFEASIBLE (no original feasible point), UNBOUNDED (feasible and unbounded in the requested direction), ATTAINED (finite attained optimum), and UNATTAINED (finite supremum/infimum that is not attained). Both finite results shall assign the exact value as numerator/denominator with positive denominator and a generator of the original ambient dimension. An attained result shall return a POINT satisfying every original row and integer restriction at that value. An unattained result shall return a CLOSURE_POINT at that value, satisfying the weakened rows and belonging to the closure of a nonempty original fiber at the returned integer coordinates. Infeasible and unbounded results shall preserve all three outputs. The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.

    A constant objective shall use 🔗 1. Exact strict mixed-integer feasibility witnesses and shall be attained exactly when the original set is nonempty. Without continuously supported strict rows, the ordinary MIP model and exact integral-strict normalization shall provide the result without a witness-coordinate copy or margin bound.

    Otherwise let r be the number of continuous coordinates. Insufficient MIP capacity for n + r coordinates shall raise std::length_error before allocating the coordinate map. Use D from 🔗 1. Uniform strict-margin denominator to construct a closed model with original coordinates for a limit and copied continuous coordinates for a strict witness, sharing exactly the original integer coordinates. Insert integer-supported rows once, normalizing their strict forms. On the limit coordinates weaken the remaining strict rows. On witness coordinates replace each strict row by Dei ≥ 1, preserving weak rows and equalities. Optimize the original objective on the limit coordinates. For a finite bound p ⁄ q, test the original strict system with the equality qf = p using 🔗 1. Exact strict mixed-integer feasibility witnesses. Success shall supply the optimizing point; failure shall supply the projected limit as a closure point.

    The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply to all intermediate computations and output assignments. Arithmetic/range and resource exceptions shall not be mathematical statuses. Terminal-status output preservation shall not imply rollback after such exceptions.

    RATIONALE:

    The uniform margin provides a strict witness for every nonempty integer fiber. Conversely, a modeled limit and its witness share integer coordinates, and their convex combinations approach the limit while satisfying every original strict row. Therefore the closed model has exactly the original bounds and preserves infeasibility and unboundedness. Rational closed MILP attains every feasible finite bound. Testing the original equality face then distinguishes an actual optimizing point from an unattained limit.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

    enum class Mixed_Integer_Optimization_Status {
      INFEASIBLE, UNBOUNDED, ATTAINED, UNATTAINED
    };
    Mixed_Integer_Optimization_Status optimize_mixed_integer(
      const Constraint_System& cs, const Variables_Set& integers,
      const Linear_Expression& objective, Optimization_Mode mode,
      Coefficient& numerator, Coefficient& denominator, Generator& extremum);
    
    VERIFICATION_CRITERIA:

    Exercise both directions and all outcomes with literal examples and independent finite integer-fiber enumeration. Cover excluded integer layers, open and closed optimal faces, negative and rational objectives, equalities, constant objectives, zero dimensions, all/none integer selections and unbounded integer ranges. Independently evaluate outputs, confirm nonempty original fibers for closure points, and check input/terminal-output preservation, invalid dimensions, insufficient capacity, denominator overflow and allocation failures across admitted arithmetic/storage configurations.

    BIBLIOGRAPHY:

    Meyer74 | Abstract (rational constraint coefficients suffice for attainment in feasible bounded closed mixed-integer problems).

    SOURCE:

    src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/MIP_Problem/strictoptimization1.cc; tests/MIP_Problem/strictoptimizationpolicy1.cc; tests/MIP_Problem/strictoptimizationfailure1.cc.