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