]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Remove the inequality constants in favor of those defined by the lp_solve library.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Apr 2010 17:51:06 +0000 (13:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Apr 2010 17:51:06 +0000 (13:51 -0400)
src/LinearProgramming.py

index 1d72ad5e6522da0f75cac6cd4a54533d6cafa6f3..7f274093c73a874f0ceef437bf456aa1ac65c11f 100644 (file)
@@ -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):
     """