Skip to content

Commit

Permalink
adjust printing
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
  • Loading branch information
levnach committed Mar 1, 2025
1 parent 7cfecaa commit 3224c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/lp/lp_core_solver_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class lp_core_solver_base {
return out;
}

std::ostream& print_column_info(unsigned j, std::ostream & out) const {
std::ostream& print_column_info(unsigned j, std::ostream & out, const std::string& var_prefix = "x") const {
if (j >= m_lower_bounds.size()) {
out << "[" << j << "] is not present\n";
return out;
Expand All @@ -445,7 +445,7 @@ class lp_core_solver_base {
std::stringstream strm;
strm << m_x[j];
std::string j_val = strm.str();
out << "[" << j << "] " << std::setw(6) << " := " << j_val;
out << var_prefix << j << " = " << std::setw(6) << j_val;
if (m_basis_heading[j] >= 0)
out << " base ";
else
Expand Down

0 comments on commit 3224c19

Please # to comment.