Main Page | Class Hierarchy | Class List | File List | Class Members

Latinsquare Class Reference

#include <latinsquare.h>

Inheritance diagram for Latinsquare:

CSProblem OpProblem List of all members.

Public Member Functions

 Latinsquare (int size)
int config_evaluation (Configuration *Configuration)
void fullincr_update_conflicts (FullincrCSPConfiguration *configuration, Move *move)
void init_domaines (int nbvar, int s)
Configurationcreate_configuration ()
void move_execution (Configuration *configuration, Move *move)
int move_evaluation (Configuration *configuration, Move *move)
Movecreate_move ()
void next_move (Configuration *configuration, Move *move, NeighborhoodSearch *nbhs)
void random_configuration (Configuration *configuration)
void compute_var_conflict (Configuration *configuration)
void adjust_parameters (Configuration *configuration, int &maxneighbors, int &minneighbors)

Public Attributes

int squaresize

Detailed Description

Spatially Balanced latin square problem (cf CPAIOR'04)


Member Function Documentation

void Latinsquare::adjust_parameters Configuration configuration,
int &  maxneighbors,
int &  minneighbors
[virtual]
 

adjustment of the neighborhood parameters (when the size of the actual neighborhood is greater than maxneighbors)

Reimplemented from CSProblem.

void Latinsquare::compute_var_conflict Configuration configuration  )  [virtual]
 

compute the variables in conflict : rebuilding the vector of conflict variables of the configuration

Reimplemented from CSProblem.

int Latinsquare::config_evaluation Configuration configuration  )  [virtual]
 

evaluation of a configuration

Reimplemented from OpProblem.

Configuration * Latinsquare::create_configuration  )  [virtual]
 

create a configuration (the exact class depends on the problem and must defined in subclasses)

Reimplemented from CSProblem.

Move * Latinsquare::create_move  )  [virtual]
 

creation of 1 Move object (the class of the Move depends on the problem) : this method is implemented in subclasses

Reimplemented from CSProblem.

void Latinsquare::fullincr_update_conflicts FullincrCSPConfiguration configuration,
Move move
[virtual]
 

update of the conflict data structure (case FullincrCSPConfiguration)

Reimplemented from OpProblem.

int Latinsquare::move_evaluation Configuration configuration,
Move move
[virtual]
 

evaluation of a configuration if the move is done

Reimplemented from CSProblem.

void Latinsquare::move_execution Configuration configuration,
Move move
[virtual]
 

move execution (modification of the current configuration)

Reimplemented from CSProblem.

void Latinsquare::next_move Configuration configuration,
Move move,
NeighborhoodSearch nbhs
[virtual]
 

next move to be tested (implemented in subclasses)

Reimplemented from CSProblem.

void Latinsquare::random_configuration Configuration configuration  )  [virtual]
 

random assignment of the variables of a configuration

Reimplemented from CSProblem.


The documentation for this class was generated from the following files:
Generated on Wed Sep 15 17:58:39 2004 for INCOP by doxygen 1.3.5