fix objective function value return

This commit is contained in:
Ilya Grigorev
2024-11-09 22:07:03 +03:00
parent 06638c782e
commit 9419fdefd7
+2 -2
View File
@@ -109,7 +109,7 @@ def Vogel(
D[y] = 0
remaining_cols[y] = 0
x_0[x][y] = selected_value
return Result(State.SOLVED, C * x_0, x_0)
return Result(State.SOLVED, np.sum(C * x_0), x_0)
def Russell(
@@ -156,7 +156,7 @@ def Russell(
it_count += 1
if (it_count > 1000):
return Result(State.UNAPPLICABLE)
return Result(State.SOLVED, C * x_0, x_0)
return Result(State.SOLVED, np.sum(C * x_0), x_0)
def print_problem_statement(