/home/coin/SVN-release/OS-1.0.0/OS/src/OSModelInterfaces/matlabSolver.cpp File Reference

#include <iostream>
#include <string>
#include "mex.h"
#include "OSDataStructures.h"
#include "OSParameters.h"
#include "OSMatlab.h"

Include dependency graph for matlabSolver.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 26 of file matlabSolver.cpp.

Referenced by getConstraintMatrix().


Function Documentation

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

Definition at line 34 of file matlabSolver.cpp.

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

SparseMatrix* getConstraintMatrix ( const mxArray *  prhs  ) 

Definition at line 222 of file matlabSolver.cpp.

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

Referenced by mexFunction().


Generated on Thu May 15 22:15:18 2008 by  doxygen 1.4.7