Skip to content

Commit

Permalink
Set primal and dual tolerances in DAQP
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron authored and Stéphane Caron committed May 5, 2023
1 parent 7d7c262 commit 2fec88d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qpsolvers_benchmark/solver_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def set_eps_abs(self, eps_abs: float) -> None:
"""
self.__settings["clarabel"]["tol_feas"] = eps_abs
self.__settings["cvxopt"]["feastol"] = eps_abs
self.__settings["daqp"]["dual_tol"] = eps_abs
self.__settings["daqp"]["primal_tol"] = eps_abs
self.__settings["ecos"]["feastol"] = eps_abs
self.__settings["gurobi"]["FeasibilityTol"] = eps_abs # primal
self.__settings["gurobi"]["OptimalityTol"] = eps_abs # dual
Expand Down

0 comments on commit 2fec88d

Please sign in to comment.