COIN-OR::LEMON - Graph Library

Changeset 1263:a490938ad0aa in lemon-0.x for src/work/athos/lp/lp_test.cc


Ignore:
Timestamp:
03/25/05 17:19:03 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1690
Message:
  • LpGlpk? added to the makefile
  • missing const_cast<>() added
  • prop for two new functions (solve() and solution())
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_test.cc

    r1259 r1263  
    11#include"lp_solver_skeleton.h"
     2#include"lp_glpk.h"
    23
    34using namespace lemon;
    45
    5 int main()
     6void lpTest(LpSolverBase & lp)
    67{
    7   typedef LpSolverSkeleton LP;
    8   LP lp;
     8  typedef LpSolverBase LP;
    99
    1010  std::vector<LP::Col> x;
     
    3838  lp.addRow(LP::INF,3.0*(x[1]+x[2]*2-5*x[3]+12-x[4]/3)+2*x[4]-4,23);
    3939}
     40
     41
     42int main()
     43{
     44  LpSolverSkeleton lp_skel;
     45  LpGlpk lp_glpk;
     46
     47  lpTest(lp_skel);
     48  lpTest(lp_glpk);
     49}
Note: See TracChangeset for help on using the changeset viewer.