-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.m
29 lines (23 loc) · 1.18 KB
/
main.m
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
% Script to solve the Optimal Control Problem. Run this file.
% Formulate the problem and settings in the other two function files.
% -------------------------------------------------------------------------
% Primary Contributors:
% - Nakul Randad, Indian, Institute of Technology Bombay
% - Siddhartha Ganguly, Indian Institute of Technology Bombay
% - Rihan Aaron D'Silva, Indian Institute of Technology Bombay
% - Mukesh Raj S, Indian Institute of Technology Bombay
% Refer the article: S. Ganguly, N. Randad, D. Chatterjee, and R. Banavar
% Constrained trajectory synthesis via quasi-interpolation,
% IEEE Conference on Decision & Control, 2022, Cancun, Mexico
% -------------------------------------------------------------------------
clear all;
close all;
%% Set-up and solve problem
problem = RayleighProblemMixedConstraint; % Fetch the problem definition
opts = options(100, 2); % Get options and solver settings (N,D),
%where step size h=(tf-t0)/N
% Employ custom coded solveProblem file to accomodate Mixed state-control
% constraint
solution = solveRayleighProblemMixedConstraint(problem, opts);
%% Post-processing
postProcess(solution, problem, opts)