My Project
OSMatlabSolverMex.cpp File Reference
#include <iostream>
#include <string>
#include "mex.h"
#include "matrix.h"
#include "OSDataStructures.h"
#include "OSMatlabSolver.h"

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

◆ IsNonZero

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

Definition at line 27 of file OSMatlabSolverMex.cpp.

Function Documentation

◆ mexFunction()

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.

◆ getConstraintMatrix()

SparseMatrix * getConstraintMatrix ( const mxArray * prhs)

Definition at line 230 of file OSMatlabSolverMex.cpp.