src/lemon/lp_skeleton.cc
author athos
Fri, 20 May 2005 09:31:25 +0000
changeset 1431 ad44b1dd8013
parent 1405 3626c7f10f14
child 1432 46b088b01f88
permissions -rw-r--r--
Added function _setCoeff().
     1 /* -*- C++ -*-
     2  * src/lemon/lp_skeleton.cc
     3  * - Part of LEMON, a generic C++ optimization library
     4  *
     5  * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  *
     8  * Permission to use, modify and distribute this software is granted
     9  * provided that this copyright notice appears in all copies. For
    10  * precise terms see the accompanying LICENSE file.
    11  *
    12  * This software is provided "AS IS" with no warranty of any kind,
    13  * express or implied, and with no claim as to its suitability for any
    14  * purpose.
    15  *
    16  */
    17 
    18 #include <lemon/lp_skeleton.h>
    19 
    20 ///\file
    21 ///\brief A skeleton file to implement LP solver interfaces
    22 namespace lemon {
    23   
    24   LpSolverBase &LpSkeleton::_newLp()
    25   {
    26     LpSolverBase *tmp=0;
    27     return *tmp;
    28   }
    29   
    30   LpSolverBase &LpSkeleton::_copyLp()
    31   {
    32     LpSolverBase *tmp=0;
    33     return *tmp;
    34   }
    35 
    36   int LpSkeleton::_addCol()
    37   {
    38     return ++col_num;
    39   }
    40   
    41   int LpSkeleton::_addRow() 
    42   {
    43     return ++row_num;
    44   }
    45   
    46   void LpSkeleton::_setRowCoeffs(int, 
    47 				 int,
    48 				 int  const *, 
    49 				 Value  const *)
    50   {
    51   }
    52   
    53   void LpSkeleton::_setColCoeffs(int, 
    54 				 int,
    55 				 int  const *, 
    56 				 Value  const *)
    57   {
    58   }
    59 
    60   void LpSkeleton::_setCoeff(int, int, Value )
    61   {
    62   }
    63 
    64 
    65   void LpSkeleton::_setColLowerBound(int, Value)
    66   {
    67   }
    68   
    69   void LpSkeleton::_setColUpperBound(int, Value)
    70   {
    71   }
    72   
    73 //   void LpSkeleton::_setRowLowerBound(int, Value)
    74 //   {
    75 //   }
    76   
    77 //   void LpSkeleton::_setRowUpperBound(int, Value)
    78 //   {
    79 //   }
    80 
    81   void LpSkeleton::_setRowBounds(int, Value, Value)
    82   {
    83   }
    84   
    85   void LpSkeleton::_setObjCoeff(int, Value)
    86   {
    87   }
    88 
    89   void LpSkeleton::_setMax()
    90   {
    91   }
    92 
    93   void LpSkeleton::_setMin()
    94   {
    95   }
    96 
    97   void LpSkeleton::_clearObj()
    98   {
    99   }
   100   
   101   LpSkeleton::SolveExitStatus LpSkeleton::_solve()
   102   {
   103     return SOLVED;
   104   }
   105 
   106   LpSkeleton::Value LpSkeleton::_getPrimal(int)
   107   {
   108     return 0;
   109   }
   110   
   111   LpSkeleton::Value LpSkeleton::_getPrimalValue()
   112   {
   113     return 0;
   114   }
   115   
   116   LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
   117   {
   118     return OPTIMAL;
   119   }
   120   
   121 } //namespace lemon
   122