SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Attributes | List of all members
smile::COptimizationSolverBPMPD< NumT > Class Template Reference

Interface to the standalone program BPMPD. More...

#include <optimization.h>

Inheritance diagram for smile::COptimizationSolverBPMPD< NumT >:
Inheritance graph
[legend]
Collaboration diagram for smile::COptimizationSolverBPMPD< NumT >:
Collaboration graph
[legend]

Public Member Functions

 COptimizationSolverBPMPD (const std::string &_execName, const std::string &_tempDir)
 Construct the instance of the solver. More...
 
virtual int callSolver (const CMatrix< NumT > *linearMatrix, const std::vector< NumT > &rhs, const std::vector< NumT > &maxSolValue, const std::vector< NumT > &objFuncLinear, const CMatrix< NumT > *objFuncQuadratic, std::vector< NumT > *sol) const
 
virtual std::string errorDescription (int result) const
 reports text information for a given error code
 

Private Attributes

std::string execName
 
std::string tempDir
 

Detailed Description

template<typename NumT>
class smile::COptimizationSolverBPMPD< NumT >

Interface to the standalone program BPMPD.

Constructor & Destructor Documentation

template<typename NumT >
smile::COptimizationSolverBPMPD< NumT >::COptimizationSolverBPMPD ( const std::string &  _execName,
const std::string &  _tempDir 
)
inline

Construct the instance of the solver.

Parameters
[in]_execNameis the name of program (if it doesn't exist, an error is raised in callSolver);
[in]_tempDiris the directory where the data file will be written and the result file will be read.

Member Function Documentation

template<typename NumT >
int smile::COptimizationSolverBPMPD< NumT >::callSolver ( const CMatrix< NumT > *  linearMatrix,
const std::vector< NumT > &  rhs,
const std::vector< NumT > &  maxSolValue,
const std::vector< NumT > &  objFuncLinear,
const CMatrix< NumT > *  objFuncQuadratic,
std::vector< NumT > *  sol 
) const
virtual
Returns
0 for success, otherwise an error code

Implements smile::CBasicQuadraticOptimizationSolver< NumT >.


The documentation for this class was generated from the following files: