# HG changeset patch # User deba # Date 1195062788 0 # Node ID 26983135fd6d2842904bc7b2a486ab8ae57bd5b7 # Parent 371cf309fc3c57f51c4bb658888237d1d0116d0f Query the result value of an expression diff -r 371cf309fc3c -r 26983135fd6d lemon/lp_base.h --- a/lemon/lp_base.h Wed Nov 14 17:44:42 2007 +0000 +++ b/lemon/lp_base.h Wed Nov 14 17:53:08 2007 +0000 @@ -1369,9 +1369,27 @@ ///\e Value primal(Col c) const { return _getPrimal(_lpId(c)); } + ///\e + Value primal(const Expr& e) const { + double res = e.constComp(); + for (std::map