COIN-OR::LEMON - Graph Library

Changeset 2324:18fc834761d9 in lemon-0.x for test/lp_test.cc


Ignore:
Timestamp:
12/04/06 17:48:13 (17 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3100
Message:

Some query functions got implemented, but only for GLPK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/lp_test.cc

    r2314 r2324  
    294294  lp.max();
    295295
     296
     297  //Testing the problem retrieving routines
     298  check(lp.objCoeff(x1)==1,"First term should be 1 in the obj function!");
     299  check(lp.is_max(),"This is a maximization!");
     300  check(lp.coeff(upright,x1)==1,"The coefficient in question is 1!");
     301
     302
    296303  //Maximization of x1+x2
    297304  //over the triangle with vertices (0,0) (0,1) (1,0)
Note: See TracChangeset for help on using the changeset viewer.