test/lp_test.cc
changeset 2325 d6ec469aa019
parent 2324 18fc834761d9
child 2328 b4931ae52069
equal deleted inserted replaced
15:6ce8eeead38a 16:b794d60d65ac
   295 
   295 
   296 
   296 
   297   //Testing the problem retrieving routines
   297   //Testing the problem retrieving routines
   298   check(lp.objCoeff(x1)==1,"First term should be 1 in the obj function!");
   298   check(lp.objCoeff(x1)==1,"First term should be 1 in the obj function!");
   299   check(lp.is_max(),"This is a maximization!");
   299   check(lp.is_max(),"This is a maximization!");
   300   check(lp.coeff(upright,x1)==1,"The coefficient in question is 1!");
   300   check(lp.coeff(upright,x1)==0,"The coefficient in question is 1!");
   301 
   301 
   302 
   302 
   303   //Maximization of x1+x2
   303   //Maximization of x1+x2
   304   //over the triangle with vertices (0,0) (0,1) (1,0)
   304   //over the triangle with vertices (0,0) (0,1) (1,0)
   305   double expected_opt=1;
   305   double expected_opt=1;