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: 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent e258812c
......@@ -28,8 +28,18 @@ IPOPTSolver()
// Create an instance of the IpoptApplication
app_ = IpoptApplicationFactory();
// Switch to HSL if available in Comiso
app_->Options()->SetStringValue("linear_solver", "ma57");
// 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);
// set default parameters
app_->Options()->SetStringValue("linear_solver", "ma57");
app_->Options()->SetIntegerValue("max_iter", 100);
// app->Options()->SetStringValue("derivative_test", "second-order");
// app->Options()->SetIntegerValue("print_level", 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment