MS-RCPSP
Public Member Functions | Public Attributes | List of all members
SchedulingProblem::SimpleSchedule Class Reference

Simple representation of schedule. More...

#include <SimpleSchedule.h>

Inheritance diagram for SchedulingProblem::SimpleSchedule:
Inheritance graph
[legend]
Collaboration diagram for SchedulingProblem::SimpleSchedule:
Collaboration graph
[legend]

Public Member Functions

 SimpleSchedule (int *_ires)
 
 SimpleSchedule (SimpleSchedule *s)
 
bool operator== (SimpleSchedule s) const
 
void reset () override
 
- Public Member Functions inherited from SchedulingProblem::Schedule
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 * business
 
- Public Attributes inherited from SchedulingProblem::Schedule
int * ires
 
int * start
 

Additional Inherited Members

- Protected Member Functions inherited from SchedulingProblem::Schedule
 Schedule (int *_ires)
 
int finish_time (int i) const
 
- Protected Attributes inherited from SchedulingProblem::Schedule
int n
 
int _fitness = -1
 
Task ** tasks
 

Detailed Description

Simple representation of schedule.

This representation uses schedule builder procedure to find a feasible schedule given the resource assignment and then calculate the fitness function (project execution time) based on the found schedule.

Definition at line 15 of file SimpleSchedule.h.

Member Function Documentation

bool SchedulingProblem::SimpleSchedule::operator== ( SimpleSchedule  s) const

Checks schedule equality in terms of representation.

Definition at line 10 of file SimpleSchedule.cpp.

void SchedulingProblem::SimpleSchedule::reset ( )
overridevirtual

Reset schedule representation to random state.

Implements SchedulingProblem::Schedule.

Definition at line 124 of file SimpleSchedule.cpp.

Member Data Documentation

int* SchedulingProblem::SimpleSchedule::business

List of relative business for each resource. Used to implement LAXCrossover.

Definition at line 26 of file SimpleSchedule.h.


The documentation for this class was generated from the following files: