#include <carseq.h>
Inheritance diagram for Carseq:
Public Member Functions | |
Carseq (int nbcars, int nbclasses) | |
int | config_evaluation (Configuration *Configuration) |
int | config_verification (Configuration *Configuration) |
void | init_domaines (int nbvar, int s) |
Configuration * | create_configuration () |
void | random_configuration (Configuration *configuration) |
int | random_conflict_variable (Configuration *configuration) |
Move * | create_move () |
void | next_move (Configuration *configuration, Move *move, NeighborhoodSearch *nbhs) |
void | move_execution (Configuration *configuration, Move *move) |
int | move_evaluation (Configuration *configuration, Move *move) |
void | update_conflicting_variables (Configuration *configuration, Move *move) |
void | best_config_analysis () |
void | adjust_parameters (Configuration *configuration, int &maxneighbors, int &minneighbors) |
void | compute_var_conflict (Configuration *configuration) |
int | tabuindex (Move *move, Configuration *configuration) |
int | tabuinverseindex (Move *move, Configuration *configuration) |
void | best_config_verification () |
int | nbconflicts_partialconfig (Configuration *configuration, int length, int carclass) |
int | chose_bestpermutation (Configuration *configuration, CarseqMove *move) |
int | partialconflicts (Configuration *configuration, int var1, int var2) |
int | partialinitconflicts (Configuration *configuration, int var1, int var2) |
Public Attributes | |
int | nbopt |
int | nbclasses |
int * | maxcars |
int * | blocsize |
int * | nbcarsinclass |
int ** | optionsinclass |
int * | maxblocsize |
int | blocsizemax |
|
adjustment of the neighborhood parameters (when the size of the actual neighborhood is greater than maxneighbors) Reimplemented from CSProblem. |
|
analysis of the best configuration Reimplemented from CSProblem. |
|
verification of the best solution (its cost is recomputed) Reimplemented from OpProblem. |
|
compute the variables in conflict : rebuilding the vector of conflict variables of the configuration Reimplemented from CSProblem. |
|
evaluation of a configuration Reimplemented from OpProblem. |
|
create a configuration (the exact class depends on the problem and must defined in subclasses) Reimplemented from CSProblem. |
|
creation of 1 Move object (the class of the Move depends on the problem) : this method is implemented in subclasses Reimplemented from CSProblem. |
|
evaluation of a configuration if the move is done Reimplemented from CSProblem. |
|
move execution (modification of the current configuration) Reimplemented from CSProblem. |
|
next move to be tested (implemented in subclasses) Reimplemented from CSProblem. |
|
random assignment of the variables of a configuration Reimplemented from CSProblem. |
|
a variable taking part to a conflict in the configuration Reimplemented from CSProblem. |
|
number of car classes |
|
number of options |