33 const int &maxIterations) {
36 for (
int i = 0; i < maxIterations; ++i) {
37 auto proposedState = ensemble.sampleNewState(currentState,
false);
38 bool transition = this->acceptMove(
39 std::make_pair(proposedState,
40 ensemble.constructMesoState(proposedState)),
41 std::make_pair(currentState,
42 ensemble.constructMesoState(currentState)));
44 currentState = proposedState;