-
Notifications
You must be signed in to change notification settings - Fork 0
/
jacobian.h
29 lines (20 loc) · 863 Bytes
/
jacobian.h
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
/*Created by Nikilesh Ramesh on 09/11/2024 at 15:36
Motivating: To compute the jacobian of OCP problem*/
#ifndef __JACOBIAN__
#define __JACOBIAN__
#include "typeDefinitions.h"
#include "UserDefinedFunctions.h"
SparseMatrix jacobianF(StateVectors X, InputVectors U, TimeVector T, Time t0, Time tf, Perturbation e, bool constraints);
const Gradient finiteDiff_jacF(
const StateVectors pp_X, const InputVectors pp_U,
const StateVectors np_X, const InputVectors np_U,
const Time pp_delta_T, const Time np_delta_T,
const TimeVector pp_T, const TimeVector np_T, Perturbation e
);
const Gradient finiteDiff_jacG(
const StateVectors pp_X, const InputVectors pp_U,
const StateVectors np_X, const InputVectors np_U,
const Time pp_delta_T, const Time np_delta_T,
const TimeVector pp_T, const TimeVector np_T, Perturbation e
);
#endif