![]() |
DuQuad
v1.0
Quadratic Programming Optimizations
|
#include "head.h"#include "gdm.h"#include "fgm.h"#include "dgm.h"#include "dfgm.h"#include "alm.h"#include "falm.h"#include "print.h"Go to the source code of this file.
Macros | |
| #define | H_IN prhs[0] |
| #define | C_IN prhs[1] |
| #define | A_IN prhs[2] |
| #define | B_IN prhs[3] |
| #define | LB_HAT_IN prhs[4] |
| #define | UB_HAT_IN prhs[5] |
| #define | LB_IN prhs[6] |
| #define | UB_IN prhs[7] |
| #define | Z0_IN prhs[8] |
| #define | OPT_IN prhs[9] |
| #define | INFO_IN prhs[10] |
| #define | H_HAT_IN prhs[11] |
| #define | A2_IN prhs[12] |
| #define | RHO_AT_B_IN prhs[13] |
| #define | ZOPT_OUT plhs[0] |
| #define | FOPT_OUT plhs[1] |
| #define | EXITFLAG_OUT plhs[2] |
| #define | OUTPUT_STRUCT_OUT plhs[3] |
| #define | LAMBDA1_OUT plhs[4] |
| #define | LAMBDA2_OUT plhs[5] |
| #define | NUM_FIELDS 11 |
| #define | NAME_LENGT 30 |
| #define | ITERATION 0 |
| #define | ITERATION_INNER_TOT 1 |
| #define | TIME 2 |
| #define | TIME_TOT_INNER 3 |
| #define | FLAG_LAST_SATISFIED 4 |
| #define | NITER_FEASIBLE_DS 5 |
| #define | NITER_FEASIBLE_PF 6 |
| #define | EXITFLAG_INNER 7 |
| #define | NUM_EXCEEDED_MAX_NITER_INNER 8 |
| #define | DS_VECTOR 9 |
| #define | PF_VECTOR 10 |
Functions | |
| void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
Main file which takes input from matlab and construct data in c-code format. This mainfile is called from the matlab function duquad.m. After converting the input, it runs the spesified algorithm, i.e one of the following: DGM, DFGM, ALM or FALM. When getting the result from the algorithm, the data is converted back to matlab format.
Definition in file main.c.
| #define DS_VECTOR 9 |
| #define EXITFLAG_INNER 7 |
| #define FLAG_LAST_SATISFIED 4 |
| #define ITERATION 0 |
| #define ITERATION_INNER_TOT 1 |
| #define NAME_LENGT 30 |
| #define NITER_FEASIBLE_DS 5 |
| #define NITER_FEASIBLE_PF 6 |
| #define NUM_EXCEEDED_MAX_NITER_INNER 8 |
| #define NUM_FIELDS 11 |
| #define PF_VECTOR 10 |
| #define TIME 2 |
| #define TIME_TOT_INNER 3 |