We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if __name__ == "__main__": initial_solution = actions_to_np(get_solution(f"merged/{SEED}.json")) algorithm = PatternSearch(x0=initial_solution) np.random.seed(2281) demand = get_demand() problem = MyProblem(demand) termination = get_termination("time", 1) res: None | Any = minimize(problem, algorithm, termination, verbose=True) # type: ignore[reportUnknownVariableType] if res is None or res.X is None: print("No solution found") exit() best_solution = problem.decode_actions(res.X) best_score = Evaluator( best_solution, demand, SERVER_MAP, DATACENTER_MAP, SELLING_PRICES_MAP ).get_score() print(f"Best score: {best_score}")
This doesn't terminate. Swapping the value to 0.x terminates instantly.
The text was updated successfully, but these errors were encountered:
Does providing the full string solve this issue?
termination = get_termination("time", "00:00:03")
Sorry, something went wrong.
blankjul
No branches or pull requests
This doesn't terminate. Swapping the value to 0.x terminates instantly.
The text was updated successfully, but these errors were encountered: