40 namespace Gecode {
namespace Int {
namespace Unary {
42 template<
class OptTask,
class PL>
47 template<
class OptTask,
class PL>
52 template<
class OptTask,
class PL>
56 for (
int i=t.
size();
i--; ) {
73 template<
class OptTask,
class PL>
79 template<
class OptTask,
class PL>
99 while ((i < n) &&
t[i].mandatory()) i++;
100 while ((j >= 0) && !
t[j].mandatory()) j--;
void init(void)
Initialize links (self-linked)
ExecStatus timetabling(Space &home, Propagator &p, TaskArray< Task > &t)
Perform time-tabling propagation.
Scheduling propagator for unary resource with mandatory tasks
Base-class for both propagators and branchers.
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
int p
Number of positive literals for node type.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
ModEventDelta med
A set of modification events (used during propagation)
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
ExecStatus subsumed(Space &home, Propagator &p, TaskArray< Task > &t)
Check tasks t for subsumption.
virtual Actor * copy(Space &home)
Perform copying during cloning.
Scheduling propagator for unary resource with optional tasks
static ExecStatus post(Home home, TaskArray< OptTask > &t)
Post propagator that schedules tasks on unary resource.
static ModEvent me(const ModEventDelta &med)
Return modification event for view type in med.
OptProp(Home home, TaskArray< OptTask > &t)
Constructor for creation.
ExecStatus edgefinding(Space &home, TaskViewArray< TaskView > &t)
Propagation has not computed fixpoint.
Gecode toplevel namespace
TaskArray< OptTask > t
Tasks.
bool optional(const BoolVarArgs &m)
int ModEventDelta
Modification event deltas.
Home class for posting propagators
IntRelType swap(IntRelType irt)
Return swapped relation type of irt.
const Gecode::ModEvent ME_BOOL_VAL
Domain operation has resulted in a value (assigned variable)
int size(void) const
Return size of array (number of elements)