/home/coin/SVN-release/OS-2.0.0/OS/examples/matlab/OSMatlabSolver.cpp File Reference

#include <iostream>
#include <string>
#include "mex.h"
#include "OSDataStructures.h"
#include "OSMatlabSolver.h"

Include dependency graph for OSMatlabSolver.cpp:

Go to the source code of this file.

Defines

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

Functions

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


Define Documentation

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

Definition at line 30 of file OSMatlabSolver.cpp.

Referenced by getConstraintMatrix().


Function Documentation

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

Definition at line 38 of file OSMatlabSolver.cpp.

References OSMatlab::bl, OSMatlab::bu, getConstraintMatrix(), OSMatlab::numCon, OSMatlab::numVar, OSDBL_MAX, and OSMatlab::sparseMat.

SparseMatrix* getConstraintMatrix ( const mxArray *  prhs  ) 

Definition at line 230 of file OSMatlabSolver.cpp.

References SparseMatrix::bDeleteArrays, SparseMatrix::indexes, SparseMatrix::isColumnMajor, IsNonZero, m, n, pi, SparseMatrix::starts, SparseMatrix::startSize, SparseMatrix::values, and SparseMatrix::valueSize.

Referenced by mexFunction().


Generated on Mon Aug 3 03:06:05 2009 by  doxygen 1.4.7