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