gtopt::Basis struct

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

col_status.size() is the structural column count and row_status.size() the row count of the LP it was captured from. Empty (empty()) means "no basis" — used by callers as the cold-start sentinel on the first iteration.

Public functions

void clear() noexcept
auto empty() const -> bool noexcept
auto num_cols() const -> std::size_t noexcept
auto num_rows() const -> std::size_t noexcept

Public variables

std::vector<BasisStatus> col_status
length == num structural cols
std::vector<BasisStatus> row_status
length == num rows