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

« back to all changes in this revision

Viewing changes to examples/tsp.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:
10
10
 *     Geoffrey Chu
11
11
 *
12
12
 *  Last modified:
13
 
 *     $Date: 2011-05-26 00:56:41 +1000 (Thu, 26 May 2011) $ by $Author: schulte $
14
 
 *     $Revision: 12022 $
 
13
 *     $Date: 2012-09-07 11:29:57 +0200 (Fri, 07 Sep 2012) $ by $Author: schulte $
 
14
 *     $Revision: 13061 $
15
15
 *
16
16
 *  This file is part of Gecode, the generic constraint
17
17
 *  development environment:
266
266
    }
267
267
 
268
268
    // First enumerate cost values, prefer those that maximize cost reduction
269
 
    branch(*this, costs, INT_VAR_REGRET_MAX_MAX, INT_VAL_SPLIT_MIN);
 
269
    branch(*this, costs, INT_VAR_REGRET_MAX_MAX(), INT_VAL_SPLIT_MIN());
270
270
 
271
271
    // Then fix the remaining successors
272
 
    branch(*this, succ,  INT_VAR_MIN_MIN, INT_VAL_MIN);
 
272
    branch(*this, succ,  INT_VAR_MIN_MIN(), INT_VAL_MIN());
273
273
  }
274
274
  /// Return solution cost
275
275
  virtual IntVar cost(void) const {