[1254] | 1 | /* -*- C++ -*- |
---|
| 2 | * |
---|
[1956] | 3 | * This file is a part of LEMON, a generic C++ optimization library |
---|
| 4 | * |
---|
| 5 | * Copyright (C) 2003-2006 |
---|
| 6 | * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
---|
[1359] | 7 | * (Egervary Research Group on Combinatorial Optimization, EGRES). |
---|
[1254] | 8 | * |
---|
| 9 | * Permission to use, modify and distribute this software is granted |
---|
| 10 | * provided that this copyright notice appears in all copies. For |
---|
| 11 | * precise terms see the accompanying LICENSE file. |
---|
| 12 | * |
---|
| 13 | * This software is provided "AS IS" with no warranty of any kind, |
---|
| 14 | * express or implied, and with no claim as to its suitability for any |
---|
| 15 | * purpose. |
---|
| 16 | * |
---|
| 17 | */ |
---|
| 18 | |
---|
[1313] | 19 | #include <lemon/lp_skeleton.h> |
---|
[1254] | 20 | |
---|
| 21 | ///\file |
---|
| 22 | ///\brief A skeleton file to implement LP solver interfaces |
---|
| 23 | namespace lemon { |
---|
| 24 | |
---|
[1364] | 25 | LpSolverBase &LpSkeleton::_newLp() |
---|
| 26 | { |
---|
[1368] | 27 | LpSolverBase *tmp=0; |
---|
| 28 | return *tmp; |
---|
[1364] | 29 | } |
---|
| 30 | |
---|
| 31 | LpSolverBase &LpSkeleton::_copyLp() |
---|
| 32 | { |
---|
[1368] | 33 | LpSolverBase *tmp=0; |
---|
| 34 | return *tmp; |
---|
[1364] | 35 | } |
---|
| 36 | |
---|
[1313] | 37 | int LpSkeleton::_addCol() |
---|
[1254] | 38 | { |
---|
[1273] | 39 | return ++col_num; |
---|
[1254] | 40 | } |
---|
| 41 | |
---|
[1313] | 42 | int LpSkeleton::_addRow() |
---|
[1254] | 43 | { |
---|
[1273] | 44 | return ++row_num; |
---|
[1254] | 45 | } |
---|
| 46 | |
---|
[1432] | 47 | void LpSkeleton::_eraseCol(int ) { |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | void LpSkeleton::_eraseRow(int) { |
---|
| 51 | } |
---|
| 52 | |
---|
[1895] | 53 | void LpSkeleton::_getColName(int, std::string &) { |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | void LpSkeleton::_setColName(int, const std::string &) { |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | |
---|
[1362] | 61 | void LpSkeleton::_setRowCoeffs(int, |
---|
| 62 | int, |
---|
| 63 | int const *, |
---|
| 64 | Value const *) |
---|
[1254] | 65 | { |
---|
| 66 | } |
---|
| 67 | |
---|
[1362] | 68 | void LpSkeleton::_setColCoeffs(int, |
---|
| 69 | int, |
---|
| 70 | int const *, |
---|
| 71 | Value const *) |
---|
[1254] | 72 | { |
---|
| 73 | } |
---|
[1431] | 74 | |
---|
| 75 | void LpSkeleton::_setCoeff(int, int, Value ) |
---|
| 76 | { |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | |
---|
[1362] | 80 | void LpSkeleton::_setColLowerBound(int, Value) |
---|
[1254] | 81 | { |
---|
| 82 | } |
---|
| 83 | |
---|
[1362] | 84 | void LpSkeleton::_setColUpperBound(int, Value) |
---|
[1254] | 85 | { |
---|
| 86 | } |
---|
| 87 | |
---|
[1405] | 88 | // void LpSkeleton::_setRowLowerBound(int, Value) |
---|
| 89 | // { |
---|
| 90 | // } |
---|
[1254] | 91 | |
---|
[1405] | 92 | // void LpSkeleton::_setRowUpperBound(int, Value) |
---|
| 93 | // { |
---|
| 94 | // } |
---|
[1389] | 95 | |
---|
[1390] | 96 | void LpSkeleton::_setRowBounds(int, Value, Value) |
---|
[1389] | 97 | { |
---|
| 98 | } |
---|
[1254] | 99 | |
---|
[1362] | 100 | void LpSkeleton::_setObjCoeff(int, Value) |
---|
[1254] | 101 | { |
---|
| 102 | } |
---|
[1263] | 103 | |
---|
[1313] | 104 | void LpSkeleton::_setMax() |
---|
[1312] | 105 | { |
---|
| 106 | } |
---|
[1390] | 107 | |
---|
[1313] | 108 | void LpSkeleton::_setMin() |
---|
[1312] | 109 | { |
---|
| 110 | } |
---|
| 111 | |
---|
[1390] | 112 | void LpSkeleton::_clearObj() |
---|
| 113 | { |
---|
| 114 | } |
---|
| 115 | |
---|
[1313] | 116 | LpSkeleton::SolveExitStatus LpSkeleton::_solve() |
---|
[1263] | 117 | { |
---|
[1293] | 118 | return SOLVED; |
---|
[1263] | 119 | } |
---|
| 120 | |
---|
[1362] | 121 | LpSkeleton::Value LpSkeleton::_getPrimal(int) |
---|
[1263] | 122 | { |
---|
| 123 | return 0; |
---|
| 124 | } |
---|
[1254] | 125 | |
---|
[1796] | 126 | LpSkeleton::Value LpSkeleton::_getDual(int) |
---|
| 127 | { |
---|
| 128 | return 0; |
---|
| 129 | } |
---|
| 130 | |
---|
[1313] | 131 | LpSkeleton::Value LpSkeleton::_getPrimalValue() |
---|
[1312] | 132 | { |
---|
| 133 | return 0; |
---|
| 134 | } |
---|
| 135 | |
---|
[1313] | 136 | LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus() |
---|
[1294] | 137 | { |
---|
[1460] | 138 | return UNDEFINED; |
---|
| 139 | } |
---|
| 140 | |
---|
| 141 | LpSkeleton::SolutionStatus LpSkeleton::_getDualStatus() |
---|
| 142 | { |
---|
| 143 | return UNDEFINED; |
---|
| 144 | } |
---|
| 145 | |
---|
| 146 | LpSkeleton::ProblemTypes LpSkeleton::_getProblemType() |
---|
| 147 | { |
---|
| 148 | return UNKNOWN; |
---|
[1294] | 149 | } |
---|
[1843] | 150 | |
---|
[1855] | 151 | bool LpSkeleton::_isBasicCol(int) |
---|
[1843] | 152 | { |
---|
| 153 | return true; |
---|
| 154 | } |
---|
| 155 | |
---|
[1254] | 156 | } //namespace lemon |
---|
| 157 | |
---|