From f593abe7e919c86544ea40a0e29b3425bcdae60f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 26 Apr 2010 13:51:06 -0400 Subject: [PATCH] Remove the inequality constants in favor of those defined by the lp_solve library. --- src/LinearProgramming.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/LinearProgramming.py b/src/LinearProgramming.py index 1d72ad5..7f27409 100644 --- a/src/LinearProgramming.py +++ b/src/LinearProgramming.py @@ -15,13 +15,8 @@ site.addsitedir(os.path.dirname(os.path.abspath(sys.argv[0])) + LP_SOLVE_PATH) from lp_solve import * - -# Constants denoting the three different types of (in)equalities. -# These are defined by lp_solve. -LEQ = -1 # Less than or equal to. -EQ = 0 # Equal to -GEQ = 1 # Greater than or Equal to. - +MINIMUM = 0 +MAXIMUM = 1 class LinearProgram(object): """ -- 2.44.2