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
5fd3c20c
Commit
5fd3c20c
authored
Oct 14, 2019
by
Robin Brost
Browse files
small fixes
parent
75754761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/small_exact_constraint_satifaction_example/main.cc
View file @
5fd3c20c
...
...
@@ -84,7 +84,7 @@ public:
}
// advanced properties
virtual
bool
constant_hessian
()
const
{
return
tru
e
;
}
virtual
bool
constant_hessian
()
const
{
return
fals
e
;
}
std
::
vector
<
double
>
solution
;
};
...
...
@@ -105,7 +105,7 @@ int main(void)
b
.
resize
(
n_constraints
);
b
.
setZero
();
// first constraint: first variable equals t
wo
times second
// first constraint: first variable equals t
hree
times second
A
.
coeffRef
(
0
,
0
)
=
1
;
A
.
coeffRef
(
0
,
1
)
=
-
3
;
b
.
coeffRef
(
0
)
=
0
;
...
...
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