deba@458: /* -*- mode: C++; indent-tabs-mode: nil; -*-
deba@458:  *
deba@458:  * This file is a part of LEMON, a generic C++ optimization library.
deba@458:  *
deba@458:  * Copyright (C) 2003-2008
deba@458:  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
deba@458:  * (Egervary Research Group on Combinatorial Optimization, EGRES).
deba@458:  *
deba@458:  * Permission to use, modify and distribute this software is granted
deba@458:  * provided that this copyright notice appears in all copies. For
deba@458:  * precise terms see the accompanying LICENSE file.
deba@458:  *
deba@458:  * This software is provided "AS IS" with no warranty of any kind,
deba@458:  * express or implied, and with no claim as to its suitability for any
deba@458:  * purpose.
deba@458:  *
deba@458:  */
deba@458: 
deba@458: #include <lemon/lp_skeleton.h>
deba@458: 
deba@458: ///\file
deba@458: ///\brief A skeleton file to implement LP solver interfaces
deba@458: namespace lemon {
deba@458: 
deba@459:   int SkeletonSolverBase::_addCol()
deba@458:   {
deba@458:     return ++col_num;
deba@458:   }
deba@458: 
deba@459:   int SkeletonSolverBase::_addRow()
deba@458:   {
deba@458:     return ++row_num;
deba@458:   }
deba@458: 
deba@459:   void SkeletonSolverBase::_eraseCol(int) {}
deba@459:   void SkeletonSolverBase::_eraseRow(int) {}
deba@459: 
deba@459:   void SkeletonSolverBase::_getColName(int, std::string &) const {}
deba@459:   void SkeletonSolverBase::_setColName(int, const std::string &) {}
deba@459:   int SkeletonSolverBase::_colByName(const std::string&) const { return -1; }
deba@459: 
deba@459:   void SkeletonSolverBase::_getRowName(int, std::string &) const {}
deba@459:   void SkeletonSolverBase::_setRowName(int, const std::string &) {}
deba@459:   int SkeletonSolverBase::_rowByName(const std::string&) const { return -1; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setRowCoeffs(int, ExprIterator, ExprIterator) {}
deba@459:   void SkeletonSolverBase::_getRowCoeffs(int, InsertIterator) const {}
deba@459: 
deba@459:   void SkeletonSolverBase::_setColCoeffs(int, ExprIterator, ExprIterator) {}
deba@459:   void SkeletonSolverBase::_getColCoeffs(int, InsertIterator) const {}
deba@459: 
deba@459:   void SkeletonSolverBase::_setCoeff(int, int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getCoeff(int, int) const
deba@459:   { return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setColLowerBound(int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getColLowerBound(int) const
deba@459:   {  return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setColUpperBound(int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getColUpperBound(int) const
deba@459:   {  return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setRowLowerBound(int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getRowLowerBound(int) const
deba@459:   {  return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setRowUpperBound(int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getRowUpperBound(int) const
deba@459:   {  return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setObjCoeffs(ExprIterator, ExprIterator) {}
deba@459:   void SkeletonSolverBase::_getObjCoeffs(InsertIterator) const {};
deba@459: 
deba@459:   void SkeletonSolverBase::_setObjCoeff(int, Value) {}
deba@459:   SkeletonSolverBase::Value SkeletonSolverBase::_getObjCoeff(int) const
deba@459:   {  return 0; }
deba@459: 
deba@459:   void SkeletonSolverBase::_setSense(Sense) {}
deba@459:   SkeletonSolverBase::Sense SkeletonSolverBase::_getSense() const
deba@459:   { return MIN; }
deba@459: 
deba@459:   void SkeletonSolverBase::_clear() {
deba@459:     row_num = col_num = 0;
deba@458:   }
deba@458: 
deba@568:   void SkeletonSolverBase::_messageLevel(MessageLevel) {}
deba@568: 
deba@459:   LpSkeleton::SolveExitStatus LpSkeleton::_solve() { return SOLVED; }
deba@458: 
deba@459:   LpSkeleton::Value LpSkeleton::_getPrimal(int) const { return 0; }
deba@459:   LpSkeleton::Value LpSkeleton::_getDual(int) const { return 0; }
deba@459:   LpSkeleton::Value LpSkeleton::_getPrimalValue() const { return 0; }
deba@458: 
deba@459:   LpSkeleton::Value LpSkeleton::_getPrimalRay(int) const { return 0; }
deba@459:   LpSkeleton::Value LpSkeleton::_getDualRay(int) const { return 0; }
deba@458: 
deba@459:   LpSkeleton::ProblemType LpSkeleton::_getPrimalType() const
deba@459:   { return UNDEFINED; }
deba@458: 
deba@459:   LpSkeleton::ProblemType LpSkeleton::_getDualType() const
deba@459:   { return UNDEFINED; }
deba@458: 
deba@459:   LpSkeleton::VarStatus LpSkeleton::_getColStatus(int) const
deba@459:   { return BASIC; }
deba@458: 
deba@459:   LpSkeleton::VarStatus LpSkeleton::_getRowStatus(int) const
deba@459:   { return BASIC; }
deba@458: 
alpar@528:   LpSkeleton* LpSkeleton::newSolver() const
deba@459:   { return static_cast<LpSkeleton*>(0); }
deba@458: 
alpar@528:   LpSkeleton* LpSkeleton::cloneSolver() const
deba@459:   { return static_cast<LpSkeleton*>(0); }
deba@458: 
deba@459:   const char* LpSkeleton::_solverName() const { return "LpSkeleton"; }
deba@458: 
deba@459:   MipSkeleton::SolveExitStatus MipSkeleton::_solve()
deba@459:   { return SOLVED; }
deba@458: 
deba@459:   MipSkeleton::Value MipSkeleton::_getSol(int) const { return 0; }
deba@459:   MipSkeleton::Value MipSkeleton::_getSolValue() const { return 0; }
deba@458: 
deba@459:   MipSkeleton::ProblemType MipSkeleton::_getType() const
deba@459:   { return UNDEFINED; }
deba@458: 
alpar@528:   MipSkeleton* MipSkeleton::newSolver() const
deba@459:   { return static_cast<MipSkeleton*>(0); }
deba@458: 
alpar@528:   MipSkeleton* MipSkeleton::cloneSolver() const
deba@459:   { return static_cast<MipSkeleton*>(0); }
deba@458: 
deba@459:   const char* MipSkeleton::_solverName() const { return "MipSkeleton"; }
deba@458: 
deba@458: } //namespace lemon
deba@458: