-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from sandialabs/dev-weh
Merging preliminary HIGHS integration
- Loading branch information
Showing
24 changed files
with
954 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#include "coek/solvers/solver_repn.hpp" | ||
|
||
namespace coek { | ||
|
||
SolverRepn* create_coektest_solver(); | ||
NLPSolverRepn* create_ipopt_solver(); | ||
#ifdef WITH_GUROBI | ||
SolverRepn* create_gurobi_solver(); | ||
#endif | ||
#ifdef WITH_HIGHS | ||
SolverRepn* create_highs_solver(); | ||
#endif | ||
|
||
SolverRepn* create_solver(std::string& name, OptionCache& options) | ||
{ | ||
if (name == "test") | ||
return create_coektest_solver(); | ||
|
||
#ifdef WITH_GUROBI | ||
if (name == "gurobi") { | ||
auto tmp = create_gurobi_solver(); | ||
tmp->set_options(options); | ||
return tmp; | ||
} | ||
#endif | ||
|
||
#ifdef WITH_HIGHS | ||
if (name == "highs") { | ||
auto tmp = create_highs_solver(); | ||
tmp->set_options(options); | ||
return tmp; | ||
} | ||
#endif | ||
|
||
return 0; | ||
} | ||
|
||
NLPSolverRepn* create_nlpsolver(std::string& name, OptionCache& options) | ||
{ | ||
if (name == "ipopt") { | ||
auto tmp = create_ipopt_solver(); | ||
tmp->set_options(options); | ||
return tmp; | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
} // namespace coek |
Oops, something went wrong.