C MIP
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
|
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. |
C solver objects require independent native lifetimes. |
|
|
|
|
|
Check each constructor, real/integer feasibility distinctions, source mutation, owned copy histories and construction failure cleanup. |
interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc. |
|
|
Public header: <ppl_c.h>. int ppl_new_MIP_Problem_from_space_dimension(ppl_MIP_Problem_t *pmip, ppl_dimension_type d); int ppl_new_MIP_Problem(ppl_MIP_Problem_t *pmip, ppl_dimension_type d, ppl_const_Constraint_System_t cs, ppl_const_Linear_Expression_t le, int m); int ppl_new_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t *pmip, ppl_const_MIP_Problem_t mip); int ppl_assign_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t dst, ppl_const_MIP_Problem_t src); int ppl_delete_MIP_Problem(ppl_const_MIP_Problem_t mip); |
||
|
SW_SPEC
|
2 |
|
|
|
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. |
Canonical admitted descriptors must remain distinct from the transformed simplex representation. Integer-supported strict rows use the closed storage described by 🔗 1. Integer-supported strict MIP admission. |
|
|
|
|
|
Compare exact descriptors and index lists after additions, copy and solving; exercise first/last/rejected indices and valid borrowed inspection. |
interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc. |
|
|
Public header: <ppl_c.h>. int ppl_MIP_Problem_space_dimension(ppl_const_MIP_Problem_t mip, ppl_dimension_type *m); int ppl_MIP_Problem_number_of_integer_space_dimensions( ppl_const_MIP_Problem_t mip, ppl_dimension_type *m); int ppl_MIP_Problem_integer_space_dimensions(ppl_const_MIP_Problem_t mip, ppl_dimension_type ds[]); int ppl_MIP_Problem_number_of_constraints(ppl_const_MIP_Problem_t mip, ppl_dimension_type *m); int ppl_MIP_Problem_constraint_at_index(ppl_const_MIP_Problem_t mip, ppl_dimension_type i, ppl_const_Constraint_t *pc); int ppl_MIP_Problem_objective_function(ppl_const_MIP_Problem_t mip, ppl_const_Linear_Expression_t *ple); int ppl_MIP_Problem_optimization_mode(ppl_const_MIP_Problem_t mip); |
||
|
SW_SPEC
|
3 |
|
|
Parents:
|
|
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. |
Incremental C solving must agree with rebuilding the same native model. |
|
|
|
|
|
Compare independent fresh models after each update, including new integer coordinates, free dimensions, contradictory cuts and objective reversal. |
interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc. |
|
|
Public header: <ppl_c.h>. int ppl_MIP_Problem_clear(ppl_MIP_Problem_t mip); int ppl_MIP_Problem_add_space_dimensions_and_embed(ppl_MIP_Problem_t mip, ppl_dimension_type d); int ppl_MIP_Problem_add_to_integer_space_dimensions(ppl_MIP_Problem_t mip, ppl_dimension_type ds[], size_t n); int ppl_MIP_Problem_add_constraint(ppl_MIP_Problem_t mip, ppl_const_Constraint_t c); int ppl_MIP_Problem_add_constraints(ppl_MIP_Problem_t mip, ppl_const_Constraint_System_t cs); int ppl_MIP_Problem_set_objective_function(ppl_MIP_Problem_t mip, ppl_const_Linear_Expression_t le); int ppl_MIP_Problem_set_optimization_mode(ppl_MIP_Problem_t mip, int mode); |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
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. |
A borrowed witness and a status have distinct ownership and mathematical roles. |
|
|
|
|
|
Check all three solve outcomes, exact rational objectives, mixed integrality, witness satisfaction, failure outputs and repeated/incremental solving. |
interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc. |
|
|
Public header: <ppl_c.h>. int ppl_is_mixed_integer_satisfiable(ppl_dimension_type dimension, ppl_const_Constraint_System_t cs, const ppl_dimension_type integers[], size_t n); int ppl_MIP_Problem_is_satisfiable(ppl_const_MIP_Problem_t mip); int ppl_MIP_Problem_solve(ppl_const_MIP_Problem_t mip); int ppl_MIP_Problem_evaluate_objective_function(ppl_const_MIP_Problem_t mip, ppl_const_Generator_t g, ppl_Coefficient_t num, ppl_Coefficient_t den); int ppl_MIP_Problem_feasible_point(ppl_const_MIP_Problem_t mip, ppl_const_Generator_t *pg); int ppl_MIP_Problem_optimizing_point(ppl_const_MIP_Problem_t mip, ppl_const_Generator_t *pg); int ppl_MIP_Problem_optimal_value(ppl_const_MIP_Problem_t mip, ppl_Coefficient_t num, ppl_Coefficient_t den); |
|
|
SW_SPEC
|
5 |
|
|
|
Control functions shall use the published native pricing names/values and return or apply the corresponding supported strategy. Validity shall return the native invariant result. Memory queries shall assign native total/external estimates to the caller's size_t outputs. Pricing shall affect the search strategy without changing the exact successful mathematical result. The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply. |
Heuristic controls and storage estimates must not weaken numerical guarantees. |
|
|
|
|
|
Exercise supported pricing values against independently known optima and inspect validity and memory across copy, pending and solved states. |
interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc. |
|
|
Public header: <ppl_c.h>. int ppl_MIP_Problem_OK(ppl_const_MIP_Problem_t mip); int ppl_MIP_Problem_get_control_parameter(ppl_const_MIP_Problem_t mip, int name); int ppl_MIP_Problem_set_control_parameter(ppl_MIP_Problem_t mip, int value); int ppl_MIP_Problem_total_memory_in_bytes(ppl_const_MIP_Problem_t mip, size_t *sz); int ppl_MIP_Problem_external_memory_in_bytes(ppl_const_MIP_Problem_t mip, size_t *sz); |