Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimization/3.3/Interfaces/IMoveOperator.cs @ 4047

Last change on this file since 4047 was 3376, checked in by swagner, 15 years ago

Moved interfaces and classes for deep cloning from HeuristicLab.Core to HeuristicLab.Common (#975).

File size: 3.2 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using HeuristicLab.Common;
23using HeuristicLab.Core;
24
25namespace HeuristicLab.Optimization {
26  /// <summary>
27  /// The basic interface that marks all move operators.
28  /// </summary>
29  /// <remarks>
30  /// A group of move operators that belong together should derive an interface from this one
31  /// and implement the interface in each operator.<br />
32  /// In an algorithm one can thus find out all move operators that belong together, by grouping operators
33  /// according to the most specific interface derived from this interface that they implement.<br /><br />
34  /// A concrete example:<br />
35  /// You have a solution representation <c>MyRep</c> and there you have a move <c>MyRepMove</c> that you want
36  /// to make available to the friendly GUIs. So in <c>MyRep</c> you derive an interface <c>IMyRepMoveOperator</c>.<br />
37  /// Now you need to implement at least three operators that handle these moves: A MoveGenerator, a MoveMaker, and a MoveEvaluator.
38  /// Note: The MoveEvaluator should be implemented in the problem plugin if you choose to separate representation and problem.<br />
39  /// In each of these operators you implement <c>IMyRepMoveOperator</c> as well as the appropriate operator specific interface.
40  /// For a MoveGenerator that would be one of <c>IExhaustiveMoveGenerator</c>, <c>ISingleMoveGenerator</c>,
41  /// or <c>IMultiMoveGenerator</c>, for a MoveMaker that would be <c>IMoveMaker</c>, and for a MoveEvaluator that would
42  /// either be <c>ISingleObjectiveMoveEvaluator</c> or <c>IMultiObjectiveMoveEvaluator</c>.<br />
43  /// If you have this you need to make sure that an instance of all your operators are loaded in the Operators collection of your IProblem
44  /// and you can select them in the respective algorithms.<br /><br />
45  /// For Tabu Search support you will need two additional operators: A TabuChecker (e.g. derived from <see cref="TabuChecker" />),
46  /// and a TabuMaker.<br /><br />
47  /// If you decide later that you want another move, e.g. <c>MyRepMove2</c>, you would do as before and group them under
48  /// the interface <c>IMyRepMove2Operator</c>.<br /><br />
49  /// If you want to make use of multiple different moves, all your operators would need to know about all the moves that you plan
50  /// to use.<br /><br />
51  /// Take a look at the Permutation and TSP plugin to see how this looks like in real code.
52  /// </remarks>
53  public interface IMoveOperator : IOperator {
54  }
55}
Note: See TracBrowser for help on using the repository browser.