Custom brancher for Peacable queens. More...
Public Member Functions | |
virtual bool | status (const Space &home) const |
Check status of brancher, return true if alternatives left. | |
virtual Gecode::Choice * | choice (Space &home) |
Return choice. | |
virtual Choice * | choice (const Space &, Archive &e) |
Return choice. | |
virtual ExecStatus | commit (Space &home, const Gecode::Choice &_c, unsigned int a) |
Perform commit for choice _c and alternative a. | |
virtual Actor * | copy (Space &home, bool share) |
Copy brancher during cloning. | |
virtual size_t | dispose (Space &) |
Delete brancher and return its size. | |
![]() | |
unsigned int | id (void) const |
Return unsigned brancher id. |
Static Public Member Functions | |
static void | post (QueenArmies &home) |
Post brancher. |
Additional Inherited Members | |
![]() | |
Brancher (Home home) | |
Constructor for creation. | |
Brancher (Space &home, bool share, Brancher &b) | |
Constructor for cloning b. |
Custom brancher for Peacable queens.
Custom brancher that tries to place white queens so that they maximise the amount of un-attacked squares that become attacked.
Definition at line 167 of file queen-armies.cpp.
|
inlinevirtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 203 of file queen-armies.cpp.
|
inlinevirtual |
|
inlinevirtual |
Perform commit for choice _c and alternative a.
Implements Gecode::Brancher.
Definition at line 243 of file queen-armies.cpp.
Copy brancher during cloning.
Implements Gecode::Actor.
Definition at line 253 of file queen-armies.cpp.
|
inlinestatic |
Post brancher.
Definition at line 257 of file queen-armies.cpp.
|
inlinevirtual |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Definition at line 261 of file queen-armies.cpp.