lemon/lp_skeleton.cc
author deba
Wed, 29 Nov 2006 17:34:29 +0000
changeset 2315 bd09e00b64bb
parent 1956 a055123339d5
child 2324 18fc834761d9
permissions -rw-r--r--
Configuration files for soplex
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@2312
    61
  void LpSkeleton::_setRowCoeffs(int, LpRowIterator, LpRowIterator) {
alpar@1254
    62
  }
alpar@1254
    63
  
deba@2312
    64
  void LpSkeleton::_setColCoeffs(int, LpColIterator, LpColIterator) {
alpar@1254
    65
  }
athos@1431
    66
athos@1431
    67
  void LpSkeleton::_setCoeff(int, int, Value )
athos@1431
    68
  {
athos@1431
    69
  }
athos@1431
    70
athos@1431
    71
alpar@1362
    72
  void LpSkeleton::_setColLowerBound(int, Value)
alpar@1254
    73
  {
alpar@1254
    74
  }
alpar@1254
    75
  
alpar@1362
    76
  void LpSkeleton::_setColUpperBound(int, Value)
alpar@1254
    77
  {
alpar@1254
    78
  }
alpar@1254
    79
  
athos@1405
    80
//   void LpSkeleton::_setRowLowerBound(int, Value)
athos@1405
    81
//   {
athos@1405
    82
//   }
alpar@1254
    83
  
athos@1405
    84
//   void LpSkeleton::_setRowUpperBound(int, Value)
athos@1405
    85
//   {
athos@1405
    86
//   }
athos@1389
    87
alpar@1390
    88
  void LpSkeleton::_setRowBounds(int, Value, Value)
athos@1389
    89
  {
athos@1389
    90
  }
alpar@1254
    91
  
alpar@1362
    92
  void LpSkeleton::_setObjCoeff(int, Value)
alpar@1254
    93
  {
alpar@1254
    94
  }
alpar@1263
    95
alpar@1313
    96
  void LpSkeleton::_setMax()
alpar@1312
    97
  {
alpar@1312
    98
  }
alpar@1390
    99
alpar@1313
   100
  void LpSkeleton::_setMin()
alpar@1312
   101
  {
alpar@1312
   102
  }
alpar@1312
   103
alpar@1390
   104
  void LpSkeleton::_clearObj()
alpar@1390
   105
  {
alpar@1390
   106
  }
alpar@1390
   107
  
alpar@1313
   108
  LpSkeleton::SolveExitStatus LpSkeleton::_solve()
alpar@1263
   109
  {
alpar@1293
   110
    return SOLVED;
alpar@1263
   111
  }
alpar@1263
   112
alpar@1362
   113
  LpSkeleton::Value LpSkeleton::_getPrimal(int)
alpar@1263
   114
  {
alpar@1263
   115
    return 0;
alpar@1263
   116
  }
alpar@1254
   117
  
klao@1796
   118
  LpSkeleton::Value LpSkeleton::_getDual(int)
klao@1796
   119
  {
klao@1796
   120
    return 0;
klao@1796
   121
  }
klao@1796
   122
  
alpar@1313
   123
  LpSkeleton::Value LpSkeleton::_getPrimalValue()
alpar@1312
   124
  {
alpar@1312
   125
    return 0;
alpar@1312
   126
  }
alpar@1312
   127
  
alpar@1313
   128
  LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
alpar@1294
   129
  {
athos@1460
   130
    return UNDEFINED;
athos@1460
   131
  }
athos@1460
   132
athos@1460
   133
  LpSkeleton::SolutionStatus LpSkeleton::_getDualStatus()
athos@1460
   134
  {
athos@1460
   135
    return UNDEFINED;
athos@1460
   136
  }
athos@1460
   137
athos@1460
   138
  LpSkeleton::ProblemTypes LpSkeleton::_getProblemType()
athos@1460
   139
  {
athos@1460
   140
    return UNKNOWN;
alpar@1294
   141
  }
alpar@1843
   142
alpar@1855
   143
  bool LpSkeleton::_isBasicCol(int)
alpar@1843
   144
  {
alpar@1843
   145
    return true;
alpar@1843
   146
  }
alpar@1843
   147
alpar@1254
   148
} //namespace lemon
alpar@1254
   149