lemon/lp.h
author alpar
Mon, 01 Aug 2005 21:16:08 +0000
changeset 1610 893dacc1866c
child 1611 bb51e4a510c5
permissions -rw-r--r--
A default LP solver is defined in lp.h
alpar@1610
     1
/* -*- C++ -*-
alpar@1610
     2
 * lemon/lp.h - Part of LEMON, a generic C++ optimization library
alpar@1610
     3
 *
alpar@1610
     4
 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@1610
     5
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@1610
     6
 *
alpar@1610
     7
 * Permission to use, modify and distribute this software is granted
alpar@1610
     8
 * provided that this copyright notice appears in all copies. For
alpar@1610
     9
 * precise terms see the accompanying LICENSE file.
alpar@1610
    10
 *
alpar@1610
    11
 * This software is provided "AS IS" with no warranty of any kind,
alpar@1610
    12
 * express or implied, and with no claim as to its suitability for any
alpar@1610
    13
 * purpose.
alpar@1610
    14
 *
alpar@1610
    15
 */
alpar@1610
    16
alpar@1610
    17
#ifndef LEMON_LP_H
alpar@1610
    18
#define LEMON_LP_H
alpar@1610
    19
alpar@1610
    20
#ifdef HAVE_CONFIG_H
alpar@1610
    21
#include<lemon/config.h>
alpar@1610
    22
#endif
alpar@1610
    23
alpar@1610
    24
#ifdef HAVE_GLPK
alpar@1610
    25
#include <lemon/lp_glpk.h>
alpar@1610
    26
#elif HAVE_CPLEX
alpar@1610
    27
#include <lemon/lp_cplex.h>
alpar@1610
    28
#endif
alpar@1610
    29
alpar@1610
    30
///\file
alpar@1610
    31
///\brief Defines a default LP solver
alpar@1610
    32
///\ingroup gen_opt_group
alpar@1610
    33
namespace lemon {
alpar@1610
    34
 
alpar@1610
    35
#ifdef DOXYGEN
alpar@1610
    36
  ///The default LP solver identifier
alpar@1610
    37
alpar@1610
    38
  ///The default LP solver identifier.
alpar@1610
    39
  ///\ingroup gen_opt_group
alpar@1610
    40
  ///
alpar@1610
    41
  ///Currently, the possible values are \c GLPK or \c CPLEX
alpar@1610
    42
#define DEFAULT_LP SOLVER
alpar@1610
    43
  ///The default LP solver
alpar@1610
    44
alpar@1610
    45
  ///The default LP solver.
alpar@1610
    46
  ///\ingroup gen_opt_group
alpar@1610
    47
  ///
alpar@1610
    48
  ///Currently, it is either \c LpGlpk or \c LpCplex
alpar@1610
    49
  typedef LpGlpk Lp;
alpar@1610
    50
  ///The default LP solver identifier string
alpar@1610
    51
alpar@1610
    52
  ///The default LP solver identifier string.
alpar@1610
    53
  ///\ingroup gen_opt_group
alpar@1610
    54
  ///
alpar@1610
    55
  ///Currently, the possible values are "GLPK" or "CPLEX"
alpar@1610
    56
  const char default_solver_name[]="SOLVER";  
alpar@1610
    57
#else
alpar@1610
    58
#ifdef HAVE_GLPK
alpar@1610
    59
#define DEFAULT_LP GLPK
alpar@1610
    60
  typedef LpGlpk Lp;
alpar@1610
    61
  const char default_solver_name[]="GLPK";
alpar@1610
    62
#elif HAVE_CPLEX
alpar@1610
    63
#define DEFAULT_LP CPLEX
alpar@1610
    64
  typedef LpCplex Lp;
alpar@1610
    65
  const char default_solver_name[]="CPLEX";
alpar@1610
    66
#endif
alpar@1610
    67
#endif
alpar@1610
    68
 
alpar@1610
    69
} //namespace lemon
alpar@1610
    70
alpar@1610
    71
#endif //LEMON_LP_BASE_H