DuQuad  v1.0
Quadratic Programming Optimizations
 All Data Structures Files Functions Variables Typedefs Macros
main.c File Reference
#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[])
 

Detailed Description

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.

Macro Definition Documentation

#define A2_IN   prhs[12]

Definition at line 33 of file main.c.

#define A_IN   prhs[2]

Definition at line 21 of file main.c.

#define B_IN   prhs[3]

Definition at line 22 of file main.c.

#define C_IN   prhs[1]

Definition at line 20 of file main.c.

#define DS_VECTOR   9
#define EXITFLAG_INNER   7
#define EXITFLAG_OUT   plhs[2]

Definition at line 39 of file main.c.

#define FLAG_LAST_SATISFIED   4
#define FOPT_OUT   plhs[1]

Definition at line 38 of file main.c.

#define H_HAT_IN   prhs[11]

Definition at line 32 of file main.c.

#define H_IN   prhs[0]

Definition at line 19 of file main.c.

#define INFO_IN   prhs[10]

Definition at line 29 of file main.c.

#define ITERATION   0
#define ITERATION_INNER_TOT   1
#define LAMBDA1_OUT   plhs[4]

Definition at line 41 of file main.c.

#define LAMBDA2_OUT   plhs[5]

Definition at line 42 of file main.c.

#define LB_HAT_IN   prhs[4]

Definition at line 23 of file main.c.

#define LB_IN   prhs[6]

Definition at line 25 of file main.c.

#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 OPT_IN   prhs[9]

Definition at line 28 of file main.c.

#define OUTPUT_STRUCT_OUT   plhs[3]

Definition at line 40 of file main.c.

#define PF_VECTOR   10
#define RHO_AT_B_IN   prhs[13]

Definition at line 34 of file main.c.

#define TIME   2
#define TIME_TOT_INNER   3
#define UB_HAT_IN   prhs[5]

Definition at line 24 of file main.c.

#define UB_IN   prhs[7]

Definition at line 26 of file main.c.

#define Z0_IN   prhs[8]

Definition at line 27 of file main.c.

#define ZOPT_OUT   plhs[0]

Definition at line 37 of file main.c.

Function Documentation

void mexFunction ( int  nlhs,
mxArray *  plhs[],
int  nrhs,
const mxArray *  prhs[] 
)

Definition at line 74 of file main.c.