Skip to content

Commit

Permalink
Implement ipopt option class to choose then programmatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelrojasmiliani committed Aug 26, 2024
1 parent 3be4916 commit d0fc83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/opstop/ipopt_problem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class IpoptSolverOptions {
{"derivative_test", "none"},
{"hessian_approximation", "limited-memory"},
{"jac_c_constant", "no"},
{"grad_f_constant", "yes"},
{"print_timing_statistics", "yes"},
{"dependency_detector", "mumps"},
{"dependency_detection_with_rhs", "no"}};

std::vector<std::pair<std::string, int>> int_options_ = {{"print_level", 5}};

std::vector<std::pair<std::string, int>> double_options_ = {{"tol", 1.0e-3}};
std::vector<std::pair<std::string, double>> double_options_ = {
{"tol", 1.0e-3}};

public:
static IpoptSolverOptions &instance();
Expand Down

0 comments on commit d0fc83a

Please sign in to comment.