Skip to content
Snippets Groups Projects
Commit 2ca3a4ab authored by Jan Möbius's avatar Jan Möbius
Browse files

Check for available ma57 solver before using it. Set a better memory size for mumps.

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@107 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent e258812c
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,18 @@ IPOPTSolver() ...@@ -28,8 +28,18 @@ IPOPTSolver()
// Create an instance of the IpoptApplication // Create an instance of the IpoptApplication
app_ = IpoptApplicationFactory(); app_ = IpoptApplicationFactory();
// set default parameters // Switch to HSL if available in Comiso
#if COMISO_HSL_AVAILABLE
app_->Options()->SetStringValue("linear_solver", "ma57"); app_->Options()->SetStringValue("linear_solver", "ma57");
#endif
// Restrict memory to be able to run larger problems on windows
// with the default mumps solver
#ifdef WIN32
app_->Options()->SetIntegerValue("mumps_mem_percent", 5);
#endif
// set default parameters
app_->Options()->SetIntegerValue("max_iter", 100); app_->Options()->SetIntegerValue("max_iter", 100);
// app->Options()->SetStringValue("derivative_test", "second-order"); // app->Options()->SetStringValue("derivative_test", "second-order");
// app->Options()->SetIntegerValue("print_level", 0); // app->Options()->SetIntegerValue("print_level", 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment