gtopt/lp_scaling.hpp file

LP-scaling subsystem of an LP matrix.

Groups the Ruiz / equilibration scaling state of a LinearInterface into a behaviour-free value aggregate, plus the zero-copy ScaledView helper that applies a per-element scale factor. Extracted from LinearInterface as step 4 (final) of decomposing that ~3170-line class (mirrors the MatrixStats / LpLabelStore precedents).

Behaviour is preserved verbatim — this is a pure data grouping:

  • The COW-shared scale vectors / cost-scale-type vectors and the variable-scale map are shared_ptr-wrapped and mutable so shallow clones share state via atomic incref and const paths can lazily detach-for-write. Every make_shared<> default is kept.
  • equilibration_method / obj_constant_raw are plain per-instance values (never shared_ptr, never mutable), value-copied on a clone — matching the pre-extraction member-by-member behaviour.

Namespaces

namespace gtopt

Classes

class gtopt::ScaledView::iterator
Iterator support for range-for loops.
class gtopt::ScaledView
struct gtopt::ScalingState