git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@102 331e1502-861f-0410-8da2-ba01fb791d7f
128 lines
3.4 KiB
Groff
128 lines
3.4 KiB
Groff
.TH "moFirstImprSelect" 3 "20 Dec 2006" "Version 0.1" "PARADISEO-MO" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
moFirstImprSelect \- One possible \fBmoMoveSelect\fP.
|
|
|
|
.PP
|
|
.SH SYNOPSIS
|
|
.br
|
|
.PP
|
|
\fC#include <moFirstImprSelect.h>\fP
|
|
.PP
|
|
Inherits \fBmoMoveSelect< M >< M >\fP.
|
|
.PP
|
|
.SS "Public Types"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "typedef M::EOType::Fitness \fBFitness\fP"
|
|
.br
|
|
.RI "\fIAlias for the fitness. \fP"
|
|
.in -1c
|
|
.SS "Public Member Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "virtual void \fBinit\fP (const \fBFitness\fP &__fit)"
|
|
.br
|
|
.RI "\fIProcedure which initialise the exploration. \fP"
|
|
.ti -1c
|
|
.RI "bool \fBupdate\fP (const M &__move, const typename M::EOType::Fitness &__fit)"
|
|
.br
|
|
.RI "\fIFunction that indicates if the current move has not improved the fitness. \fP"
|
|
.ti -1c
|
|
.RI "void \fBoperator()\fP (M &__move, \fBFitness\fP &__fit) throw (EmptySelection)"
|
|
.br
|
|
.RI "\fIProcedure which saved the best move and fitness. \fP"
|
|
.in -1c
|
|
.SS "Private Attributes"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "bool \fBvalid\fP"
|
|
.br
|
|
.RI "\fIAllow to know if at least one move has improved the solution. \fP"
|
|
.ti -1c
|
|
.RI "M \fBbest_move\fP"
|
|
.br
|
|
.RI "\fIBest stored movement. \fP"
|
|
.ti -1c
|
|
.RI "\fBFitness\fP \fBinit_fit\fP"
|
|
.br
|
|
.RI "\fIInitial fitness. \fP"
|
|
.ti -1c
|
|
.RI "\fBFitness\fP \fBbest_fit\fP"
|
|
.br
|
|
.RI "\fIBest stored fitness. \fP"
|
|
.in -1c
|
|
.SH "Detailed Description"
|
|
.PP
|
|
|
|
.SS "template<class M> class moFirstImprSelect< M >"
|
|
One possible \fBmoMoveSelect\fP.
|
|
|
|
The neighborhood is explored until a move enables an improvment of the current solution.
|
|
.PP
|
|
Definition at line 23 of file moFirstImprSelect.h.
|
|
.SH "Member Function Documentation"
|
|
.PP
|
|
.SS "template<class M> virtual void \fBmoFirstImprSelect\fP< M >::init (const \fBFitness\fP & __fit)\fC [inline, virtual]\fP"
|
|
.PP
|
|
Procedure which initialise the exploration.
|
|
.PP
|
|
It save the current fitness as the initial value for the fitness.
|
|
.PP
|
|
Implements \fBmoMoveSelect< M >\fP.
|
|
.PP
|
|
Definition at line 35 of file moFirstImprSelect.h.
|
|
.PP
|
|
References moFirstImprSelect< M >::init_fit, and moFirstImprSelect< M >::valid.
|
|
.SS "template<class M> bool \fBmoFirstImprSelect\fP< M >::update (const M & __move, const typename M::EOType::Fitness & __fit)\fC [inline]\fP"
|
|
.PP
|
|
Function that indicates if the current move has not improved the fitness.
|
|
.PP
|
|
If the given fitness enables an improvment, the move (\fBmoMove\fP) should be applied to the current solution.
|
|
.PP
|
|
\fBParameters:\fP
|
|
.RS 4
|
|
\fI__move\fP a move.
|
|
.br
|
|
\fI__fit\fP a fitness linked to the move.
|
|
.RE
|
|
.PP
|
|
\fBReturns:\fP
|
|
.RS 4
|
|
TRUE if the move does not improve the fitness.
|
|
.RE
|
|
.PP
|
|
|
|
.PP
|
|
Definition at line 52 of file moFirstImprSelect.h.
|
|
.PP
|
|
References moFirstImprSelect< M >::best_fit, moFirstImprSelect< M >::best_move, moFirstImprSelect< M >::init_fit, and moFirstImprSelect< M >::valid.
|
|
.SS "template<class M> void \fBmoFirstImprSelect\fP< M >::operator() (M & __move, \fBFitness\fP & __fit) throw (\fBEmptySelection\fP)\fC [inline]\fP"
|
|
.PP
|
|
Procedure which saved the best move and fitness.
|
|
.PP
|
|
\fBParameters:\fP
|
|
.RS 4
|
|
\fI__move\fP the current move (result of the procedure).
|
|
.br
|
|
\fI__fit\fP the current fitness (result of the procedure).
|
|
.RE
|
|
.PP
|
|
\fBExceptions:\fP
|
|
.RS 4
|
|
\fI\fBEmptySelection\fP\fP if no move has improved the fitness.
|
|
.RE
|
|
.PP
|
|
|
|
.PP
|
|
Definition at line 76 of file moFirstImprSelect.h.
|
|
.PP
|
|
References moFirstImprSelect< M >::best_fit, moFirstImprSelect< M >::best_move, and moFirstImprSelect< M >::valid.
|
|
|
|
.SH "Author"
|
|
.PP
|
|
Generated automatically by Doxygen for PARADISEO-MO from the source code.
|