lemon/lp_skeleton.cc
author deba
Thu, 15 Feb 2007 19:15:14 +0000
changeset 2364 3a5e67bd42d2
parent 2328 b4931ae52069
child 2366 bfbdded3763a
permissions -rw-r--r--
Lp row and col getter function
lp section reader and writer for lemon IO
alpar@1254
     1
/* -*- C++ -*-
alpar@1254
     2
 *
alpar@1956
     3
 * This file is a part of LEMON, a generic C++ optimization library
alpar@1956
     4
 *
alpar@1956
     5
 * Copyright (C) 2003-2006
alpar@1956
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@1359
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@1254
     8
 *
alpar@1254
     9
 * Permission to use, modify and distribute this software is granted
alpar@1254
    10
 * provided that this copyright notice appears in all copies. For
alpar@1254
    11
 * precise terms see the accompanying LICENSE file.
alpar@1254
    12
 *
alpar@1254
    13
 * This software is provided "AS IS" with no warranty of any kind,
alpar@1254
    14
 * express or implied, and with no claim as to its suitability for any
alpar@1254
    15
 * purpose.
alpar@1254
    16
 *
alpar@1254
    17
 */
alpar@1254
    18
alpar@1313
    19
#include <lemon/lp_skeleton.h>
alpar@1254
    20
alpar@1254
    21
///\file
alpar@1254
    22
///\brief A skeleton file to implement LP solver interfaces
alpar@1254
    23
namespace lemon {
alpar@1254
    24
  
alpar@1364
    25
  LpSolverBase &LpSkeleton::_newLp()
alpar@1364
    26
  {
alpar@1368
    27
    LpSolverBase *tmp=0;
alpar@1368
    28
    return *tmp;
alpar@1364
    29
  }
alpar@1364
    30
  
alpar@1364
    31
  LpSolverBase &LpSkeleton::_copyLp()
alpar@1364
    32
  {
alpar@1368
    33
    LpSolverBase *tmp=0;
alpar@1368
    34
    return *tmp;
alpar@1364
    35
  }
alpar@1364
    36
alpar@1313
    37
  int LpSkeleton::_addCol()
alpar@1254
    38
  {
alpar@1273
    39
    return ++col_num;
alpar@1254
    40
  }
alpar@1254
    41
  
alpar@1313
    42
  int LpSkeleton::_addRow() 
alpar@1254
    43
  {
alpar@1273
    44
    return ++row_num;
alpar@1254
    45
  }
alpar@1254
    46
  
athos@1432
    47
  void LpSkeleton::_eraseCol(int ) {
athos@1432
    48
  }
athos@1432
    49
  
athos@1432
    50
  void LpSkeleton::_eraseRow(int) {
athos@1432
    51
  }
athos@1432
    52
alpar@1895
    53
  void LpSkeleton::_getColName(int, std::string &) {
alpar@1895
    54
  }
alpar@1895
    55
  
alpar@1895
    56
  
alpar@1895
    57
  void LpSkeleton::_setColName(int, const std::string &) {
alpar@1895
    58
  }
alpar@1895
    59
  
alpar@1895
    60
  
deba@2364
    61
  void LpSkeleton::_setRowCoeffs(int, ConstRowIterator, ConstRowIterator) {
deba@2364
    62
  }
deba@2364
    63
deba@2364
    64
  void LpSkeleton::_getRowCoeffs(int, RowIterator) {
alpar@1254
    65
  }
alpar@1254
    66
  
deba@2364
    67
  void LpSkeleton::_setColCoeffs(int, ConstColIterator, ConstColIterator) {
deba@2364
    68
  }
deba@2364
    69
deba@2364
    70
  void LpSkeleton::_getColCoeffs(int, ColIterator) {
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@2324
    77
  LpSkeleton::Value LpSkeleton::_getCoeff(int, int)
athos@2324
    78
  {
athos@2324
    79
    return 0;
athos@2324
    80
  }
athos@2324
    81
athos@1431
    82
alpar@1362
    83
  void LpSkeleton::_setColLowerBound(int, Value)
alpar@1254
    84
  {
alpar@1254
    85
  }
alpar@1254
    86
  
athos@2328
    87
  LpSkeleton::Value LpSkeleton::_getColLowerBound(int)
athos@2328
    88
  {
athos@2328
    89
    return 0;
athos@2328
    90
  }
athos@2328
    91
  
alpar@1362
    92
  void LpSkeleton::_setColUpperBound(int, Value)
alpar@1254
    93
  {
alpar@1254
    94
  }
athos@2328
    95
athos@2328
    96
  LpSkeleton::Value LpSkeleton::_getColUpperBound(int)
athos@2328
    97
  {
athos@2328
    98
    return 0;
athos@2328
    99
  }
alpar@1254
   100
  
athos@1405
   101
//   void LpSkeleton::_setRowLowerBound(int, Value)
athos@1405
   102
//   {
athos@1405
   103
//   }
alpar@1254
   104
  
athos@1405
   105
//   void LpSkeleton::_setRowUpperBound(int, Value)
athos@1405
   106
//   {
athos@1405
   107
//   }
athos@1389
   108
alpar@1390
   109
  void LpSkeleton::_setRowBounds(int, Value, Value)
athos@1389
   110
  {
athos@1389
   111
  }
athos@2328
   112
athos@2328
   113
  void LpSkeleton::_getRowBounds(int, Value&, Value&)
athos@2328
   114
  {
athos@2328
   115
  }
alpar@1254
   116
  
alpar@1362
   117
  void LpSkeleton::_setObjCoeff(int, Value)
alpar@1254
   118
  {
alpar@1254
   119
  }
alpar@1263
   120
alpar@2326
   121
  LpSkeleton::Value LpSkeleton::_getObjCoeff(int){
athos@2324
   122
    return 0;
athos@2324
   123
  }
athos@2324
   124
alpar@1313
   125
  void LpSkeleton::_setMax()
alpar@1312
   126
  {
alpar@1312
   127
  }
alpar@1390
   128
alpar@1313
   129
  void LpSkeleton::_setMin()
alpar@1312
   130
  {
alpar@1312
   131
  }
alpar@1312
   132
athos@2324
   133
  bool LpSkeleton::_isMax()
athos@2324
   134
  {
athos@2324
   135
    return true;
athos@2324
   136
  }
athos@2324
   137
athos@2324
   138
alpar@1390
   139
  void LpSkeleton::_clearObj()
alpar@1390
   140
  {
alpar@1390
   141
  }
alpar@1390
   142
  
alpar@1313
   143
  LpSkeleton::SolveExitStatus LpSkeleton::_solve()
alpar@1263
   144
  {
alpar@1293
   145
    return SOLVED;
alpar@1263
   146
  }
alpar@1263
   147
alpar@1362
   148
  LpSkeleton::Value LpSkeleton::_getPrimal(int)
alpar@1263
   149
  {
alpar@1263
   150
    return 0;
alpar@1263
   151
  }
alpar@1254
   152
  
klao@1796
   153
  LpSkeleton::Value LpSkeleton::_getDual(int)
klao@1796
   154
  {
klao@1796
   155
    return 0;
klao@1796
   156
  }
klao@1796
   157
  
alpar@1313
   158
  LpSkeleton::Value LpSkeleton::_getPrimalValue()
alpar@1312
   159
  {
alpar@1312
   160
    return 0;
alpar@1312
   161
  }
alpar@1312
   162
  
alpar@1313
   163
  LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
alpar@1294
   164
  {
athos@1460
   165
    return UNDEFINED;
athos@1460
   166
  }
athos@1460
   167
athos@1460
   168
  LpSkeleton::SolutionStatus LpSkeleton::_getDualStatus()
athos@1460
   169
  {
athos@1460
   170
    return UNDEFINED;
athos@1460
   171
  }
athos@1460
   172
athos@1460
   173
  LpSkeleton::ProblemTypes LpSkeleton::_getProblemType()
athos@1460
   174
  {
athos@1460
   175
    return UNKNOWN;
alpar@1294
   176
  }
alpar@1843
   177
alpar@1855
   178
  bool LpSkeleton::_isBasicCol(int)
alpar@1843
   179
  {
alpar@1843
   180
    return true;
alpar@1843
   181
  }
alpar@1843
   182
alpar@1254
   183
} //namespace lemon
alpar@1254
   184