1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/lemon/lp_skeleton.cc Thu Dec 10 17:05:35 2009 +0100
1.3 @@ -0,0 +1,136 @@
1.4 +/* -*- mode: C++; indent-tabs-mode: nil; -*-
1.5 + *
1.6 + * This file is a part of LEMON, a generic C++ optimization library.
1.7 + *
1.8 + * Copyright (C) 2003-2008
1.9 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.10 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
1.11 + *
1.12 + * Permission to use, modify and distribute this software is granted
1.13 + * provided that this copyright notice appears in all copies. For
1.14 + * precise terms see the accompanying LICENSE file.
1.15 + *
1.16 + * This software is provided "AS IS" with no warranty of any kind,
1.17 + * express or implied, and with no claim as to its suitability for any
1.18 + * purpose.
1.19 + *
1.20 + */
1.21 +
1.22 +#include <lemon/lp_skeleton.h>
1.23 +
1.24 +///\file
1.25 +///\brief A skeleton file to implement LP solver interfaces
1.26 +namespace lemon {
1.27 +
1.28 + int SkeletonSolverBase::_addCol()
1.29 + {
1.30 + return ++col_num;
1.31 + }
1.32 +
1.33 + int SkeletonSolverBase::_addRow()
1.34 + {
1.35 + return ++row_num;
1.36 + }
1.37 +
1.38 + void SkeletonSolverBase::_eraseCol(int) {}
1.39 + void SkeletonSolverBase::_eraseRow(int) {}
1.40 +
1.41 + void SkeletonSolverBase::_getColName(int, std::string &) const {}
1.42 + void SkeletonSolverBase::_setColName(int, const std::string &) {}
1.43 + int SkeletonSolverBase::_colByName(const std::string&) const { return -1; }
1.44 +
1.45 + void SkeletonSolverBase::_getRowName(int, std::string &) const {}
1.46 + void SkeletonSolverBase::_setRowName(int, const std::string &) {}
1.47 + int SkeletonSolverBase::_rowByName(const std::string&) const { return -1; }
1.48 +
1.49 + void SkeletonSolverBase::_setRowCoeffs(int, ExprIterator, ExprIterator) {}
1.50 + void SkeletonSolverBase::_getRowCoeffs(int, InsertIterator) const {}
1.51 +
1.52 + void SkeletonSolverBase::_setColCoeffs(int, ExprIterator, ExprIterator) {}
1.53 + void SkeletonSolverBase::_getColCoeffs(int, InsertIterator) const {}
1.54 +
1.55 + void SkeletonSolverBase::_setCoeff(int, int, Value) {}
1.56 + SkeletonSolverBase::Value SkeletonSolverBase::_getCoeff(int, int) const
1.57 + { return 0; }
1.58 +
1.59 + void SkeletonSolverBase::_setColLowerBound(int, Value) {}
1.60 + SkeletonSolverBase::Value SkeletonSolverBase::_getColLowerBound(int) const
1.61 + { return 0; }
1.62 +
1.63 + void SkeletonSolverBase::_setColUpperBound(int, Value) {}
1.64 + SkeletonSolverBase::Value SkeletonSolverBase::_getColUpperBound(int) const
1.65 + { return 0; }
1.66 +
1.67 + void SkeletonSolverBase::_setRowLowerBound(int, Value) {}
1.68 + SkeletonSolverBase::Value SkeletonSolverBase::_getRowLowerBound(int) const
1.69 + { return 0; }
1.70 +
1.71 + void SkeletonSolverBase::_setRowUpperBound(int, Value) {}
1.72 + SkeletonSolverBase::Value SkeletonSolverBase::_getRowUpperBound(int) const
1.73 + { return 0; }
1.74 +
1.75 + void SkeletonSolverBase::_setObjCoeffs(ExprIterator, ExprIterator) {}
1.76 + void SkeletonSolverBase::_getObjCoeffs(InsertIterator) const {};
1.77 +
1.78 + void SkeletonSolverBase::_setObjCoeff(int, Value) {}
1.79 + SkeletonSolverBase::Value SkeletonSolverBase::_getObjCoeff(int) const
1.80 + { return 0; }
1.81 +
1.82 + void SkeletonSolverBase::_setSense(Sense) {}
1.83 + SkeletonSolverBase::Sense SkeletonSolverBase::_getSense() const
1.84 + { return MIN; }
1.85 +
1.86 + void SkeletonSolverBase::_clear() {
1.87 + row_num = col_num = 0;
1.88 + }
1.89 +
1.90 + void SkeletonSolverBase::_messageLevel(MessageLevel) {}
1.91 +
1.92 + LpSkeleton::SolveExitStatus LpSkeleton::_solve() { return SOLVED; }
1.93 +
1.94 + LpSkeleton::Value LpSkeleton::_getPrimal(int) const { return 0; }
1.95 + LpSkeleton::Value LpSkeleton::_getDual(int) const { return 0; }
1.96 + LpSkeleton::Value LpSkeleton::_getPrimalValue() const { return 0; }
1.97 +
1.98 + LpSkeleton::Value LpSkeleton::_getPrimalRay(int) const { return 0; }
1.99 + LpSkeleton::Value LpSkeleton::_getDualRay(int) const { return 0; }
1.100 +
1.101 + LpSkeleton::ProblemType LpSkeleton::_getPrimalType() const
1.102 + { return UNDEFINED; }
1.103 +
1.104 + LpSkeleton::ProblemType LpSkeleton::_getDualType() const
1.105 + { return UNDEFINED; }
1.106 +
1.107 + LpSkeleton::VarStatus LpSkeleton::_getColStatus(int) const
1.108 + { return BASIC; }
1.109 +
1.110 + LpSkeleton::VarStatus LpSkeleton::_getRowStatus(int) const
1.111 + { return BASIC; }
1.112 +
1.113 + LpSkeleton* LpSkeleton::newSolver() const
1.114 + { return static_cast<LpSkeleton*>(0); }
1.115 +
1.116 + LpSkeleton* LpSkeleton::cloneSolver() const
1.117 + { return static_cast<LpSkeleton*>(0); }
1.118 +
1.119 + const char* LpSkeleton::_solverName() const { return "LpSkeleton"; }
1.120 +
1.121 + MipSkeleton::SolveExitStatus MipSkeleton::_solve()
1.122 + { return SOLVED; }
1.123 +
1.124 + MipSkeleton::Value MipSkeleton::_getSol(int) const { return 0; }
1.125 + MipSkeleton::Value MipSkeleton::_getSolValue() const { return 0; }
1.126 +
1.127 + MipSkeleton::ProblemType MipSkeleton::_getType() const
1.128 + { return UNDEFINED; }
1.129 +
1.130 + MipSkeleton* MipSkeleton::newSolver() const
1.131 + { return static_cast<MipSkeleton*>(0); }
1.132 +
1.133 + MipSkeleton* MipSkeleton::cloneSolver() const
1.134 + { return static_cast<MipSkeleton*>(0); }
1.135 +
1.136 + const char* MipSkeleton::_solverName() const { return "MipSkeleton"; }
1.137 +
1.138 +} //namespace lemon
1.139 +