
Public Member Functions | |
| UnoAlgorithmImpl (const rtl::OUString &service, CalcInterface *pCalc) | |
| ~UnoAlgorithmImpl () throw () | |
| void | solve () |
| Matrix | getSolution () const |
| void | setModel (Model *p) |
| Model * | getModel () const |
| const rtl::OUString | getServiceName () const |
Private Member Functions | |
| CalcInterface * | getCalcInterface () const |
Private Attributes | |
| rtl::OUString | m_sServiceName |
| CalcInterface * | m_pCalc |
| Matrix | m_mxSolution |
| Model * | m_pModel |
Definition at line 67 of file lpuno.cxx.
| scsolver::numeric::lp::UnoAlgorithmImpl::UnoAlgorithmImpl | ( | const rtl::OUString & | service, | |
| CalcInterface * | pCalc | |||
| ) | [inline] |
| scsolver::numeric::lp::UnoAlgorithmImpl::~UnoAlgorithmImpl | ( | ) | throw () [inline] |
| void scsolver::numeric::lp::UnoAlgorithmImpl::solve | ( | ) |
Given an LP model represented by an object of class lp::Model, create an UNO object (service) of type LpModel to map model parameters to it, and to pass it to another UNO object that provides an LP algorithm to find a solution.
Once a solution is found, set the solution into m_mxSolution which will be later retrieved by the calling function.
Definition at line 108 of file lpuno.cxx.
References scsolver::ascii(), scsolver::numeric::Matrix::cols(), scsolver::numeric::EQUAL, getCalcInterface(), scsolver::CalcInterface::getComponentContext(), scsolver::numeric::lp::Model::getConstraintMatrix(), scsolver::numeric::lp::Model::getCostVector(), scsolver::numeric::lp::Model::getEquality(), scsolver::numeric::lp::Model::getGoal(), getModel(), scsolver::numeric::lp::Model::getRhsVector(), scsolver::CalcInterface::getServiceManager(), getServiceName(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, scsolver::numeric::GREATER_EQUAL, scsolver::numeric::LESS_EQUAL, m_mxSolution, scsolver::numeric::Matrix::rows(), and scsolver::numeric::Matrix::swap().
| Matrix scsolver::numeric::lp::UnoAlgorithmImpl::getSolution | ( | ) | const |
| void scsolver::numeric::lp::UnoAlgorithmImpl::setModel | ( | Model * | p | ) | [inline] |
| Model* scsolver::numeric::lp::UnoAlgorithmImpl::getModel | ( | ) | const [inline] |
| const rtl::OUString scsolver::numeric::lp::UnoAlgorithmImpl::getServiceName | ( | ) | const [inline] |
| CalcInterface* scsolver::numeric::lp::UnoAlgorithmImpl::getCalcInterface | ( | ) | const [inline, private] |
rtl::OUString scsolver::numeric::lp::UnoAlgorithmImpl::m_sServiceName [private] |
1.5.3