]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Switch lp_solve.py to solve a minimization problem.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Apr 2010 19:22:46 +0000 (15:22 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 5 Apr 2010 19:22:46 +0000 (15:22 -0400)
lib/makefile

index 4115134d0db1f5dfcf88171dfcebeabdfc384c35..301f2a25634ef652fc94c8c845be7d8c5f8d3f3e 100644 (file)
@@ -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: