Expand description
Reversible coordinate changes and the common result contract.
Adapters must establish native solution quality before supplying points, duals or global bounds.
Structs§
- Dual
Projection - One native row’s contribution to an original multiplier. Store
Nonein the native row map when no reversible multiplier transformation is known. - Objective
Transform - Maps a native objective or bound to the original model convention. A native solver that already includes the constant must use offset zero.
Functions§
- accumulate_
dual - Accumulate a known native multiplier with its adapter-supplied coordinate factor. Missing values must not call this helper with a fabricated zero.
- normalize_
result - Enforce the public result contract after the adapter has established native
evidence and restored coordinates. Does not infer feasibility from a stop
reason, or re-check feasibility using an unrelated common tolerance.
An explicit
FeasiblePointstatus caps the point’s quality even if native termination wasOptimal. Invalid incumbents cause the same downgrade for surviving pool points. Normalizing an already normalized result is safe. - project_
dense_ primal - Use when native columns are original variables in model order.
- project_
primal - Project a native column vector, excluding auxiliaries (
None). Every original variable must occur exactly once and have a finite value. - relative_
gap - Overflow-resistant symmetric relative gap in original objective units.