-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
1. C mixed integer problem values PPL-SPEC-001539 MIP constructors shall create an owned trivial, copied or constraint/objective/mode problem with the corresponding native MIP_Problem meaning. Copied constraints and objectives shall remain independent of later source mutations. Assignment shall replace the problem; deletion shall release owned state. A failed constructor shall leave its output handle unchanged and release acquired resources. The accepted mode shall select the published minimization value or maximization behavior.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C mixed integer descriptors and borrowing PPL-SPEC-001540 MIP queries shall report ambient dimension, integer-coordinate count/list, constraint count and optimization mode. Constraint-at-index and objective getters shall return borrowed const views of the stored problem. An admitted strict inequality shall appear as the equivalent closed row under the declared integrality restrictions. Indexed constraints shall follow native insertion order and reject out-of-range indices. The caller shall supply output arrays large enough for the separately queried count. Borrowed descriptors shall not be deleted or mutated and shall remain valid only under the accessor's owner-lifetime/invalidation rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C mixed integer incremental updates PPL-SPEC-001541 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.
-
1. Mixed integer constraint and dimension additions PPL-SPEC-001472 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.
-
2. Mixed integer integrality additions PPL-SPEC-001473 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.
-
3. Mixed integer objective and mode updates PPL-SPEC-001474 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.
-
1. Reloadable mixed integer solver representations PPL-SPEC-001481 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.
-
2. Mixed integer diagnostics, display and storage PPL-SPEC-001482 OK shall check the implemented structural and cached-feasibility invariants without proving global optimality. Display shall show constraints, objective, direction and integer coordinates, return its stream, and remain distinct from reloadable serialization. External memory shall estimate managed storage, including owned constraints and solver arrays; total memory shall add sizeof(*this). Shared or pooled storage accounting shall remain an estimate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Mixed integer problem values PPL-SPEC-001467 A problem of dimension n shall denote the points in Rn satisfying its stored equalities and non-strict inequalities, with coordinates in integer_space_dimensions() restricted to integers. Other coordinates shall remain unrestricted real coordinates. The objective shall be an affine linear expression, including its constant term. The mode shall select minimization or maximization. Stored constraints shall retain their mathematical meaning independently of subsequent source mutations.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Trivial mixed integer construction and dimensions PPL-SPEC-001468 Construction from dim shall create a problem with no explicit constraints or integer coordinates, zero objective and maximization mode. The default dimension shall be zero. Dimension queries shall report its ambient extent and the supported maximum. An extent greater than the maximum, including the reserved non-dimension value, shall raise std::length_error.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
3. Mixed integer construction from constraints PPL-SPEC-001469 System construction shall copy its canonical admitted constraints, objective and mode. Range construction shall copy the constraints in the valid half-open input range; the overload with int_vars shall additionally select those integer coordinates. Omitted objectives and modes shall mean zero and maximization.
The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. It shall additionally provide operator-> for constraint metadata. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.
An excessive ambient dimension shall raise std::length_error. Strict rows shall follow 🔗 1. Integer-supported strict MIP admission. Unsupported strict support or constraint, objective or integer-coordinate dimensions greater than dim shall raise std::invalid_argument. Failed construction shall release every constraint copy already acquired.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Mixed integer copying, exchange and reset PPL-SPEC-001470 Copying and assignment shall preserve the mathematical problem and permit independent later mutation and solving. Assignment shall return the receiver and support self-assignment. Exchange shall swap the complete problem and solver state; self-exchange shall preserve the value. clear shall reset to the zero-dimensional trivial problem. Destruction shall release owned constraints and solver storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Mixed integer descriptor views and iterators PPL-SPEC-001471 Descriptor accessors shall expose the stored objective, optimization mode and integer-coordinate subset. Constraint iterators shall expose const canonical admitted constraints in insertion order, as defined by 🔗 1. Integer-supported strict MIP admission, and support random-access movement, difference, dereference and comparison within the same live sequence. The end position shall not be dereferenced. Iterator arithmetic shall stay within that sequence and its end. Mutations that reallocate, clear, exchange or replace storage may invalidate borrowed views and iterators.
Default-constructed constraint iterators shall be singular and compare equal to one another. They shall support copying, assignment and destruction; dereference and movement require assignment from a valid iterator first. The constraint iterator shall satisfy the C++20 bidirectional-iterator and sized-sentinel concepts, permitting standard range adapters and algorithms.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
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 PPL-SPEC-001466 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.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
4. C mixed integer solution outcomes and witnesses PPL-SPEC-001542 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.
-
1. Mixed integer satisfiability PPL-SPEC-001475 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.
-
Incoming link from: 1. Integer-supported strict MIP admission1
2. Mixed integer optimization outcomes PPL-SPEC-001476 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.
-
6. Mixed integer pricing controls PPL-SPEC-001480 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.
-
7. Point-coordinate integrality predicate PPL-SPEC-001651 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.
-
8. Fractional branching-variable selection PPL-SPEC-001652 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.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
4. C mixed integer solution outcomes and witnesses PPL-SPEC-001542 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.
-
1. Mixed integer satisfiability PPL-SPEC-001475 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.
-
3. Mixed integer objective evaluation PPL-SPEC-001477 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.
-
Incoming link from: 1. Integer-supported strict MIP admission1
4. Mixed integer feasible witness access PPL-SPEC-001478 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.
-
Incoming link from: 1. Integer-supported strict MIP admission1
5. Mixed integer optimal witnesses and values PPL-SPEC-001479 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.
-
7. Point-coordinate integrality predicate PPL-SPEC-001651 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.
-
8. Fractional branching-variable selection PPL-SPEC-001652 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.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
3. C mixed integer incremental updates PPL-SPEC-001541 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.
-
1. Mixed integer constraint and dimension additions PPL-SPEC-001472 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.
-
2. Mixed integer integrality additions PPL-SPEC-001473 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.
-
3. Mixed integer objective and mode updates PPL-SPEC-001474 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.
-
1. Reloadable mixed integer solver representations PPL-SPEC-001481 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.
-
4. Mixed integer copying, exchange and reset PPL-SPEC-001470 Copying and assignment shall preserve the mathematical problem and permit independent later mutation and solving. Assignment shall return the receiver and support self-assignment. Exchange shall swap the complete problem and solver state; self-exchange shall preserve the value. clear shall reset to the zero-dimensional trivial problem. Destruction shall release owned constraints and solver storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
1. Integer-supported strict MIP admission PPL-SPEC-001668 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.
-
1. Strict-row support and admission kernels PPL-SPEC-001671 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.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
1. Exact strict mixed-integer feasibility witnesses PPL-SPEC-001680 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.
-
1. Exact strict mixed-integer feasibility PPL-SPEC-001669 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.
-
5. Linear optimization with integrality and parameters PPL-HLR-000005 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.
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.
-
Incoming link from: 2. Exact general strict mixed-integer optimization1
1. Uniform strict-margin denominator PPL-SPEC-001681 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.
-
2. Exact general strict mixed-integer optimization PPL-SPEC-001682 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.