C++ mip persistence
- PPL-LLR-000101 Mixed integer problem interpretation (Specifies)
- PPL-LLR-000104 Incremental problem changes preserve semantics (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
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.
Reloading is replacement, and structural admission must hold in optimized as well as debugging builds.
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&);
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.
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-LLR-000101 Mixed integer problem interpretation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
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.
Diagnostics describe internal consistency and resource accounting rather than a mathematical optimization certificate.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of MIP_Problem or the concrete type named below.
bool OK() const; void print() const; memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const; std::ostream& IO_Operators::operator<<(std::ostream&, const MIP_Problem&);
Check all valid solver states, stream identity and labels, byte relationships and ownership after copies, reset and failures.
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/mipproblem1.cc; tests/MIP_Problem/mipproblem4.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc.