From: Michael Orlitzky Date: Mon, 26 Apr 2010 17:51:06 +0000 (-0400) Subject: Remove the inequality constants in favor of those defined by the lp_solve library. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=commitdiff_plain;h=f593abe7e919c86544ea40a0e29b3425bcdae60f Remove the inequality constants in favor of those defined by the lp_solve library. --- 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): """