void PointList::trial() { PointList t; t.points = points; t.shake(); if(t.totalEnergy < totalEnergy) { this->points = t.points; this->totalEnergy = t.totalEnergy; } else if( randFloat(0.0,randomAcceptSubOptimal) < 1.0) { this->points = t.points; this->totalEnergy = t.totalEnergy; cout << "randomly accepting suboptimal e=" << this->totalEnergy << endl; } }