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

Function relax

gecode/set/relax.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59namespace Gecode {
60
61 void
62 relax(Home home, const SetVarArgs& x, const SetVarArgs& sx,
63 Rnd r, double p) {
64 if (x.size() != sx.size())
65 throw Set::ArgumentSizeMismatch("Set::relax");
66 if ((p < 0.0) || (p > 1.0))
67 throw Set::OutOfLimits("Set::relax");
68 Set::Relax ir;
69 Search::relax<SetVarArgs,Set::Relax>(home,x,sx,r,p,ir);
70 }
71
72}
73

Callers 1

slaveMethod · 0.50

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected