gtopt/basis.hpp file

Solver-agnostic simplex basis (warm-start) primitive.

A Basis is an index vector, not the constraint matrix: one status tag per structural column and one per row (logical/slack). Its size is O(num_cols + num_rows), carrying no matrix data and no solution values (~(n+m) bytes, a few hundred KB on a 45k-col GTEP stage LP).

It exists to warm-start a dual (or primal) simplex re-solve of a closely related LP. Bound-only deltas (different inflow / incoming-state bounds) leave reduced costs untouched, and appended rows (SDDP cuts) extend a basis with their slack basic — both preserve dual feasibility, so the captured basis is an exact dual-simplex seed for the neighbouring LP.

Namespaces

namespace gtopt

Classes

struct gtopt::Basis
A captured simplex basis: one BasisStatus per column and row.