trajopt icon indicating copy to clipboard operation
trajopt copied to clipboard

Add to_string to AffExpr and QuadExpr

Open mpowelson opened this issue 6 years ago • 1 comments

This would be useful for debugging. There is currently code for AffExpr in modelling_utils

mpowelson avatar Dec 06 '18 14:12 mpowelson

There is also operator<<(std::ostream& o, const AffExpr& e) and operator<<(std::ostream& o, const QuadExpr& e) - these could be refactored and split between an operator<< and a str or to_string method - the function you mentioned looks like code duplication with respect to operator<<(std::ostream& o, const AffExpr& e)?

arocchi avatar Dec 06 '18 18:12 arocchi