float.cpp
Go to the documentation of this file.
97std::ostream&
270 TestSpace::assign(const Assignment& a, MaybeType& sol, bool skip, Gecode::Support::RandomGenerator& rand) {
friend FloatVal max(const FloatVal &x, const FloatVal &y)
Definition val.hpp:387
friend FloatVal min(const FloatVal &x, const FloatVal &y)
Definition val.hpp:399
FloatNum size(void) const
Return size of float value (distance between maximum and minimum).
Definition val.hpp:78
Floating point rounding policy that restores the caller's mode.
Definition float.hh:269
virtual T * next(void)
Return next solution (nullptr, if none exists or search has been stopped).
Definition base.hpp:46
struct Gecode::Space::@055132133326276162005044145100211202071356247106::@155123175027073262103111264343315000271204104107 c
Data available only during copying.
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:50
Generate all assignments except the last variable and complete it to get a solution.
Definition float.hh:136
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:67
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:89
Gecode::FloatNum randval(Gecode::Support::RandomGenerator &rand)
Definition float.hpp:113
int a
How many assignments still to be generated Generate new value according to domain.
Definition float.hh:162
void bound(Gecode::Support::RandomGenerator &rand)
Assign a random variable to a random bound.
Definition float.cpp:288
void prune(int i, Gecode::Support::RandomGenerator &rand)
Prune some random values from variable i.
Definition float.cpp:332
Gecode::FloatNum cut(int *cutDirections)
Cut the bigger variable to an half sized interval. It returns the new size of the cut interval....
Definition float.cpp:303
bool matchAssignment(const Assignment &a) const
Test whether all variables match assignment a.
Definition float.cpp:211
void disable(void)
Disable propagators in space and compute fixpoint (make all idle).
Definition float.cpp:191
TestSpace(int n, Gecode::FloatVal &d, Gecode::FloatNum s, Test *t)
Create test space.
Definition float.cpp:143
virtual void dropUntil(const Assignment &a)
Add constraints to skip solutions to the a assignment.
Definition float.cpp:197
void assign(const Assignment &a, MaybeType &sol, bool skip, Gecode::Support::RandomGenerator &rand)
Assign all (or all but one, if skip is true) variables to values in a If assignment of a variable is ...
Definition float.cpp:270
void rel(int i, Gecode::FloatRelType frt, Gecode::FloatVal n)
Perform integer tell operation on x[i].
Definition float.cpp:244
virtual bool extendAssignment(Assignment &a) const
Complete the current assignment to get a feasible one (which satisfies all constraint)....
Definition float.cpp:435
bool eqv(void) const
Test whether equivalence as reification mode is supported.
Definition float.hpp:161
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)=0
Post constraint.
bool pmi(void) const
Test whether reverse implication as reification mode is supported.
Definition float.hpp:169
bool subsumed(const TestSpace &ts) const
Test if ts is subsumed or not (i.e. if there is no more propagator unless the assignment is an extend...
Definition float.cpp:441
virtual bool ignore(const Assignment &a) const
Whether to ignore assignment for reification.
Definition float.cpp:469
virtual MaybeType solution(const Assignment &) const =0
Check an interval assignment using MT_TRUE, MT_FALSE, or MT_MAYBE; see cmp().
bool imp(void) const
Test whether implication as reification mode is supported.
Definition float.hpp:165
LinearCongruentialGenerator< 2147483647, 48271, 44488, 3399 > RandomGenerator
Default values for linear congruential generator.
Definition random.hpp:183
void branch(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatValBranch vals, FloatBranchFilter bf=nullptr, FloatVarValPrint vvp=nullptr)
Branch over x with variable selection vars and value selection vals.
Definition branch.cpp:39
void rel(Home home, FloatVar x0, FloatRelType frt, FloatVar x1)
Post propagator for .
Definition rel.cpp:68
Floating point numbers.
Gecode toplevel namespace
void min(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:67
void max(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:49
FloatValBranch FLOAT_VAL_SPLIT_MIN(void)
Select values not greater than mean of smallest and largest value.
Definition val.hpp:55
Gecode::FloatNum randFValUp(Gecode::FloatNum l, Gecode::FloatNum u, Gecode::Support::RandomGenerator &rand)
Definition float.cpp:125
Gecode::FloatNum randFValDown(Gecode::FloatNum l, Gecode::FloatNum u, Gecode::Support::RandomGenerator &rand)
Definition float.cpp:108
std::ostream & operator<<(std::ostream &os, const Test::Float::Assignment &a)
Definition float.cpp:98
