Changeset 1313:96b74270c3a1 in lemon-0.x
- Timestamp:
- 04/07/05 08:38:56 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1752
- Location:
- src
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/Makefile.am
r1307 r1313 8 8 lp_base.cc \ 9 9 lp_glpk.cc \ 10 lp_s olver_skeleton.cc10 lp_skeleton.cc 11 11 12 12 pkginclude_HEADERS = \ … … 57 57 lp_base.h \ 58 58 lp_glpk.h \ 59 lp_s olver_skeleton.h \59 lp_skeleton.h \ 60 60 concept/graph.h \ 61 61 concept/graph_component.h \ -
src/lemon/lp_skeleton.cc
r1312 r1313 1 1 /* -*- C++ -*- 2 * src/lemon/lp_s olver_skeleton.cc2 * src/lemon/lp_skeleton.cc 3 3 * - Part of LEMON, a generic C++ optimization library 4 4 * … … 16 16 */ 17 17 18 #include <lemon/lp_s olver_skeleton.h>18 #include <lemon/lp_skeleton.h> 19 19 20 20 ///\file … … 22 22 namespace lemon { 23 23 24 int LpS olverSkeleton::_addCol()24 int LpSkeleton::_addCol() 25 25 { 26 26 return ++col_num; 27 27 } 28 28 29 int LpS olverSkeleton::_addRow()29 int LpSkeleton::_addRow() 30 30 { 31 31 return ++row_num; 32 32 } 33 33 34 void LpS olverSkeleton::_setRowCoeffs(int i,34 void LpSkeleton::_setRowCoeffs(int i, 35 35 int length, 36 36 int const * indices, … … 39 39 } 40 40 41 void LpS olverSkeleton::_setColCoeffs(int i,41 void LpSkeleton::_setColCoeffs(int i, 42 42 int length, 43 43 int const * indices, … … 46 46 } 47 47 48 void LpS olverSkeleton::_setColLowerBound(int i, Value value)48 void LpSkeleton::_setColLowerBound(int i, Value value) 49 49 { 50 50 } 51 51 52 void LpS olverSkeleton::_setColUpperBound(int i, Value value)52 void LpSkeleton::_setColUpperBound(int i, Value value) 53 53 { 54 54 } 55 55 56 void LpS olverSkeleton::_setRowLowerBound(int i, Value value)56 void LpSkeleton::_setRowLowerBound(int i, Value value) 57 57 { 58 58 } 59 59 60 void LpS olverSkeleton::_setRowUpperBound(int i, Value value)60 void LpSkeleton::_setRowUpperBound(int i, Value value) 61 61 { 62 62 } 63 63 64 void LpS olverSkeleton::_setObjCoeff(int i, Value obj_coef)64 void LpSkeleton::_setObjCoeff(int i, Value obj_coef) 65 65 { 66 66 } 67 67 68 void LpS olverSkeleton::_setMax()68 void LpSkeleton::_setMax() 69 69 { 70 70 } 71 void LpS olverSkeleton::_setMin()71 void LpSkeleton::_setMin() 72 72 { 73 73 } 74 74 75 LpS olverSkeleton::SolveExitStatus LpSolverSkeleton::_solve()75 LpSkeleton::SolveExitStatus LpSkeleton::_solve() 76 76 { 77 77 return SOLVED; 78 78 } 79 79 80 LpS olverSkeleton::Value LpSolverSkeleton::_getPrimal(int i)80 LpSkeleton::Value LpSkeleton::_getPrimal(int i) 81 81 { 82 82 return 0; 83 83 } 84 84 85 LpS olverSkeleton::Value LpSolverSkeleton::_getPrimalValue()85 LpSkeleton::Value LpSkeleton::_getPrimalValue() 86 86 { 87 87 return 0; 88 88 } 89 89 90 LpS olverSkeleton::SolutionStatus LpSolverSkeleton::_getPrimalStatus()90 LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus() 91 91 { 92 92 return OPTIMAL; -
src/lemon/lp_skeleton.h
r1312 r1313 1 1 /* -*- C++ -*- 2 * src/lemon/lp_s olver_skeleton.h2 * src/lemon/lp_skeleton.h 3 3 * - Part of LEMON, a generic C++ optimization library 4 4 * … … 16 16 */ 17 17 18 #ifndef LEMON_LP_S OLVER_SKELETON19 #define LEMON_LP_S OLVER_SKELETON18 #ifndef LEMON_LP_SKELETON 19 #define LEMON_LP_SKELETON 20 20 21 21 #include"lp_base.h" … … 26 26 27 27 ///A skeleton class to implement LP solver interfaces 28 class LpS olverSkeleton :public LpSolverBase {28 class LpSkeleton :public LpSolverBase { 29 29 int col_num,row_num; 30 30 … … 108 108 109 109 public: 110 LpS olverSkeleton() : LpSolverBase(), col_num(0), row_num(0) {}110 LpSkeleton() : LpSolverBase(), col_num(0), row_num(0) {} 111 111 }; 112 112 113 113 } //namespace lemon 114 114 115 #endif // LEMON_LP_S OLVER_SKELETON115 #endif // LEMON_LP_SKELETON -
src/test/lp_test.cc
r1309 r1313 1 #include<lemon/lp_s olver_skeleton.h>1 #include<lemon/lp_skeleton.h> 2 2 #include<lemon/lp_glpk.h> 3 3 … … 130 130 int main() 131 131 { 132 LpS olverSkeleton lp_skel;132 LpSkeleton lp_skel; 133 133 LpGlpk lp_glpk; 134 134
Note: See TracChangeset
for help on using the changeset viewer.