/home/coin/SVN-release/OS-1.1.1/OS/src/OSModelInterfaces/OSMatlabSolver.cpp File Reference

#include <iostream>
#include <string>
#include "mex.h"
#include "OSDataStructures.h"
#include "OSMatlab.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 26 of file OSMatlabSolver.cpp.


Function Documentation

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

Definition at line 34 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 226 of file OSMatlabSolver.cpp.

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


Generated on Tue Sep 30 03:02:02 2008 by  doxygen 1.4.7