#include <FlowShopEval.h>
Inheritance diagram for FlowShopEval:

Public Member Functions | |
| FlowShopEval (unsigned int _M, unsigned int _N, const std::vector< std::vector< unsigned int > > &_p, const std::vector< unsigned int > &_d) | |
| Ctor. | |
| void | operator() (FlowShop &_flowshop) |
| computation of the multi-objective evaluation of a FlowShop object | |
Private Member Functions | |
| double | makespan (const FlowShop &_flowshop) |
| computation of the makespan | |
| double | tardiness (const FlowShop &_flowshop) |
| computation of the tardiness | |
| std::vector< std::vector< unsigned int > > | completionTime (const FlowShop &_flowshop) |
| computation of the completion times of a scheduling (for each job on each machine) C[i][j] = completion of the jth job of the scheduling on the ith machine | |
Private Attributes | |
| unsigned int | M |
| number of machines | |
| unsigned int | N |
| number of jobs | |
|
std::vector< std::vector< unsigned int > > | p |
| p[i][j] = processing time of job j on machine i | |
| std::vector< unsigned int > | d |
| d[j] = due-date of the job j | |
Definition at line 23 of file FlowShopEval.h.
| FlowShopEval::FlowShopEval | ( | unsigned int | _M, | |
| unsigned int | _N, | |||
| const std::vector< std::vector< unsigned int > > & | _p, | |||
| const std::vector< unsigned int > & | _d | |||
| ) |
Ctor.
| _M | the number of machines | |
| _N | the number of jobs to schedule | |
| _p | the processing times | |
| _d | the due dates |
Definition at line 16 of file FlowShopEval.cpp.
| void FlowShopEval::operator() | ( | FlowShop & | _flowshop | ) |
computation of the multi-objective evaluation of a FlowShop object
| _flowshop | the FlowShop object to evaluate |
Definition at line 21 of file FlowShopEval.cpp.
References makespan(), MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVector(), and tardiness().
| double FlowShopEval::makespan | ( | const FlowShop & | _flowshop | ) | [private] |
computation of the makespan
| _flowshop | the genotype to evaluate |
Definition at line 31 of file FlowShopEval.cpp.
References completionTime(), M, and N.
Referenced by operator()().
| double FlowShopEval::tardiness | ( | const FlowShop & | _flowshop | ) | [private] |
computation of the tardiness
| _flowshop | the genotype to evaluate |
Definition at line 40 of file FlowShopEval.cpp.
References completionTime(), d, M, and N.
Referenced by operator()().
| std::vector< std::vector< unsigned int > > FlowShopEval::completionTime | ( | const FlowShop & | _flowshop | ) | [private] |
computation of the completion times of a scheduling (for each job on each machine) C[i][j] = completion of the jth job of the scheduling on the ith machine
| _flowshop | the genotype to evaluate |
Definition at line 53 of file FlowShopEval.cpp.
Referenced by makespan(), and tardiness().
1.4.7