MCPcopy Create free account
hub / github.com/Gecode/gecode / extendAssignment

Method extendAssignment

test/float/trigonometric.cpp:140–148  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

138 }
139 /// Extend assignment \a x
140 virtual bool extendAssignment(Assignment& x) const {
141 Gecode::FloatVal d = cos(x[0]);
142 if (Gecode::Float::subset(d, dom)) {
143 x.set(1, d);
144 return true;
145 } else {
146 return false;
147 }
148 }
149 /// Post constraint on \a x
150 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
151 Gecode::cos(home, x[0], x[1]);

Callers

nothing calls this directly

Calls 3

cosFunction · 0.50
subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected