Parma Polyhedra Library requirements
C++ General strict mixed-integer optimization

C++ General strict mixed-integer optimization

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.