From: Michael Orlitzky Date: Mon, 5 Apr 2010 19:22:46 +0000 (-0400) Subject: Switch lp_solve.py to solve a minimization problem. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bb72622a6f659dfc728b73dde94db985a2d7b589;p=dead%2Fcensus-tools.git Switch lp_solve.py to solve a minimization problem. --- diff --git a/lib/makefile b/lib/makefile index 4115134..301f2a2 100644 --- a/lib/makefile +++ b/lib/makefile @@ -50,6 +50,8 @@ LFLAGS_PATCH = sed -i 's/^LFLAGS = -L -l$$/LFLAGS = -L/' sed -i 's~lpsolve55/bin/\(ux\|win\)32~../lp_solve~' setup.py; \ python setup.py build; \ mv build/lib.linux-*/* ../../../lp_solve/; +# Change the problem type from 'maximize' to 'minimize'. + sed -i 's/set_maxim/set_minim/' lp_solve/lp_solve.py lp_solve_lib_src: