Bin-packing propagator.
More...
#include <bin-packing.hh>
|
| template<class SizeSet> |
| bool | nosum (const SizeSet &s, int a, int b, int &ap, int &bp) |
| | Detect non-existence of sums in a .. b.
|
| template<class SizeSet> |
| bool | nosum (const SizeSet &s, int a, int b) |
| | Detect non-existence of sums in a .. b.
|
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| | Perform propagation.
|
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| | Cost function.
|
| virtual void | reschedule (Space &home) |
| | Schedule function.
|
| virtual Actor * | copy (Space &home) |
| | Copy propagator during cloning.
|
| virtual size_t | dispose (Space &home) |
| | Destructor.
|
| ModEventDelta | modeventdelta (void) const |
| | Return the modification event delta.
|
| virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
| | Advise function.
|
| virtual void | advise (Space &home, Advisor &a) |
| | Run advisor a to be run on failure in failed space.
|
| double | afc (void) const |
| | Return the accumlated failure count.
|
| unsigned int | id (void) const |
| | Return propagator id.
|
| PropagatorGroup | group (void) const |
| | Return group propagator belongs to.
|
| void | group (PropagatorGroup g) |
| | Add propagator to group g.
|
| bool | disabled (void) const |
| | Whether propagator is currently disabled.
|
| virtual | ~Actor (void) |
| | To avoid warnings.
|
Bin-packing propagator.
The algorithm is taken from: Paul Shaw. A Constraint for Bin Packing. CP 2004.
Requires
Definition at line 141 of file bin-packing.hh.
◆ Pack() [1/2]
◆ Pack() [2/2]
| Gecode::Int::BinPacking::Pack::Pack |
( |
Space & | home, |
|
|
Pack & | p ) |
|
inlineprotected |
◆ post()
Post propagator for loads l and items bs.
Definition at line 360 of file propagate.cpp.
◆ nosum() [1/2]
| bool Gecode::Int::BinPacking::Pack::nosum |
( |
const SizeSet & | s, |
|
|
int | a, |
|
|
int | b, |
|
|
int & | ap, |
|
|
int & | bp ) |
|
inline |
Detect non-existence of sums in a .. b.
Definition at line 175 of file propagate.hpp.
◆ nosum() [2/2]
| bool Gecode::Int::BinPacking::Pack::nosum |
( |
const SizeSet & | s, |
|
|
int | a, |
|
|
int | b ) |
|
inline |
Detect non-existence of sums in a .. b.
Definition at line 206 of file propagate.hpp.
◆ propagate()
◆ cost()
◆ reschedule()
| void Gecode::Int::BinPacking::Pack::reschedule |
( |
Space & | home | ) |
|
|
virtual |
◆ copy()
| Actor * Gecode::Int::BinPacking::Pack::copy |
( |
Space & | home | ) |
|
|
virtual |
◆ dispose()
| size_t Gecode::Int::BinPacking::Pack::dispose |
( |
Space & | home | ) |
|
|
inlinevirtual |
◆ bs
| int Gecode::Int::BinPacking::Pack::t |
|
protected |
The documentation for this class was generated from the following files: