pub struct SolverService { /* private fields */ }Expand description
Incremental SAT/MaxSAT service facade.
Implementations§
Source§impl SolverService
impl SolverService
Sourcepub fn new(instance: SolveInstance) -> Self
pub fn new(instance: SolveInstance) -> Self
Create a service for an instance.
Sourcepub fn retract_assumption(&mut self, token: usize) -> bool
pub fn retract_assumption(&mut self, token: usize) -> bool
Retract an assumption by token.
Sourcepub fn solve(&self) -> SolverServiceResult
pub fn solve(&self) -> SolverServiceResult
Solve with exhaustive search.
Sourcepub fn solve_with_budget(
&self,
budget: SolverServiceBudget,
) -> SolverServiceResult
pub fn solve_with_budget( &self, budget: SolverServiceBudget, ) -> SolverServiceResult
Solve with a bounded search budget.
Sourcepub fn transfer_learned_clauses_to(
&self,
target: &mut SolverService,
) -> LearnedClauseTransfer
pub fn transfer_learned_clauses_to( &self, target: &mut SolverService, ) -> LearnedClauseTransfer
Transfer learned clauses to another service.
Sourcepub fn trace(&self) -> SolverServiceTrace
pub fn trace(&self) -> SolverServiceTrace
Return current service trace.
Sourcepub fn gpu_portfolio_status(&self) -> SolverPortfolioStatus
pub fn gpu_portfolio_status(&self) -> SolverPortfolioStatus
Report that the semantic-oracle facade is not the GPU portfolio path.
Auto Trait Implementations§
impl !Freeze for SolverService
impl !RefUnwindSafe for SolverService
impl Send for SolverService
impl !Sync for SolverService
impl Unpin for SolverService
impl UnsafeUnpin for SolverService
impl UnwindSafe for SolverService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more