Skip to documentation
SLOP

tiny.smt.RestartPolicy

Reference tiny.smt RestartPolicy

Defined in sat.types.

The restart schedule: the search goes back to the first decision after a conflict count that starts at first_conflict_interval and multiplies by growth after each restart.

API (3)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssat.typesRestartPolicy
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/smt/src/sat/types.zig:100

zig
/// The restart schedule: the search goes back to the first decision after a conflict count that/// starts at `first_conflict_interval` and multiplies by `growth` after each restart. A caller/// passes one to `Solver.setRestartPolicy` to change the schedule, for example to restart after/// every conflict. The default restarts after 128 conflicts, then after 256 more, then 512,/// doubling each time. The solver keeps its learned clauses across a restart. The count starts over/// at each solve, and a restart happens only while a decision is in force.pub const RestartPolicy = struct {    /// Conflicts before the first restart of each solve, 128 by default. Zero turns restarts off.    first_conflict_interval: usize = 128,    /// The factor the interval grows by after each restart, 2 by default. A factor of 0 or 1 keeps    /// the interval fixed, and the interval stops growing at the largest `usize`.    growth: usize = 2,    /// Returns a policy that turns restarts off: an interval of 0 and a growth of 1. A caller that    /// turns restarts off passes it to `Solver.setRestartPolicy`.    pub fn disabled() RestartPolicy {        return .{ .first_conflict_interval = 0, .growth = 1 };    }};

Source: lib/smt/src/root.zig:109

zig
pub const RestartPolicy = sat.RestartPolicy;

Also reachable as

sat.RestartPolicy, sat.solver.RestartPolicy.

Audit

Definitions2
Public names8
Members2
Version26.7.0
Revisiondaab053ee433