X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fexample-lp;h=fe2256fc0c829864f1d5d2785e53c003f86e4a5b;hb=2686a542f487f384037ade7427038083f1f62657;hp=25b04539dfa3370b25e4846694bff87b3d35c2bf;hpb=67fdc5e87920a4e5c9a6397cb29217f81dc024bd;p=dead%2Fcensus-tools.git diff --git a/bin/example-lp b/bin/example-lp index 25b0453..fe2256f 100755 --- a/bin/example-lp +++ b/bin/example-lp @@ -17,7 +17,7 @@ import LinearProgramming lp = LinearProgramming.LinearProgram() -lp.objective_function_coefficients = [5, 100, 30, 10, 20, 300] +lp.objective_coefficients = [5, 100, 30, 10, 20, 300] lp.constraint_matrix = [ [1,1,1,0,0,0], [0,0,0,1,1,1], @@ -25,7 +25,7 @@ lp.constraint_matrix = [ [1,1,1,0,0,0], [0,1,0,0,1,0], [0,0,1,0,0,1] ] -lp.inequalities = ([LinearProgramming.LEQ] * 2) + ([LinearProgramming.EQ] * 3) +lp.inequalities = ([LinearProgramming.LE] * 2) + ([LinearProgramming.EQ] * 3) lp.rhs = [ 500, 600, 400, 300, 200 ]