lemon/lp.h
author hegyi
Thu, 05 Jan 2006 12:30:09 +0000
changeset 1878 409a31271efd
parent 1611 bb51e4a510c5
child 1956 a055123339d5
permissions -rw-r--r--
Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
     1 /* -*- C++ -*-
     2  * lemon/lp.h - 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 #ifndef LEMON_LP_H
    18 #define LEMON_LP_H
    19 
    20 #include<lemon/config.h>
    21 
    22 #ifdef HAVE_GLPK
    23 #include <lemon/lp_glpk.h>
    24 #elif HAVE_CPLEX
    25 #include <lemon/lp_cplex.h>
    26 #endif
    27 
    28 ///\file
    29 ///\brief Defines a default LP solver
    30 ///\ingroup gen_opt_group
    31 namespace lemon {
    32  
    33 #ifdef DOXYGEN
    34   ///The default LP solver identifier
    35 
    36   ///The default LP solver identifier.
    37   ///\ingroup gen_opt_group
    38   ///
    39   ///Currently, the possible values are \c GLPK or \c CPLEX
    40 #define DEFAULT_LP SOLVER
    41   ///The default LP solver
    42 
    43   ///The default LP solver.
    44   ///\ingroup gen_opt_group
    45   ///
    46   ///Currently, it is either \c LpGlpk or \c LpCplex
    47   typedef LpGlpk Lp;
    48   ///The default LP solver identifier string
    49 
    50   ///The default LP solver identifier string.
    51   ///\ingroup gen_opt_group
    52   ///
    53   ///Currently, the possible values are "GLPK" or "CPLEX"
    54   const char default_solver_name[]="SOLVER";  
    55 #else
    56 #ifdef HAVE_GLPK
    57 #define DEFAULT_LP GLPK
    58   typedef LpGlpk Lp;
    59   const char default_solver_name[]="GLPK";
    60 #elif HAVE_CPLEX
    61 #define DEFAULT_LP CPLEX
    62   typedef LpCplex Lp;
    63   const char default_solver_name[]="CPLEX";
    64 #endif
    65 #endif
    66  
    67 } //namespace lemon
    68 
    69 #endif //LEMON_LP_BASE_H