~ubuntu-branches/debian/stretch/gecode/stretch

« back to all changes in this revision

Viewing changes to examples/graph-color.cpp

  • Committer: Package Import Robot
  • Author(s): Kari Pahula
  • Date: 2013-05-25 15:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20130525155732-bltd8lu9my9borhk
Tags: 4.0.0-2
Give make check LD_LIBRARY_PATH=. to make test work without gecode
already installed, to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *     Christian Schulte, 2004
8
8
 *
9
9
 *  Last modified:
10
 
 *     $Date: 2010-10-07 20:52:01 +1100 (Thu, 07 Oct 2010) $ by $Author: schulte $
11
 
 *     $Revision: 11473 $
 
10
 *     $Date: 2013-02-19 13:26:08 +0100 (Tue, 19 Feb 2013) $ by $Author: schulte $
 
11
 *     $Revision: 13313 $
12
12
 *
13
13
 *  This file is part of Gecode, the generic constraint
14
14
 *  development environment:
349
349
      if (opt.model() == MODEL_CLIQUE)
350
350
        rel(*this, m, IRT_GQ, n-1);
351
351
    }
352
 
    branch(*this, m, INT_VAL_MIN);
 
352
    branch(*this, m, INT_VAL_MIN());
353
353
    switch (opt.branching()) {
354
354
    case BRANCH_SIZE:
355
 
      branch(*this, v, INT_VAR_SIZE_MIN, INT_VAL_MIN);
 
355
      branch(*this, v, INT_VAR_SIZE_MIN(), INT_VAL_MIN());
356
356
      break;
357
357
    case BRANCH_DEGREE:
358
 
      branch(*this, v, tiebreak(INT_VAR_DEGREE_MAX,INT_VAR_SIZE_MIN),
359
 
             INT_VAL_MIN);
 
358
      branch(*this, v, tiebreak(INT_VAR_DEGREE_MAX(),INT_VAR_SIZE_MIN()),
 
359
             INT_VAL_MIN());
360
360
      break;
361
361
    case BRANCH_SIZE_DEGREE:
362
 
      branch(*this, v, INT_VAR_SIZE_DEGREE_MIN, INT_VAL_MIN);
 
362
      branch(*this, v, INT_VAR_DEGREE_SIZE_MAX(), INT_VAL_MIN());
363
363
      break;
364
364
    case BRANCH_SIZE_AFC:
365
 
      branch(*this, v, INT_VAR_SIZE_AFC_MIN, INT_VAL_MIN);
 
365
      branch(*this, v, INT_VAR_AFC_SIZE_MAX(opt.decay()), INT_VAL_MIN());
366
366
      break;
367
367
    default:
368
368
      break;