equal
deleted
inserted
replaced
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; |