/*!
 *  \brief Initialize the derandomized ES initialization operator.
 *  \param ioSystem System of the evolution.
 */
void GA::InitQRESVecOp::init(System& ioSystem)
{
	Beagle_StackTraceBeginM();
	GA::InitESVecOp::init(ioSystem);
	QuasiRandom::Handle lQRComponent =
	    castHandleT<QuasiRandom>(ioSystem.getComponent("QuasiRandom"));
	if(lQRComponent->getDimensionality() == 0) {
		lQRComponent->reset(mESVectorSize->getWrappedValue()+1, ioSystem.getRandomizer());
	}
	Beagle_StackTraceEndM("void GA::InitQRESVecOp::init(System&)");
}
Пример #2
0
/*!
 *  \brief Initialize the derandomized Gaussian float vector initialization operator.
 *  \param ioSystem System of the evolution.
 */
void FltVec::InitGaussianQROp::init(System& ioSystem)
{
    Beagle_StackTraceBeginM();
    FltVec::InitGaussianOp::init(ioSystem);
    QuasiRandom::Handle lQRComponent =
        castHandleT<QuasiRandom>(ioSystem.getComponent("QuasiRandom"));
    if(lQRComponent->getDimensionality() == 0) {
        lQRComponent->reset(mFloatVectorSize->getWrappedValue(), ioSystem.getRandomizer());
    }
    Beagle_StackTraceEndM();
}