Test::Int::BinPacking::MBPT Class Reference
[Bin-packing constraints]
Test with different bin loads and items More...
Public Member Functions | |
MBPT (int d0, int m0, const Gecode::IntArgs &s0, const Gecode::IntArgs &c0) | |
Create and register test for d0 dimensions, m0 bins, item sizes s0, and capacities c0. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
Protected Attributes | |
int | d |
Dimension. | |
int | m |
Number of bins. | |
Gecode::IntArgs | s |
Item sizes. | |
Gecode::IntArgs | c |
Bin capacities. | |
int | il [4][8] |
Array of sufficient size for computing item loads. |
Detailed Description
Test with different bin loads and items
Definition at line 197 of file bin-packing.cpp.
Constructor & Destructor Documentation
Test::Int::BinPacking::MBPT::MBPT | ( | int | d0, | |
int | m0, | |||
const Gecode::IntArgs & | s0, | |||
const Gecode::IntArgs & | c0 | |||
) | [inline] |
Create and register test for d0 dimensions, m0 bins, item sizes s0, and capacities c0.
Definition at line 211 of file bin-packing.cpp.
Member Function Documentation
virtual bool Test::Int::BinPacking::MBPT::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Int::Test.
Definition at line 220 of file bin-packing.cpp.
virtual void Test::Int::BinPacking::MBPT::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
int Test::Int::BinPacking::MBPT::d [protected] |
Dimension.
Definition at line 200 of file bin-packing.cpp.
int Test::Int::BinPacking::MBPT::m [protected] |
Number of bins.
Definition at line 202 of file bin-packing.cpp.
Gecode::IntArgs Test::Int::BinPacking::MBPT::s [protected] |
Item sizes.
Definition at line 204 of file bin-packing.cpp.
Gecode::IntArgs Test::Int::BinPacking::MBPT::c [protected] |
Bin capacities.
Definition at line 206 of file bin-packing.cpp.
int Test::Int::BinPacking::MBPT::il[4][8] [mutable, protected] |
Array of sufficient size for computing item loads.
Definition at line 208 of file bin-packing.cpp.
The documentation for this class was generated from the following file:
- test/int/bin-packing.cpp