Search Results for

    Show / Hide Table of Contents

    Class markov::LinearSweepModel

    Base class for implementations which wish to have full control over how an entire sweep is performed. Implementations should.

    1. Defer to accept(delta_cost) -> bool when deciding whether to apply a proposed change (this is typically the metropolis acceptance rate) 2) Call check_lowest() whenever a potentially new lowest cost is found (check_lowest, as opposed to save_lowest, does store the state as new best only if its cost is lower than the current best) 3) Keep "cost" updated to the one corresponding to the current state (at least before every call to check_lowest() and after the sweep is completed).
    Inheritance
    markov::Model
    markov::LinearSweepModel
    Inherited Members
    get_benchmark_properties
    estimate_max_cost_diff
    has_initial_configuration
    Model
    configure
    state_only_memory_estimate
    get_term_count
    get_sweep_size
    init
    get_initial_configuration_state
    render_state
    calculate_cost
    apply_transition
    estimate_min_cost_diff
    get_scale_factor
    is_empty
    set_step_limit
    is_rescaled
    state_memory_estimate
    rescale
    render
    calculate_cost_difference
    get_random_transition
    get_const_cost
    configure
    get_random_state
    match_version
    get_version
    ~BaseModel
    configure
    BaseModel
    get_identifier
    render
    ~Component
    Component
    get_status
    param
    get_class_name

    Methods

    make_linear_sweep()

    Declaration
    virtual void markov::LinearSweepModel<State>::make_linear_sweep(double&cost, State&state, std::function<bool(double)>accept, std::function<void(void)>check_lowest) const =0
    In This Article
    Back to top Generated with Doxygen and DocFX