stp.solver_scope

stp.solver_scope(s)

with solver_scope(s): add()/check()/model() and @stp functions use s.