Generated on for Gecode by doxygen 1.17.0
inter-distance.cpp File Reference
#include <gecode/int/inter-distance.hh>
#include <gecode/int/distinct.hh>
#include <algorithm>
#include <limits>
#include <tuple>

Go to the source code of this file.

Namespaces

namespace  Gecode
 Gecode toplevel namespace
namespace  Gecode::Int
 Finite domain integers.
namespace  Gecode::Int::InterDistance
 Inter-distance propagator.

Functions

void Gecode::inter_distance (Home home, const IntVarArgs &x, int p, IntPropLevel ipl=IPL_DEF)
 Post bounds-consistent propagator for \(|x_i-x_j|\geq p\) for all \(0\leq i\neq j<|x|\).
void Gecode::inter_distance (Home home, const IntVarArgs &x, IntVar p, IntPropLevel ipl=IPL_DEF)
 Post inter-distance constraint with variable separation.