Tune

class Tune : public feasst::Modify

Each state and trial has a tunable value stored in this object. Every update, check if state has changed and replace with stored values. Also, Tune the stored values.

Public Functions

Tune(argtype args = argtype())

args:

  • trials_per_tune: number of attempted trials per tune (default: 1e3).

std::string header(const Criteria &criteria, const System &system, const TrialFactory &trials) const

Return the header for writing.

void initialize(Criteria *criteria, System *system, TrialFactory *trial_factory)

Initialize and precompute before trials.

void update(Criteria *criteria, System *system, TrialFactory *trial_factory)

Perform update action.

std::string write(Criteria *criteria, System *system, TrialFactory *trial_factory)

Perform write action.