Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
70801e94
Commit
70801e94
authored
Oct 13, 2016
by
Max Lyon
Browse files
Merge from Autodesk to VCI
parents
2a21d58a
02426c64
Pipeline
#3043
failed with stage
in 5 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
NSolver/IPOPTSolverLean.cc
View file @
70801e94
...
...
@@ -20,6 +20,7 @@
#include
"BoundConstraint.hh"
#include
"CoMISo/Utils/CoMISoError.hh"
#include
<Base/Debug/DebConfig.hh>
#include
<Base/Debug/DebTime.hh>
#include
<gmm/gmm.h>
...
...
@@ -50,13 +51,20 @@ IPOPTSolverLean::IPOPTSolverLean()
:
impl_
(
new
Impl
)
{
// Switch to HSL if available
in Comiso
// Switch to HSL if available
#if COMISO_HSL_AVAILABLE
impl_
->
app_
->
Options
()
->
SetStringValue
(
"linear_solver"
,
"ma57"
);
#else
impl_
->
app_
->
Options
()
->
SetStringValue
(
"linear_solver"
,
"mumps"
);
#endif
#ifdef DEB_ON
if
(
!
Debug
::
Config
::
query
().
console
())
#endif
{
// Block any output on cout and cerr from Ipopt.
impl_
->
app_
->
Options
()
->
SetStringValue
(
"suppress_all_output"
,
"yes"
);
}
#ifdef WIN32
// Restrict memory to be able to run larger problems on windows
// with the default mumps solver
...
...
@@ -322,7 +330,7 @@ void IPOPTSolverLean::solve(
++
cur_pass
;
DEB_warning
(
2
,
"*************** could not find feasible point after "
<<
_max_passes
-
1
<<
" -> solving with all lazy constraints...
\n
"
);
<<
_max_passes
-
1
<<
" -> solving with all lazy constraints..."
);
for
(
unsigned
int
i
=
0
;
i
<
_lazy_constraints
.
size
();
++
i
)
if
(
!
lazy_added
[
i
])
constraints
.
push_back
(
_lazy_constraints
[
i
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment