# HG changeset patch # User alpar # Date 1112683281 0 # Node ID 9bcc455da4f525baacd73f0caebef85e65004597 # Parent 3f90ae31200a830e997fc020f063a0f24574292f SolutionStatus -> SolveExitStatus SolutionType -> SolutionStatus diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_base.h --- a/src/work/athos/lp/lp_base.h Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_base.h Tue Apr 05 06:41:21 2005 +0000 @@ -105,7 +105,7 @@ public: ///\e - enum SolutionStatus { + enum SolveExitStatus { ///\e SOLVED = 0, ///\e @@ -113,7 +113,7 @@ }; ///\e - enum SolutionType { + enum SolutionStatus { ///Feasible solution has'n been found (but may exist). ///\todo NOTFOUND might be a better name. @@ -390,9 +390,9 @@ virtual void _setRowLowerBound(int i, Value value) = 0; virtual void _setRowUpperBound(int i, Value value) = 0; virtual void _setObjCoeff(int i, Value obj_coef) = 0; - virtual SolutionStatus _solve() = 0; + virtual SolveExitStatus _solve() = 0; virtual Value _getPrimal(int i) = 0; - virtual SolutionType _getPrimalType() = 0; + virtual SolutionStatus _getPrimalType() = 0; void clearObj() {} @@ -614,7 +614,7 @@ ///@{ ///\e - SolutionStatus solve() { return _solve(); } + SolveExitStatus solve() { return _solve(); } ///@} @@ -623,7 +623,7 @@ ///@{ ///\e - SolutionType primalType() { + SolutionStatus primalType() { return _getPrimalType(); } diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_cplex.cc --- a/src/work/athos/lp/lp_cplex.cc Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_cplex.cc Tue Apr 05 06:41:21 2005 +0000 @@ -91,7 +91,7 @@ { } - LpCplex::SolutionType LpCplex::_solve() + LpCplex::SolutionStatus LpCplex::_solve() { return OPTIMAL; } diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_cplex.h --- a/src/work/athos/lp/lp_cplex.h Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_cplex.h Tue Apr 05 06:41:21 2005 +0000 @@ -108,7 +108,7 @@ ///\bug Unimplemented /// - virtual SolutionType _solve(); + virtual SolutionStatus _solve(); ///\e ///\bug Unimplemented diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_glpk.cc --- a/src/work/athos/lp/lp_glpk.cc Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_glpk.cc Tue Apr 05 06:41:21 2005 +0000 @@ -238,7 +238,7 @@ } - LpGlpk::SolutionStatus LpGlpk::_solve() + LpGlpk::SolveExitStatus LpGlpk::_solve() { int i= lpx_simplex(lp); switch (i) { @@ -256,7 +256,7 @@ } - LpGlpk::SolutionType LpGlpk::_getPrimalType() + LpGlpk::SolutionStatus LpGlpk::_getPrimalType() { int stat= lpx_get_status(lp); switch (stat) { diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_glpk.h --- a/src/work/athos/lp/lp_glpk.h Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_glpk.h Tue Apr 05 06:41:21 2005 +0000 @@ -70,7 +70,7 @@ ///\bug Unimplemented /// - virtual SolutionStatus _solve(); + virtual SolveExitStatus _solve(); ///\e ///\bug Unimplemented @@ -80,7 +80,7 @@ ///\bug Unimplemented /// - virtual SolutionType _getPrimalType(); + virtual SolutionStatus _getPrimalType(); }; } //END OF NAMESPACE LEMON diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_solver_skeleton.cc --- a/src/work/athos/lp/lp_solver_skeleton.cc Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_solver_skeleton.cc Tue Apr 05 06:41:21 2005 +0000 @@ -65,7 +65,7 @@ { } - LpSolverSkeleton::SolutionStatus LpSolverSkeleton::_solve() + LpSolverSkeleton::SolveExitStatus LpSolverSkeleton::_solve() { return SOLVED; } @@ -75,7 +75,7 @@ return 0; } - LpSolverSkeleton::SolutionType LpSolverSkeleton::_getPrimalType() + LpSolverSkeleton::SolutionStatus LpSolverSkeleton::_getPrimalType() { return OPTIMAL; } diff -r 3f90ae31200a -r 9bcc455da4f5 src/work/athos/lp/lp_solver_skeleton.h --- a/src/work/athos/lp/lp_solver_skeleton.h Tue Apr 05 06:19:24 2005 +0000 +++ b/src/work/athos/lp/lp_solver_skeleton.h Tue Apr 05 06:41:21 2005 +0000 @@ -82,7 +82,7 @@ ///\bug Wrong interface /// - virtual SolutionStatus _solve(); + virtual SolveExitStatus _solve(); ///\e @@ -93,7 +93,7 @@ ///\bug Wrong interface /// - virtual SolutionType _getPrimalType(); + virtual SolutionStatus _getPrimalType(); public: LpSolverSkeleton() : LpSolverBase(), col_num(0), row_num(0) {}