lemon/lp.h
author alpar
Tue, 05 Jun 2007 14:48:20 +0000
changeset 2448 ab899ae3505f
parent 2370 ed6539025f27
child 2553 bfced05fa852
permissions -rw-r--r--
Bugfix and improvement in -tsp2 algorithm
alpar@1610
     1
/* -*- C++ -*-
alpar@1610
     2
 *
alpar@1956
     3
 * This file is a part of LEMON, a generic C++ optimization library
alpar@1956
     4
 *
alpar@2391
     5
 * Copyright (C) 2003-2007
alpar@1956
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@1610
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@1610
     8
 *
alpar@1610
     9
 * Permission to use, modify and distribute this software is granted
alpar@1610
    10
 * provided that this copyright notice appears in all copies. For
alpar@1610
    11
 * precise terms see the accompanying LICENSE file.
alpar@1610
    12
 *
alpar@1610
    13
 * This software is provided "AS IS" with no warranty of any kind,
alpar@1610
    14
 * express or implied, and with no claim as to its suitability for any
alpar@1610
    15
 * purpose.
alpar@1610
    16
 *
alpar@1610
    17
 */
alpar@1610
    18
alpar@1610
    19
#ifndef LEMON_LP_H
alpar@1610
    20
#define LEMON_LP_H
alpar@1610
    21
alpar@1610
    22
#include<lemon/config.h>
alpar@1610
    23
athos@2218
    24
alpar@1610
    25
#ifdef HAVE_GLPK
alpar@1610
    26
#include <lemon/lp_glpk.h>
athos@2144
    27
#include <lemon/mip_glpk.h>
alpar@1610
    28
#elif HAVE_CPLEX
alpar@1610
    29
#include <lemon/lp_cplex.h>
athos@2218
    30
#include <lemon/mip_cplex.h>
deba@2312
    31
#elif HAVE_SOPLEX
deba@2312
    32
#include <lemon/lp_soplex.h>
alpar@1610
    33
#endif
alpar@1610
    34
alpar@1610
    35
///\file
alpar@1610
    36
///\brief Defines a default LP solver
deba@2370
    37
///\ingroup lp_group
alpar@1610
    38
namespace lemon {
athos@2218
    39
alpar@1610
    40
#ifdef DOXYGEN
alpar@1610
    41
  ///The default LP solver identifier
alpar@1610
    42
alpar@1610
    43
  ///The default LP solver identifier.
deba@2370
    44
  ///\ingroup lp_group
alpar@1610
    45
  ///
alpar@1610
    46
  ///Currently, the possible values are \c GLPK or \c CPLEX
alpar@1610
    47
#define DEFAULT_LP SOLVER
alpar@1610
    48
  ///The default LP solver
alpar@1610
    49
alpar@1610
    50
  ///The default LP solver.
deba@2370
    51
  ///\ingroup lp_group
alpar@1610
    52
  ///
alpar@1610
    53
  ///Currently, it is either \c LpGlpk or \c LpCplex
alpar@1610
    54
  typedef LpGlpk Lp;
alpar@1610
    55
  ///The default LP solver identifier string
alpar@1610
    56
alpar@1610
    57
  ///The default LP solver identifier string.
deba@2370
    58
  ///\ingroup lp_group
alpar@1610
    59
  ///
alpar@1610
    60
  ///Currently, the possible values are "GLPK" or "CPLEX"
alpar@1610
    61
  const char default_solver_name[]="SOLVER";  
athos@2144
    62
athos@2144
    63
  ///The default ILP solver.
athos@2144
    64
athos@2144
    65
  ///The default ILP solver.
deba@2370
    66
  ///\ingroup lp_group
athos@2144
    67
  ///
athos@2144
    68
  ///Currently, it is either \c LpGlpk or \c LpCplex
athos@2144
    69
  typedef MipGlpk Mip;
alpar@1610
    70
#else
alpar@1610
    71
#ifdef HAVE_GLPK
alpar@1610
    72
#define DEFAULT_LP GLPK
alpar@1610
    73
  typedef LpGlpk Lp;
athos@2144
    74
  typedef MipGlpk Mip;
alpar@1610
    75
  const char default_solver_name[]="GLPK";
alpar@1610
    76
#elif HAVE_CPLEX
alpar@1610
    77
#define DEFAULT_LP CPLEX
alpar@1610
    78
  typedef LpCplex Lp;
athos@2218
    79
  typedef MipCplex Mip;
alpar@1610
    80
  const char default_solver_name[]="CPLEX";
deba@2312
    81
#elif HAVE_SOPLEX
deba@2312
    82
#define DEFAULT_LP SOPLEX
deba@2312
    83
  typedef LpSoplex Lp;
deba@2312
    84
  const char default_solver_name[]="SOPLEX";
alpar@1610
    85
#endif
alpar@1610
    86
#endif
alpar@1610
    87
 
alpar@1610
    88
} //namespace lemon
alpar@1610
    89
athos@2221
    90
#endif //LEMON_LP_H