Пример #1
0
void Simulation::Clear(){
	SetDefaultParams();
	food.clear();
	critter.clear();
	frameCount = 0;
	foodCount = 0;
	critCount = 0;
	critSelect = 0; critSelected = false;
}
Пример #2
0
void BaseAlgorithm::Init(bool testState)
{
	_inTest = testState;
	InitResult();
	if (_inTest)
	{
		SetDefaultParams();
		InitProcessData();
	}
	_offset = Point(0,0);
}
Пример #3
0
	void RBroydenFamily::Initialization(const Problem *prob, const Variable *initialx, LinearOPE *initialH)
	{
		SetProbX(prob, initialx, initialH);
		SetDefaultParams();
	};