-
Incoming link from: 4. Command-line input and outcome reporting1
2. Linear optimization command-line solver UID: PPL-LLR-000220 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT: When the linear optimization tool is built with its required input-library dependency, it shall accept its supported MPS problem descriptions and, on successful completion within its documented arithmetic and resource assumptions, use the selected PPL solving mode to report infeasibility, unboundedness or an optimum for the interpreted linear or mixed-integer problem.
RATIONALE: The standalone solver exposes linear optimization and provides a client of the C language interface.
COMMENT: Verification covers supported MPS interpretation, solving-mode selection and completed mathematical result reporting. Independent problem checks and input/solver-path inspection verify those contracts. GLPK is used for input handling, whose numeric interpretation must be respected. Optional GLPK result-comparison mode is not required for every build or execution mode. Failure reporting is governed by 🔗 4. Command-line input and outcome reporting.
VERIFICATION_CRITERIA: Supported MPS examples cover infeasible, unbounded and bounded-optimum problems, including integer restrictions in applicable solving modes; reported optima and witnesses satisfy the interpreted constraints and objective; comparisons use the documented input interpretation. Exercise ordinary rows with decisive column bounds, including fixed boxes, contradictions introduced by bounds, redundant rows, column-only finite optima and integer-infeasible half-integral equalities. Include positive and negative fractional objective constants with integral variable coefficients, minimization and maximization, batch and incremental solving, and the supported serial and worker protocols. Check literal known objectives with and without optional GLPK comparison; use zero comparison tolerance for exactly representable controls. Serial and worker drivers exercise the same cases and preserve numerical output and exit statuses. LP comparison preserves the imported coefficients and independently certifies primal and dual feasibility and the exact objective from a GLPK basis; include cancellation-sensitive objectives and rejection of invalid certificates, including errors smaller than floating-point precision. Exercise numerically suggested certificates and the exact fallback; independently verify primal and transposed solves across row permutations and common integer row factors.
SOURCE: README.configure.md, Programs that Come with the Library; demos/ppl_lpsol/ppl_lpsol.c, MPS import, solving-mode selection and result reporting; demos/ppl_lpsol/Makefile.am; demos/ppl_lpsol/check_objective_test.sh; demos/ppl_lpsol/check_bounds_test.sh; demos/ppl_lpsol/exact_lp.c; demos/ppl_lpsol/exactlp1.c; demos/ppl_lpsol/lpsol_test_functions.sh.
-
4. Command-line input and outcome reporting UID: PPL-LLR-000441 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001657 Native output pathname construction for polyhedral conversion (Specified by)
- PPL-SPEC-001705 MPS linear optimization command protocol (Specified by)
- PPL-SPEC-001706 Parametric integer solver command protocol (Specified by)
- PPL-SPEC-001734 Polyhedral conversion command protocol (Specified by)
STATEMENT: Each distributed numerical command-line tool shall define its accepted input formats and option interpretation, output conventions, and diagnostics for invalid input, input/output failure, arithmetic or resource failure, and supported interruption. Its observable output and termination conventions shall distinguish completed numerical results from failed or incomplete computations. A failed or incomplete computation shall not be presented as a completed numerical result.
RATIONALE: A mathematical success contract is insufficient for command-line clients that must distinguish valid numerical conclusions from failure to compute them.
COMMENT: Verification covers each tool's accepted input, options, diagnostics and observable completion/failure conventions. Command-line scenario checks and parser/reporting-path inspection verify these contracts. 🔗 1. Polyhedral representation conversion tool, 🔗 2. Linear optimization command-line solver and 🔗 3. Parametric integer optimization tool own the completed mathematical results. The tools need not share exit codes or diagnostic text; an existing zero-status timeout convention may remain valid only when its observable output identifies an incomplete computation.
VERIFICATION_CRITERIA: For each selected tool and supported backend or mode, review accepted formats and options and exercise completed numerical outcomes, malformed input, invalid options, unavailable files, output failures, supported numerical/resource failures and interruptions. Check diagnostics and termination conventions together rather than assuming a uniform exit-code policy. Distinguish a mathematically infeasible problem from invalid input, and an explicitly reported timeout from a completed conversion or optimization.
SOURCE: demos/ppl_lcdd/ppl_lcdd.cc: input, option and output handling, diagnostics and timeout marker; demos/ppl_lpsol/ppl_lpsol.c: MPS input and reported outcomes; demos/ppl_pips/ppl_pips.cc: input parsers, option processing and error reporting; README.configure.md: Programs that Come with the Library.
In a build providing ppl_lpsol and its GLPK input dependency, the tool shall interpret supported MPS input using the documented GLPK import semantics, including row relations, column bounds, integrality and objective constant. On completed computation within the selected mode's arithmetic/resource preconditions, it shall report infeasibility, unboundedness or the exact optimum of the interpreted problem. Mixed-integer restrictions apply only in modes supporting them. Batch, incremental and supported worker execution shall preserve numerical outcomes.
With GLPK comparison selected, an LP comparison shall preserve the imported coefficients and certify primal/dual feasibility and objective equality using exact arithmetic rather than treat a floating-point suggestion as proof. By default, the optimum comparison shall use a tolerance of 1e-9 for an exactly certified LP optimum and of 1e-9 times (1 + the absolute value of the GLPK optimum) for a MIP optimum. An explicit threshold shall set an absolute tolerance. Failed input or incomplete computation shall be observably distinguished from a completed numerical conclusion. Supported options, mode restrictions, diagnostics and exit conventions shall be those advertised by the tool.
Exact solving must retain every imported row, bound and objective term; optional comparison must assess that same mathematical problem.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Executable ppl_lpsol: documented options followed by the supported MPS input filename (or supported worker inputs). --help defines available options for the build. Observable outputs are status, exact rational optimum and requested witness/diagnostics; comparison options select an independent check rather than change the interpreted optimization problem. The GLPK-imported numerical values define the problem, including any rounding introduced by that input library.
Check literal infeasible/unbounded/optimal LP and MIP cases, column-only bounds, fractional objective constants and row permutations. Compare batch/incremental and serial/worker outcomes. Exercise exact certificates, invalid certificates, fallback and supported input/failure modes.
demos/ppl_lpsol/ppl_lpsol.c; demos/ppl_lpsol/exact_lp.c; demos/ppl_lpsol/check_bounds_test.sh; demos/ppl_lpsol/check_objective_test.sh; demos/ppl_lpsol/exactlp1.c.
-
Incoming link from: 4. Command-line input and outcome reporting1
3. Parametric integer optimization tool UID: PPL-LLR-000221 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT: When built with the PPL backend, the parametric integer optimization tool shall interpret its accepted problem input and, on successful completion within its documented arithmetic and resource assumptions, display a parametric solution describing the lexicographic minimum over feasible integer solutions as a function of the problem parameters.
RATIONALE: Parametric solution output makes the library's integer optimization capability available to standalone users.
COMMENT: Verification covers the parametric tool's supported input formats and PPL-backend solution output. Concrete parameter evaluation and input/output-path inspection verify the declared symbolic meanings. The supported input and result guarantees apply when the tool is selected and built with the PPL backend; it does not prescribe behavior of an unsupported alternative backend. Failure reporting is governed by 🔗 4. Command-line input and outcome reporting.
VERIFICATION_CRITERIA: Accepted examples in each supported input format produce solution cases whose guards identify the applicable parameter values and whose solutions agree with independent evaluations of small concrete parameter instances, including infeasible cases.
SOURCE: demos/ppl_pips/ppl_pips.cc, usage description, input parsers and solution-tree output; demos/ppl_pips/Makefile.am; configure.ac, parametric solver build selection.
-
4. Command-line input and outcome reporting UID: PPL-LLR-000441 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001657 Native output pathname construction for polyhedral conversion (Specified by)
- PPL-SPEC-001705 MPS linear optimization command protocol (Specified by)
- PPL-SPEC-001706 Parametric integer solver command protocol (Specified by)
- PPL-SPEC-001734 Polyhedral conversion command protocol (Specified by)
STATEMENT: Each distributed numerical command-line tool shall define its accepted input formats and option interpretation, output conventions, and diagnostics for invalid input, input/output failure, arithmetic or resource failure, and supported interruption. Its observable output and termination conventions shall distinguish completed numerical results from failed or incomplete computations. A failed or incomplete computation shall not be presented as a completed numerical result.
RATIONALE: A mathematical success contract is insufficient for command-line clients that must distinguish valid numerical conclusions from failure to compute them.
COMMENT: Verification covers each tool's accepted input, options, diagnostics and observable completion/failure conventions. Command-line scenario checks and parser/reporting-path inspection verify these contracts. 🔗 1. Polyhedral representation conversion tool, 🔗 2. Linear optimization command-line solver and 🔗 3. Parametric integer optimization tool own the completed mathematical results. The tools need not share exit codes or diagnostic text; an existing zero-status timeout convention may remain valid only when its observable output identifies an incomplete computation.
VERIFICATION_CRITERIA: For each selected tool and supported backend or mode, review accepted formats and options and exercise completed numerical outcomes, malformed input, invalid options, unavailable files, output failures, supported numerical/resource failures and interruptions. Check diagnostics and termination conventions together rather than assuming a uniform exit-code policy. Distinguish a mathematically infeasible problem from invalid input, and an explicitly reported timeout from a completed conversion or optimization.
SOURCE: demos/ppl_lcdd/ppl_lcdd.cc: input, option and output handling, diagnostics and timeout marker; demos/ppl_lpsol/ppl_lpsol.c: MPS input and reported outcomes; demos/ppl_pips/ppl_pips.cc: input parsers, option processing and error reporting; README.configure.md: Programs that Come with the Library.
With its PPL backend, ppl_pips shall accept the documented PolyLib format or selected PipLib format, preserving the integer constraints, context, variable/parameter split and designated big-parameter convention. In ordinary single-solve output mode, successful completion within native arithmetic and resource preconditions shall display the PIP solution tree: case guards select parameter regions and leaves describe the lexicographically least feasible integer variables; bottom denotes infeasibility. Benchmark iteration mode need not print a solution tree.
Both input formats shall reject a problem that declares more than 65536 variables and parameters in total with no matrix row listing them. Any constraint row shall count for all declared variables and parameters; any context row shall count for the parameters only. This input limit shall apply to the command's parsers.
Where semantic checking is configured, a reference shall be checked against the interpreted problem and computed tree. Failed reference checks shall not publish a verified result or overwrite the requested result output. Malformed or incomplete input and supported failures shall produce diagnostics distinct from a completed mathematical result. Options and available checking capability shall be identified by the configured command interface.
Lexicographic parametric solutions are functions of the declared parameters, so format interpretation and guarded output must agree.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Executable ppl_pips: documented options and input/output selection; --help defines the available switches. Default input is PolyLib format; the PipLib selection uses its documented index convention. Ordinary output is the textual PIP solution tree. Optional --check selects a reference-based semantic check and its documented distinct result statuses, requiring the configured checking dependency.
Check both parsers, context and equality handling, concrete parameter instances, infeasible leaves and literal expected trees. Check malformed/truncated input, reference mismatch and output isolation, parser bounds, declarations at and above the limit with and without context rows, benchmark mode and checking-disabled diagnostics.
demos/ppl_pips/ppl_pips.cc; demos/ppl_pips/ppl_pips_check.cc; demos/ppl_pips/check_parser.sh; demos/ppl_pips/check_semantics.sh; demos/ppl_pips/check_pips_captures.sh; demos/ppl_pips/check_piplib_examples.sh.
-
Incoming link from: 4. Command-line input and outcome reporting1
1. Polyhedral representation conversion tool UID: PPL-LLR-000219 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT: When built with the PPL backend, the polyhedral conversion tool shall, on successful completion within its documented arithmetic and resource assumptions, convert an accepted constraint representation of a polyhedron to a generator representation, or an accepted generator representation to a constraint representation, denoting the same polyhedron.
RATIONALE: Representation conversion makes the library's polyhedral algorithms usable through a standalone program.
COMMENT: Verification covers the conversion tool's supported PPL-backend input interpretation and mathematically equivalent output representations. Independent reconstruction checks and parser/output inspection verify these contracts. The requirement applies only when the tool is selected and built with that backend; it does not prescribe platform-dependent timing or multithreaded output-path behavior. Failure and incomplete-computation reporting is governed by 🔗 4. Command-line input and outcome reporting.
VERIFICATION_CRITERIA: Accepted nonempty, empty and unbounded examples are converted in both directions; an independent reconstruction from each output denotes the input polyhedron; checks are restricted to formats and modes supported by the configured tool.
SOURCE: README.configure.md, Programs that Come with the Library; demos/ppl_lcdd/ppl_lcdd.cc, usage description and representation input/output; demos/ppl_lcdd/Makefile.am.
-
4. Command-line input and outcome reporting UID: PPL-LLR-000441 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001657 Native output pathname construction for polyhedral conversion (Specified by)
- PPL-SPEC-001705 MPS linear optimization command protocol (Specified by)
- PPL-SPEC-001706 Parametric integer solver command protocol (Specified by)
- PPL-SPEC-001734 Polyhedral conversion command protocol (Specified by)
STATEMENT: Each distributed numerical command-line tool shall define its accepted input formats and option interpretation, output conventions, and diagnostics for invalid input, input/output failure, arithmetic or resource failure, and supported interruption. Its observable output and termination conventions shall distinguish completed numerical results from failed or incomplete computations. A failed or incomplete computation shall not be presented as a completed numerical result.
RATIONALE: A mathematical success contract is insufficient for command-line clients that must distinguish valid numerical conclusions from failure to compute them.
COMMENT: Verification covers each tool's accepted input, options, diagnostics and observable completion/failure conventions. Command-line scenario checks and parser/reporting-path inspection verify these contracts. 🔗 1. Polyhedral representation conversion tool, 🔗 2. Linear optimization command-line solver and 🔗 3. Parametric integer optimization tool own the completed mathematical results. The tools need not share exit codes or diagnostic text; an existing zero-status timeout convention may remain valid only when its observable output identifies an incomplete computation.
VERIFICATION_CRITERIA: For each selected tool and supported backend or mode, review accepted formats and options and exercise completed numerical outcomes, malformed input, invalid options, unavailable files, output failures, supported numerical/resource failures and interruptions. Check diagnostics and termination conventions together rather than assuming a uniform exit-code policy. Distinguish a mathematically infeasible problem from invalid input, and an explicitly reported timeout from a completed conversion or optimization.
SOURCE: demos/ppl_lcdd/ppl_lcdd.cc: input, option and output handling, diagnostics and timeout marker; demos/ppl_lpsol/ppl_lpsol.c: MPS input and reported outcomes; demos/ppl_pips/ppl_pips.cc: input parsers, option processing and error reporting; README.configure.md: Programs that Come with the Library.
With the PPL backend, ppl_lcdd shall interpret its supported cdd-style H or V representation and, on successful conversion within configured arithmetic and resource limits, emit the opposite representation of the same polyhedron. Input shall recognize representation selection, pre-begin linearity indices, row/column counts (including the supported unknown-row-count marker), number type, coefficient rows and end. Integer and rational coefficients shall keep their exact values; real input denotes the rational value obtained from the parsed host floating-point value. Rational row normalization shall preserve the represented constraints or generators. Invalid or incomplete input and output failures shall be reported distinctly from completed conversion.
The advertised build-specific options shall select input/output paths, supported CPU/memory limits, optional timing/verbose diagnostics, version/help and optional reference checking. Serial output-file mode appends; threaded named-input mode uses the output directory and pathname rule of 🔗 1. Native output pathname construction for polyhedral conversion. Standard input/output defaults and build-specific checking restrictions shall be those printed by --help. CPU-time and address-space limit availability shall be determined independently. Requests for an unavailable limit shall fail with a diagnostic before reading input. Supported limits shall accept zero to leave the inherited limit unchanged, reject malformed or unrepresentable values, and keep any stricter inherited limit. CPU expiration shall report TIMEOUT on standard error with status 124 to identify incomplete conversion.
A valid conversion result depends on matrix interpretation and completed computation, while diagnostics must distinguish malformed input and interrupted work.
LANGUAGE is omitted because this contract specifies a command protocol rather than an implementation-language interface.
Executable ppl_lcdd with the PPL backend: --help defines supported options and serial/threaded filename arity. Input and output use the accepted cdd-style matrix representation; diagnostic/timing streams are separate from ordinary numerical output. Optional comparison backends retain their own supported formats, resource limits and arithmetic assumptions.
Convert empty, bounded and unbounded polyhedra in both directions and compare reconstructed mathematical sets. Exercise integer/rational/real rows, linearity, unknown row counts, malformed/truncated input, nonexistent files, output errors and supported resource interruption. Check that advertised limits allow the expected conversion on a small example and that unsupported limit requests report unavailability before opening a nonexistent input. Check named and stdin output paths and supported serial/reference and threaded execution modes.
demos/ppl_lcdd/ppl_lcdd.cc; demos/ppl_lcdd/check_named_output.sh; demos/ppl_lcdd/check_stdin_output.sh; demos/ppl_lcdd/check_examples.sh.