src/lemon/lp_skeleton.cc
author alpar
Sun, 17 Apr 2005 18:57:22 +0000
changeset 1364 ee5959aa4410
parent 1362 b4330c52caeb
child 1368 f9d0d792c8a6
permissions -rw-r--r--
- compile failure fixed
- newLp(), copyLp() added
- more doc.
     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     return *((LpSolverBase *)0);
    27   }
    28   
    29   LpSolverBase &LpSkeleton::_copyLp()
    30   {
    31     return *((LpSolverBase *)0);
    32   }
    33 
    34   int LpSkeleton::_addCol()
    35   {
    36     return ++col_num;
    37   }
    38   
    39   int LpSkeleton::_addRow() 
    40   {
    41     return ++row_num;
    42   }
    43   
    44   void LpSkeleton::_setRowCoeffs(int, 
    45 				 int,
    46 				 int  const *, 
    47 				 Value  const *)
    48   {
    49   }
    50   
    51   void LpSkeleton::_setColCoeffs(int, 
    52 				 int,
    53 				 int  const *, 
    54 				 Value  const *)
    55   {
    56   }
    57   
    58   void LpSkeleton::_setColLowerBound(int, Value)
    59   {
    60   }
    61   
    62   void LpSkeleton::_setColUpperBound(int, Value)
    63   {
    64   }
    65   
    66   void LpSkeleton::_setRowLowerBound(int, Value)
    67   {
    68   }
    69   
    70   void LpSkeleton::_setRowUpperBound(int, Value)
    71   {
    72   }
    73   
    74   void LpSkeleton::_setObjCoeff(int, Value)
    75   {
    76   }
    77 
    78   void LpSkeleton::_setMax()
    79   {
    80   }
    81   void LpSkeleton::_setMin()
    82   {
    83   }
    84 
    85   LpSkeleton::SolveExitStatus LpSkeleton::_solve()
    86   {
    87     return SOLVED;
    88   }
    89 
    90   LpSkeleton::Value LpSkeleton::_getPrimal(int)
    91   {
    92     return 0;
    93   }
    94   
    95   LpSkeleton::Value LpSkeleton::_getPrimalValue()
    96   {
    97     return 0;
    98   }
    99   
   100   LpSkeleton::SolutionStatus LpSkeleton::_getPrimalStatus()
   101   {
   102     return OPTIMAL;
   103   }
   104   
   105 } //namespace lemon
   106