-
Notifications
You must be signed in to change notification settings - Fork 0
/
problem.hpp
48 lines (42 loc) · 1.06 KB
/
problem.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*Created by Nikilesh Ramesh on 6/12/2024 at 17:26
Motivation: Creating a Problem class that keeps track of the deciscion variables for all the jacobian/hessian compute
*/
#ifndef __PROBLEM__
#define __PROBLEM__
#include "typeDefinitions.h"
class Problem // TODO: Change types to Flat Matrix
{
private:
StateVectors _X;
InputVectors _U;
TimeVector _T;
Time _t0;
Time _tf;
Perturbation _e1;
Perturbation _e2;
bool _Constrained;
int _TotalConstraints;
public:
Problem(StateVectors X, InputVectors U, TimeVector T,
Time t0, Time tf, Perturbation e1, Perturbation e2,
bool Constrained, int TotalConstraints);
~Problem();
};
Problem::Problem(StateVectors X, InputVectors U, TimeVector T,
Time t0, Time tf, Perturbation e1, Perturbation e2,
bool Constrained, int TotalConstraints)
{
_X = X;
_U = U;
_T = T;
_t0 = t0;
_tf = tf;
_e1 = e1;
_e2 = e2;
_Constrained = Constrained;
_TotalConstraints = TotalConstraints;
}
Problem::~Problem()
{
}
#endif