Macros | Functions
OSMatlabSolverMex.cpp File Reference
#include <iostream>
#include <string>
#include "mex.h"
#include "matrix.h"
#include "OSDataStructures.h"
#include "OSMatlabSolver.h"
Include dependency graph for OSMatlabSolverMex.cpp:

Go to the source code of this file.

Macros

#define IsNonZero(d)   ((d)!=0.0)
 

Functions

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

Macro Definition Documentation

#define IsNonZero (   d)    ((d)!=0.0)

Definition at line 27 of file OSMatlabSolverMex.cpp.

Function Documentation

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

The parameters are: A – the constraint matrix BU – upper bounds on the constraints BL – lower bounds on the constraints C – objective function vector VL – lower bounds on the variables VU – upper bounds on the variables ObjType – 1 for max, 0 for min

Definition at line 35 of file OSMatlabSolverMex.cpp.

SparseMatrix* getConstraintMatrix ( const mxArray *  prhs)

Definition at line 230 of file OSMatlabSolverMex.cpp.