CS计算机代考程序代写 #——————————————–

#——————————————–
# Simulation’s runsim() interface when called directly, not through repeat()

runsim(sim::Simulation; verbose = false) = runsim(sim, verbosity(verbose))

#——————————————–
# Default interface used by WithStateSim for runsim

startstate(sim::Simulation) = nothing # manditory
maxitr(sim::Simulation) = nothing # highly recommended
isfound(state::State) = false # problem based
measure(state::State) = state # problem based
# update!(sim, state) # needed for interface – but no default meaningful