src/cover.cpp
/**
 *	Generates an order token for use in selection. This
 *	token should depend on the cover's fitness.
 */
Generates an order token for use in selection. This
token should depend on the cover's fitness.
Generates an order token for use in selection . This token should depend on the cover ' s fitness .
void Cover::gen_order_token() {
	double margin = (double)fitness_ / 2.0;
	token_ = random_double(fitness_ - margin, fitness_ + margin);
}
void Cover :: gen_order_token ( ) { double margin = ( double ) fitness_ / 2.0 ; token_ = random_double ( fitness_ - margin , fitness_ + margin ) ; }
Generates an order token for use in selection.
Generates an order token for use in selection .
// We want to have the token be close to // the actual fitness.