You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I determine if a valid solution was found? #78
@ufechner7 If result.x_best_feas and result.bbo_best_feas do not have a nothing value, it means that the solver has found a feasible solution (so, I suppose it is valid). Note that this solution may not satisfy the optimality conditions (the solver can stop after reaching a certain budget of evaluations), but it is the best solution found by the solver. Otherwise, the solver found an infeasible solution, contained in result.x_best_inf and result.bbo_best_inf which is the closest to feasibility.
Activity
salomonl commentedon May 30, 2025
@ufechner7 If
result.x_best_feasandresult.bbo_best_feasdo not have anothingvalue, it means that the solver has found a feasible solution (so, I suppose it is valid). Note that this solution may not satisfy the optimality conditions (the solver can stop after reaching a certain budget of evaluations), but it is the best solution found by the solver. Otherwise, the solver found an infeasible solution, contained inresult.x_best_infandresult.bbo_best_infwhich is the closest to feasibility.salomonl commentedon Oct 22, 2026
See
solvemethod documentation, that now returns a flag indicating if a valid solution was found.