alpar@1254
|
1 |
/* -*- C++ -*-
|
alpar@1313
|
2 |
* src/lemon/lp_skeleton.cc
|
alpar@1254
|
3 |
* - Part of LEMON, a generic C++ optimization library
|
alpar@1254
|
4 |
*
|
alpar@1254
|
5 |
* Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
|
alpar@1359
|
6 |
* (Egervary Research Group on Combinatorial Optimization, EGRES).
|
alpar@1254
|
7 |
*
|
alpar@1254
|
8 |
* Permission to use, modify and distribute this software is granted
|
alpar@1254
|
9 |
* provided that this copyright notice appears in all copies. For
|
alpar@1254
|
10 |
* precise terms see the accompanying LICENSE file.
|
alpar@1254
|
11 |
*
|
alpar@1254
|
12 |
* This software is provided "AS IS" with no warranty of any kind,
|
alpar@1254
|
13 |
* express or implied, and with no claim as to its suitability for any
|
alpar@1254
|
14 |
* purpose.
|
alpar@1254
|
15 |
*
|
alpar@1254
|
16 |
*/
|
alpar@1254
|
17 |
|
alpar@1313
|
18 |
#include <lemon/lp_skeleton.h>
|
alpar@1254
|
19 |
|
alpar@1254
|
20 |
///\file
|
alpar@1254
|
21 |
///\brief A skeleton file to implement LP solver interfaces
|
alpar@1254
|
22 |
namespace lemon {
|
alpar@1254
|
23 |
|
alpar@1364
|
24 |
LpSolverBase &LpSkeleton::_newLp()
|
alpar@1364
|
25 |
{
|
alpar@1368
|
26 |
LpSolverBase *tmp=0;
|
alpar@1368
|
27 |
return *tmp;
|
alpar@1364
|
28 |
}
|
alpar@1364
|
29 |
|
alpar@1364
|
30 |
LpSolverBase &LpSkeleton::_copyLp()
|
alpar@1364
|
31 |
{
|
alpar@1368
|
32 |
LpSolverBase *tmp=0;
|
alpar@1368
|
33 |
return *tmp;
|
alpar@1364
|
34 |
}
|
alpar@1364
|
35 |
|
alpar@1313
|
36 |
int LpSkeleton::_addCol()
|
alpar@1254
|
37 |
{
|
alpar@1273
|
38 |
return ++col_num;
|
alpar@1254
|
39 |
}
|
alpar@1254
|
40 |
|
alpar@1313
|
41 |
int LpSkeleton::_addRow()
|
alpar@1254
|
42 |
{
|
alpar@1273
|
43 |
return ++row_num;
|
alpar@1254
|
44 |
}
|
alpar@1254
|
45 |
|
alpar@1362
|
46 |
void LpSkeleton::_setRowCoeffs(int,
|
alpar@1362
|
47 |
int,
|
alpar@1362
|
48 |
int const *,
|
alpar@1362
|
49 |
Value const *)
|
alpar@1254
|
50 |
{
|
alpar@1254
|
51 |
}
|
alpar@1254
|
52 |
|
alpar@1362
|
53 |
void LpSkeleton::_setColCoeffs(int,
|
alpar@1362
|
54 |
int,
|
alpar@1362
|
55 |
int const *,
|
alpar@1362
|
56 |
Value const *)
|
alpar@1254
|
57 |
{
|
alpar@1254
|
58 |
}
|
alpar@1254
|
59 |
|
alpar@1362
|
60 |
void LpSkeleton::_setColLowerBound(int, Value)
|
alpar@1254
|
61 |
{
|
alpar@1254
|
62 |
}
|
alpar@1254
|
63 |
|
alpar@1362
|
64 |
void LpSkeleton::_setColUpperBound(int, Value)
|
alpar@1254
|
65 |
{
|
alpar@1254
|
66 |
}
|
alpar@1254
|
67 |
|
athos@1405
|
68 |
// void LpSkeleton::_setRowLowerBound(int, Value)
|
athos@1405
|
69 |
// {
|
athos@1405
|
70 |
// }
|
alpar@1254
|
71 |
|
athos@1405
|
72 |
// void LpSkeleton::_setRowUpperBound(int, Value)
|
athos@1405
|
73 |
// {
|
athos@1405
|
74 |
// }
|
athos@1389
|
75 |
|
alpar@1390
|
76 |
void LpSkeleton::_setRowBounds(int, Value, Value)
|
athos@1389
|
77 |
{
|
athos@1389
|
78 |
}
|
alpar@1254
|
79 |
|
alpar@1362
|
80 |
void LpSkeleton::_setObjCoeff(int, Value)
|
alpar@1254
|
81 |
{
|
alpar@1254
|
82 |
}
|
alpar@1263
|
83 |
|
alpar@1313
|
84 |
void LpSkeleton::_setMax()
|
alpar@1312
|
85 |
{
|
alpar@1312
|
86 |
}
|
alpar@1390
|
87 |
|
alpar@1313
|
88 |
void LpSkeleton::_setMin()
|
alpar@1312
|
89 |
{
|
alpar@1312
|
90 |
}
|
alpar@1312
|
91 |
|
alpar@1390
|
92 |
void LpSkeleton::_clearObj()
|
alpar@1390
|
93 |
{
|
alpar@1390
|
94 |
}
|
alpar@1390
|
95 |
|
alpar@1313
|
96 |
LpSkeleton::SolveExitStatus LpSkeleton::_solve()
|
alpar@1263
|
97 |
{
|
alpar@1293
|
98 |
return SOLVED;
|
alpar@1263
|
99 |
}
|
alpar@1263
|
100 |
|
alpar@1362
|
101 |
LpSkeleton::Value LpSkeleton::_getPrimal(int)
|
alpar@1263
|
102 |
{
|
alpar@1263
|
103 |
return 0;
|
alpar@1263
|
104 |
}
|
alpar@1254
|
105 |
|
alpar@1313
|
106 |
LpSkeleton::Value LpSkeleton::_getPrimalValue()
|
alpar@1312
|
107 |
{
|
alpar@1312
|
108 |
return 0;
|
alpar@1312
|
109 |
}
|
alpar@1312
|
110 |
|
alpar@1313
|
111 |
LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
|
alpar@1294
|
112 |
{
|
alpar@1294
|
113 |
return OPTIMAL;
|
alpar@1294
|
114 |
}
|
alpar@1294
|
115 |
|
alpar@1254
|
116 |
} //namespace lemon
|
alpar@1254
|
117 |
|