MS-RCPSP
|
Representation of schedule that uses task priorities. More...
#include <PrioSchedule.h>
Public Member Functions | |
PrioSchedule (int *_ires, int *_prio) | |
PrioSchedule (PrioSchedule *s) | |
int | compute_fitness () override |
bool | operator== (PrioSchedule s) const |
void | reset () override |
![]() | |
void | printState (bool short_output) |
void | writeToFile (FILE *stream) |
int | size () |
int | fitness () |
int | resource (int i) const |
int | max_res_count (int i) const |
Public Attributes | |
int * | prio |
int * | business |
![]() | |
int * | ires |
int * | start |
Additional Inherited Members | |
![]() | |
Schedule (int *_ires) | |
int | finish_time (int i) const |
![]() | |
int | n |
int | _fitness = -1 |
Task ** | tasks |
Representation of schedule that uses task priorities.
This schedule representation introduces task priorities, so that when a resource can execute several tasks at some point, he always executes the task with the biggest priority, as opposed to executing random task as in SimpleSchedule.
Definition at line 21 of file PrioSchedule.h.
|
overridevirtual |
Computes fitness and writes it to Schedule::_fitness cache variable.
Implements SchedulingProblem::Schedule.
Definition at line 119 of file PrioSchedule.cpp.
bool SchedulingProblem::PrioSchedule::operator== | ( | PrioSchedule | s | ) | const |
Checks schedule equality in terms of representation.
Definition at line 13 of file PrioSchedule.cpp.
|
overridevirtual |
Reset schedule representation to random state.
Implements SchedulingProblem::Schedule.
Definition at line 137 of file PrioSchedule.cpp.
int* SchedulingProblem::PrioSchedule::business |
Businesses of resources. Used to implement LAXCrossover.
Definition at line 34 of file PrioSchedule.h.
int* SchedulingProblem::PrioSchedule::prio |
Task priorities.
Definition at line 31 of file PrioSchedule.h.