Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CoMISo
CoMISo
Commits
dbcf7f6a
Commit
dbcf7f6a
authored
Oct 15, 2020
by
Max Lyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace set_verbosity with setting the global output_level
parent
87e1d0d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Examples/small_exact_constraint_satifaction_example/main.cc
Examples/small_exact_constraint_satifaction_example/main.cc
+7
-2
No files found.
Examples/small_exact_constraint_satifaction_example/main.cc
View file @
dbcf7f6a
...
...
@@ -30,6 +30,9 @@
#include <vector>
#include <CoMISo/Utils/ExactConstraintSatisfaction.hh>
#include <Base/Debug/DebConfig.hh>
//------------------------------------------------------------------------------------------------------
class
SmallNProblem
:
public
COMISO
::
NProblemInterface
...
...
@@ -120,10 +123,12 @@ int main(void)
std
::
cout
<<
"---------- 3) Solve with Newton Solver..."
<<
std
::
endl
;
COMISO
::
NewtonSolver
nsolver
;
nsolver
.
set_verbosity
(
15
);
Eigen
::
SparseMatrix
<
double
>
Ad
=
A
.
cast
<
double
>
();
Eigen
::
VectorXd
bd
=
b
.
cast
<
double
>
();
nsolver
.
solve
(
&
problem
,
Ad
,
bd
);
{
Debug
::
ScopedOutputLevel
output_lvl
(
0
);
// disable output for solve method
nsolver
.
solve
(
&
problem
,
Ad
,
bd
);
}
std
::
cout
<<
"---------- 4) Print solution..."
<<
std
::
endl
;
std
::
cout
<<
std
::
setprecision
(
100
);
...
...
Write
Preview
Markdown
is supported
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