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
10
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
26 std::vector<real_t> ref;
27};
28
29} // namespace cyqlone::qpalm::problems
30
32
33PlatooningProblem CYQLONE_EXAMPLE_PROBLEMS_EXPORT platooning(PlatooningParams p);
34
35} // namespace CYQLONE_NS(cyqlone::qpalm::problems)
#define CYQLONE_NS(ns)
Definition config.hpp:10
Data structure for optimal control problems.
Storage for a linear-quadratic OCP of the form.
Definition ocp.hpp:37