Skip to content

Commit 16452fe

Browse files
pretty printing for lp
1 parent ef284cc commit 16452fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/math/lp/column_namer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class column_namer {
5353
if (val == -numeric_traits<T>::one())
5454
out << " - ";
5555
else if (val != numeric_traits<T>::one())
56-
out << val;
56+
out << val << "*";
5757

5858
out << get_variable_name(it.second);
5959
}

src/math/lp/lp_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ std::ostream& print_linear_combination_customized(const vector<std::pair<T, unsi
118118
}
119119
}
120120
if (val != 1) {
121-
out << T_to_string(val);
121+
out << T_to_string(val) << "*";
122122
}
123123
out << var_str(it.second);
124124
}

0 commit comments

Comments
 (0)