cyqlone
develop
Fast, parallel and vectorized solver for linear systems with optimal control structure.
Loading...
Searching...
No Matches
platooning.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
cyqlone/config.hpp
>
4
#include <cyqlone/example-problems/export.h>
5
#include <
cyqlone/ocp.hpp
>
6
7
#include <vector>
8
9
namespace
cyqlone::qpalm::problems
{
10
11
struct
PlatooningParams
{
12
real_t
friction
= 0.1;
13
real_t
F_max
= 20;
14
real_t
v_max
= 1.6;
15
real_t
dist_min
= 5;
16
real_t
dist_init
= 2 *
dist_min
;
17
real_t
p_target
= 100;
18
index_t
N_horiz
= 512;
19
real_t
T_horiz
= 30;
20
real_t
scale_cost
= 1e-3;
21
std::vector<real_t>
masses
{100, 150, 130, 70, 180};
22
};
23
24
struct
PlatooningProblem
{
25
LinearOCPStorage
ocp
;
26
std::vector<real_t>
ref
;
27
};
28
29
}
// namespace cyqlone::qpalm::problems
30
31
namespace
CYQLONE_NS
(
cyqlone
::
qpalm::problems
) {
32
33
PlatooningProblem CYQLONE_EXAMPLE_PROBLEMS_EXPORT platooning(PlatooningParams p);
34
35
}
// namespace CYQLONE_NS(cyqlone::qpalm::problems)
config.hpp
CYQLONE_NS
#define CYQLONE_NS(ns)
Definition
config.hpp:10
cyqlone::qpalm::problems
Definition
csv.hpp:9
cyqlone::qpalm::problems::PlatooningParams::masses
std::vector< real_t > masses
Definition
platooning.hpp:21
cyqlone::qpalm::problems::PlatooningParams::T_horiz
real_t T_horiz
Definition
platooning.hpp:19
cyqlone::qpalm::problems::PlatooningParams::scale_cost
real_t scale_cost
Definition
platooning.hpp:20
cyqlone::qpalm::problems::PlatooningParams::v_max
real_t v_max
Definition
platooning.hpp:14
cyqlone::qpalm::problems::PlatooningParams::dist_init
real_t dist_init
Definition
platooning.hpp:16
cyqlone::qpalm::problems::PlatooningParams::F_max
real_t F_max
Definition
platooning.hpp:13
cyqlone::qpalm::problems::PlatooningProblem::ref
std::vector< real_t > ref
Definition
platooning.hpp:26
cyqlone::qpalm::problems::PlatooningParams::N_horiz
index_t N_horiz
Definition
platooning.hpp:18
cyqlone::qpalm::problems::PlatooningParams::dist_min
real_t dist_min
Definition
platooning.hpp:15
cyqlone::qpalm::problems::PlatooningParams::friction
real_t friction
Definition
platooning.hpp:12
cyqlone::qpalm::problems::PlatooningParams::p_target
real_t p_target
Definition
platooning.hpp:17
cyqlone::qpalm::problems::PlatooningProblem::ocp
LinearOCPStorage ocp
Definition
platooning.hpp:25
cyqlone::qpalm::problems::PlatooningParams
Definition
platooning.hpp:11
cyqlone::qpalm::problems::PlatooningProblem
Definition
platooning.hpp:24
cyqlone
Definition
barrier.hpp:25
ocp.hpp
Data structure for optimal control problems.
cyqlone::LinearOCPStorage
Storage for a linear-quadratic OCP of the form.
Definition
ocp.hpp:37
src
example-problems
include
cyqlone
qpalm
example-problems
platooning.hpp
Generated on
for cyqlone by
1.16.1