Skip to main content

SolverService

Struct SolverService 

Source
pub struct SolverService { /* private fields */ }
Expand description

Incremental SAT/MaxSAT service facade.

Implementations§

Source§

impl SolverService

Source

pub fn new(instance: SolveInstance) -> Self

Create a service for an instance.

Source

pub fn assume(&mut self, literal: Literal) -> usize

Add an assumption and return its token.

Source

pub fn retract_assumption(&mut self, token: usize) -> bool

Retract an assumption by token.

Source

pub fn solve(&self) -> SolverServiceResult

Solve with exhaustive search.

Source

pub fn solve_with_budget( &self, budget: SolverServiceBudget, ) -> SolverServiceResult

Solve with a bounded search budget.

Source

pub fn transfer_learned_clauses_to( &self, target: &mut SolverService, ) -> LearnedClauseTransfer

Transfer learned clauses to another service.

Source

pub fn trace(&self) -> SolverServiceTrace

Return current service trace.

Source

pub fn gpu_portfolio_status(&self) -> SolverPortfolioStatus

Report that the semantic-oracle facade is not the GPU portfolio path.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.