Parma Polyhedra Library requirements
Low-Level Requirements: Command-Line Tools

Low-Level Requirements: Command-Line Tools

PPL-LLR-000219
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.

PPL-LLR-000220
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.

PPL-LLR-000221
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):
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.