RobustSolveGuard class
#include <gtopt/solver_backend.hpp>
RAII helper that engages the solver's robust-solve mode for the lifetime of the guard. Construction calls SolverBackend:: engage_robust_solve(); destruction calls disengage_robust_solve(). Non-copyable, non-movable so the engage/disengage pair always matches the surrounding scope.
Constructors, destructors, conversion operators
- RobustSolveGuard(const RobustSolveGuard&) deleted
- RobustSolveGuard(RobustSolveGuard&&) deleted
- RobustSolveGuard(SolverBackend& backend) explicit
- ~RobustSolveGuard()
Public functions
- void escalate()
- auto operator=(const RobustSolveGuard&) -> RobustSolveGuard& deleted
- auto operator=(RobustSolveGuard&&) -> RobustSolveGuard& deleted
Function documentation
void gtopt:: RobustSolveGuard:: escalate()
Layer another × 10 tolerance loosening on top of the current robust-mode state. Equivalent to calling SolverBackend::engage_robust_solve() once more — the saved state captured by the first engage is preserved so disengage still restores baseline parameters when the guard expires.