aGrUM  0.14.2
localSearchWithTabuList_inl.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}@lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it wil be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
25 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 
27 namespace gum {
28 
29  namespace learning {
30 
37  GUM_CONSTRUCTOR(LocalSearchWithTabuList);
38  }
39 
42  const LocalSearchWithTabuList& from) :
43  ApproximationScheme(from),
45  GUM_CONS_CPY(LocalSearchWithTabuList);
46  }
47 
49  INLINE
51  LocalSearchWithTabuList&& from) :
52  ApproximationScheme(std::move(from)),
54  GUM_CONS_MOV(LocalSearchWithTabuList);
55  }
56 
59  GUM_DESTRUCTOR(LocalSearchWithTabuList);
60  }
61 
65  ApproximationScheme::operator=(from);
66  __MaxNbDecreasing = from.__MaxNbDecreasing;
67  return *this;
68  }
69 
73  ApproximationScheme::operator=(std::move(from));
74  __MaxNbDecreasing = std::move(from.__MaxNbDecreasing);
75  return *this;
76  }
77 
81  __MaxNbDecreasing = nb;
82  }
83 
86  return *this;
87  }
88 
89  } /* namespace learning */
90 
91 } /* namespace gum */
92 
93 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
void disableMinEpsilonRate()
Disable stopping criterion on epsilon rate.
LocalSearchWithTabuList()
default constructor
STL namespace.
LocalSearchWithTabuList & operator=(const LocalSearchWithTabuList &from)
copy operator
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
void disableEpsilon()
Disable stopping criterion on epsilon.
virtual ~LocalSearchWithTabuList()
destructor
void disableMaxTime()
Disable stopping criterion on timeout.
ApproximationScheme & approximationScheme()
returns the approximation policy of the learning algorithm
Size __MaxNbDecreasing
the max number of changes decreasing the score that we allow to apply
void disableMaxIter()
Disable stopping criterion on max iterations.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:45
void setMaxNbDecreasingChanges(Size nb)
set the max number of changes decreasing the score that we allow to apply