COIN-OR::LEMON - Graph Library

Changeset 1513:b2a79aaa6867 in lemon-0.x


Ignore:
Timestamp:
06/24/05 23:02:47 (19 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1997
Message:

Minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/lp_demo.cc

    r1435 r1513  
    2727  typedef LpDefault::Row Row;
    2828  typedef LpDefault::Col Col;
     29 
    2930
     31  //This will be a maximization
    3032  lp.max();
    3133
     34  //We add coloumns (variables) to our problem
    3235  Col x1 = lp.addCol();
    3336  Col x2 = lp.addCol();
     
    5457  lp.setObj(10*x1+6*x2+4*x3);
    5558 
     59  //Call the routine of the underlying LP solver
    5660  lp.solve();
    5761
     62  //Print results
    5863  if (lp.primalStatus()==LpSolverBase::OPTIMAL){
    5964    printf("Z = %g; x1 = %g; x2 = %g; x3 = %g\n",
Note: See TracChangeset for help on using the changeset viewer.