Skip to content

Commit

Permalink
[solvers] Change solver names to upstream's preferred case
Browse files Browse the repository at this point in the history
Clp prefers camel.
Ipopt prefers camel.
MOSEK prefers scream.
  • Loading branch information
jwnimmer-tri committed Jan 7, 2025
1 parent f8c7471 commit 87a145e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solvers/clp_solver_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ClpSolver::ClpSolver()
ClpSolver::~ClpSolver() = default;

SolverId ClpSolver::id() {
static const never_destroyed<SolverId> singleton{"CLP"};
static const never_destroyed<SolverId> singleton{"Clp"};
return singleton.access();
}

Expand Down
2 changes: 1 addition & 1 deletion solvers/ipopt_solver_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void IpoptSolver::SetDefaultLinearSolver(std::string linear_solver) {
}

SolverId IpoptSolver::id() {
static const never_destroyed<SolverId> singleton{"IPOPT"};
static const never_destroyed<SolverId> singleton{"Ipopt"};
return singleton.access();
}

Expand Down
2 changes: 1 addition & 1 deletion solvers/mosek_solver_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MosekSolver::MosekSolver()
MosekSolver::~MosekSolver() = default;

SolverId MosekSolver::id() {
static const never_destroyed<SolverId> singleton{"Mosek"};
static const never_destroyed<SolverId> singleton{"MOSEK"};
return singleton.access();
}

Expand Down

0 comments on commit 87a145e

Please sign in to comment.