This folder code
contains source code of the QP Solver which uses the interior point method to solve a QCQP (Quadratic Constrains Quadratic Programing) problem.
The Simulation version is MATLAB R2022A, we also provide the lower version of MATLAB R2015A.
Inside this folder, the code and its meaning is following:
-
Alpha.m
: get termalpha
andindex
-
kkt.m
: calculate the kkt condition -
MyQP.m
: the QP Solver applied to solve problem -
test_init.m
: the initialize code (provide data) of simulationtest_opt_solver_2022
-
test_plot.m
: plot the solve result -
test_opt_solver_2022.slx
: the test simulation file -
opt_solver_2022.slx
: the simulink file used to generate library, used in our work, DO NOT NEED TO USE -
scope_PID_data.mat
: the real data get from experiments, used to validate QP Solver -
test_opt.m
: the code used to invoketest_opt_solver_2022.slx
and simulate data, THE ONL FILE NEED TO USE FOR TEST- Note that there may be warning about
TwinCAT.tlc
, which is the tlc file need to generate library in our project, can be ignored
- Note that there may be warning about
If need to test file, you just need to invoke test_opt.m
, and if the version is too high, you can choose to use the lower version MATLAB R2015A inside folder simulink_r2015a
, and replace the call inside test_opt.m