Skip to content
GitLab
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
b53b6f37
Commit
b53b6f37
authored
Aug 09, 2019
by
Patric Schmitz
Browse files
IPOPTSolverLean: remove hack, read acceptable tolerance from ipopt
parent
3379e99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
NSolver/IPOPTSolverLean.cc
View file @
b53b6f37
...
@@ -388,7 +388,8 @@ solve
...
@@ -388,7 +388,8 @@ solve
int
cur_pass
=
impl_
->
enbl_all_lzy_cnstr_
?
1
:
0
;
int
cur_pass
=
impl_
->
enbl_all_lzy_cnstr_
?
1
:
0
;
const
int
max_passes
=
impl_
->
incr_lazy_cnstr_max_iter_nmbr_
;
const
int
max_passes
=
impl_
->
incr_lazy_cnstr_max_iter_nmbr_
;
double
acceptable_tolerance
=
0.01
;
// hack: read out from ipopt!!!
double
acceptable_tolerance
=
get_ipopt_option
<
double
>
(
"acceptable_tol"
);
// copy default constraints
// copy default constraints
std
::
vector
<
NConstraintInterface
*>
constraints
=
_constraints
;
std
::
vector
<
NConstraintInterface
*>
constraints
=
_constraints
;
std
::
vector
<
bool
>
lazy_added
(
_lazy_constraints
.
size
(),
false
);
std
::
vector
<
bool
>
lazy_added
(
_lazy_constraints
.
size
(),
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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