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

Class FloatAFC

gecode/float.hh:1516–1549  ·  view source on GitHub ↗

* \brief Recording AFC information for float variables * * \ingroup TaskModelFloatBranch */

Source from the content-addressed store, hash-verified

1514 * \ingroup TaskModelFloatBranch
1515 */
1516 class FloatAFC : public AFC {
1517 public:
1518 /**
1519 * \brief Construct as not yet initialized
1520 *
1521 * The only member functions that can be used on a constructed but not
1522 * yet initialized AFC storage is init or the assignment operator.
1523 *
1524 */
1525 FloatAFC(void);
1526 /// Copy constructor
1527 FloatAFC(const FloatAFC& a);
1528 /// Assignment operator
1529 FloatAFC& operator =(const FloatAFC& a);
1530 /**
1531 * \brief Initialize for float variables \a x and decay factor \a d
1532 *
1533 * If several AFC objects are created for a space or its clones,
1534 * the AFC values are shared between spaces. If the values should
1535 * not be shared, \a share should be false.
1536 */
1537 FloatAFC(Home home, const FloatVarArgs& x, double d=1.0, bool share=true);
1538 /**
1539 * \brief Initialize for float variables \a x with decay factor \a d
1540 *
1541 * This member function can only be used once and only if the
1542 * AFC storage has been constructed with the default constructor.
1543 *
1544 * If several AFC objects are created for a space or its clones,
1545 * the AFC values are shared between spaces. If the values should
1546 * not be shared, \a share should be false.
1547 */
1548 void init(Home home, const FloatVarArgs& x, double d=1.0, bool share=true);
1549 };
1550
1551}
1552

Callers 1

expandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected