fix objective function value return
This commit is contained in:
@@ -109,7 +109,7 @@ def Vogel(
|
|||||||
D[y] = 0
|
D[y] = 0
|
||||||
remaining_cols[y] = 0
|
remaining_cols[y] = 0
|
||||||
x_0[x][y] = selected_value
|
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(
|
def Russell(
|
||||||
@@ -156,7 +156,7 @@ def Russell(
|
|||||||
it_count += 1
|
it_count += 1
|
||||||
if (it_count > 1000):
|
if (it_count > 1000):
|
||||||
return Result(State.UNAPPLICABLE)
|
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(
|
def print_problem_statement(
|
||||||
|
|||||||
Reference in New Issue
Block a user