X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FLinearProgramming.py;fp=src%2FLinearProgramming.py;h=7f274093c73a874f0ceef437bf456aa1ac65c11f;hb=f593abe7e919c86544ea40a0e29b3425bcdae60f;hp=1d72ad5e6522da0f75cac6cd4a54533d6cafa6f3;hpb=67fdc5e87920a4e5c9a6397cb29217f81dc024bd;p=dead%2Fcensus-tools.git 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): """