athos@1577: /* -*- C++ -*- athos@1577: * demo/graph_to_eps.cc - Part of LEMON, a generic C++ optimization library athos@1577: * athos@1577: * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport athos@1577: * (Egervary Research Group on Combinatorial Optimization, EGRES). athos@1577: * athos@1577: * Permission to use, modify and distribute this software is granted athos@1577: * provided that this copyright notice appears in all copies. For athos@1577: * precise terms see the accompanying LICENSE file. athos@1577: * athos@1577: * This software is provided "AS IS" with no warranty of any kind, athos@1577: * express or implied, and with no claim as to its suitability for any athos@1577: * purpose. athos@1577: * athos@1577: */ athos@1577: athos@1577: /// \ingroup demos athos@1577: /// \file athos@1577: /// \brief A program demonstrating the LEMON LP solver interface athos@1577: /// athos@1577: /// This program is a simple application of the LEMON LP solver athos@1577: /// interface: we formulate a linear programming (LP) problem and then athos@1577: /// solve it using the underlying solver (GLPK or CPLEX for athos@1577: /// example). For the detailed documentation of the LEMON LP solver athos@1577: /// interface read \ref lemon::LpSolverBase "this". athos@1577: alpar@1610: #include ladanyi@1387: alpar@1362: #include alpar@1381: alpar@1362: using namespace lemon; alpar@1362: alpar@1362: int main() alpar@1362: { alpar@1362: //The following example is taken from the documentation of the GLPK library. alpar@1362: //See it in the GLPK reference manual and among the GLPK sample files (sample.c) athos@1530: athos@1530: //A default solver is taken alpar@1610: Lp lp; alpar@1610: typedef Lp::Row Row; alpar@1610: typedef Lp::Col Col; athos@1513: alpar@1362: athos@1577: std::cout<<"A program demonstrating the LEMON LP solver interface"<