Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polympc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Petr Listov
polympc
Commits
22fbf515
Commit
22fbf515
authored
3 years ago
by
Roland Schwan
Browse files
Options
Downloads
Patches
Plain Diff
add final control bounds to MPC wrapper
parent
3c9f383a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/control/mpc_wrapper_rewrite.hpp
+7
-0
7 additions, 0 deletions
src/control/mpc_wrapper_rewrite.hpp
with
7 additions
and
0 deletions
src/control/mpc_wrapper_rewrite.hpp
+
7
−
0
View file @
22fbf515
...
...
@@ -160,6 +160,13 @@ public:
m_solver
.
upper_bound_x
().
template
segment
<
varu_size
>(
varx_size
)
=
ub
.
replicate
(
num_nodes
,
1
);
}
inline
void
final_control_bounds
(
const
Eigen
::
Ref
<
const
control_t
>&
lb
,
const
Eigen
::
Ref
<
const
control_t
>&
ub
)
noexcept
{
m_solver
.
lower_bound_x
().
template
segment
<
nu
>(
varx_size
+
varu_size
-
nu
)
=
lb
;
m_solver
.
upper_bound_x
().
template
segment
<
nu
>(
varx_size
+
varu_size
-
nu
)
=
ub
;
}
// generic inequality constraints
inline
void
constraints_trajectory_bounds
(
const
Eigen
::
Ref
<
const
constraints_t
>&
lbg
,
const
Eigen
::
Ref
<
const
constraints_t
>&
ubg
)
noexcept
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment