Skip to content

Commit

Permalink
Remove unnecessary assert that could randomly fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuet authored and g-poveda committed May 2, 2024
1 parent f34e29b commit 0832758
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/rcpsp/solver/test_rcpsp_lp_lns.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ def test_lns_mm():
skip_first_iteration=False,
)
solution, fit = result_store.get_best_solution_fit()
solution_rebuilt = RCPSPSolution(
problem=rcpsp_problem,
rcpsp_permutation=solution.rcpsp_permutation,
rcpsp_modes=solution.rcpsp_modes,
)
fit_2 = rcpsp_problem.evaluate(solution_rebuilt)
assert rcpsp_problem.evaluate(solution) == fit_2
assert rcpsp_problem.satisfy(solution)
plot_resource_individual_gantt(rcpsp_problem, solution)
plot_ressource_view(rcpsp_problem, solution)
Expand Down

0 comments on commit 0832758

Please sign in to comment.