X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=blobdiff_plain;f=src%2FLinearProgramming.py;fp=src%2FLinearProgramming.py;h=4211058df56d904f2d5bae46c22b8e58848b0f35;hp=2e8477d609fac8869cb41e23e14fcc89c2d7a1c9;hb=b49d0e70000050fa22fc74e8cf94f33cb4b6238d;hpb=3235d38d8e7975724fe06b4a68b1604559eedee2 diff --git a/src/LinearProgramming.py b/src/LinearProgramming.py index 2e8477d..4211058 100644 --- a/src/LinearProgramming.py +++ b/src/LinearProgramming.py @@ -382,6 +382,15 @@ class SimplexIteration(object): self._solution_vector = array(value) + @property + def variables(self): + vars = [] + for idx in range(1, len(self.solution_vector)+1): + vars.append("x" + str(idx)) + + return vars + + @property def basic_variables(self): # The current set of basic variables. Constructed from the