COIN-OR::LEMON - Graph Library

source: lemon-0.x/lemon/lp_skeleton.cc @ 2364:3a5e67bd42d2

Last change on this file since 2364:3a5e67bd42d2 was 2364:3a5e67bd42d2, checked in by Balazs Dezso, 17 years ago

Lp row and col getter function
lp section reader and writer for lemon IO

File size: 3.1 KB
RevLine 
[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
23namespace 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 
[2364]61  void LpSkeleton::_setRowCoeffs(int, ConstRowIterator, ConstRowIterator) {
62  }
63
64  void LpSkeleton::_getRowCoeffs(int, RowIterator) {
[1254]65  }
66 
[2364]67  void LpSkeleton::_setColCoeffs(int, ConstColIterator, ConstColIterator) {
68  }
69
70  void LpSkeleton::_getColCoeffs(int, ColIterator) {
[1254]71  }
[1431]72
73  void LpSkeleton::_setCoeff(int, int, Value )
74  {
75  }
76
[2324]77  LpSkeleton::Value LpSkeleton::_getCoeff(int, int)
78  {
79    return 0;
80  }
81
[1431]82
[1362]83  void LpSkeleton::_setColLowerBound(int, Value)
[1254]84  {
85  }
86 
[2328]87  LpSkeleton::Value LpSkeleton::_getColLowerBound(int)
88  {
89    return 0;
90  }
91 
[1362]92  void LpSkeleton::_setColUpperBound(int, Value)
[1254]93  {
94  }
[2328]95
96  LpSkeleton::Value LpSkeleton::_getColUpperBound(int)
97  {
98    return 0;
99  }
[1254]100 
[1405]101//   void LpSkeleton::_setRowLowerBound(int, Value)
102//   {
103//   }
[1254]104 
[1405]105//   void LpSkeleton::_setRowUpperBound(int, Value)
106//   {
107//   }
[1389]108
[1390]109  void LpSkeleton::_setRowBounds(int, Value, Value)
[1389]110  {
111  }
[2328]112
113  void LpSkeleton::_getRowBounds(int, Value&, Value&)
114  {
115  }
[1254]116 
[1362]117  void LpSkeleton::_setObjCoeff(int, Value)
[1254]118  {
119  }
[1263]120
[2326]121  LpSkeleton::Value LpSkeleton::_getObjCoeff(int){
[2324]122    return 0;
123  }
124
[1313]125  void LpSkeleton::_setMax()
[1312]126  {
127  }
[1390]128
[1313]129  void LpSkeleton::_setMin()
[1312]130  {
131  }
132
[2324]133  bool LpSkeleton::_isMax()
134  {
135    return true;
136  }
137
138
[1390]139  void LpSkeleton::_clearObj()
140  {
141  }
142 
[1313]143  LpSkeleton::SolveExitStatus LpSkeleton::_solve()
[1263]144  {
[1293]145    return SOLVED;
[1263]146  }
147
[1362]148  LpSkeleton::Value LpSkeleton::_getPrimal(int)
[1263]149  {
150    return 0;
151  }
[1254]152 
[1796]153  LpSkeleton::Value LpSkeleton::_getDual(int)
154  {
155    return 0;
156  }
157 
[1313]158  LpSkeleton::Value LpSkeleton::_getPrimalValue()
[1312]159  {
160    return 0;
161  }
162 
[1313]163  LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
[1294]164  {
[1460]165    return UNDEFINED;
166  }
167
168  LpSkeleton::SolutionStatus LpSkeleton::_getDualStatus()
169  {
170    return UNDEFINED;
171  }
172
173  LpSkeleton::ProblemTypes LpSkeleton::_getProblemType()
174  {
175    return UNKNOWN;
[1294]176  }
[1843]177
[1855]178  bool LpSkeleton::_isBasicCol(int)
[1843]179  {
180    return true;
181  }
182
[1254]183} //namespace lemon
184
Note: See TracBrowser for help on using the repository browser.