pub struct EnumerationConfig {
pub max_models: Option<usize>,
pub project_vars: Option<HashSet<Var>>,
pub minimal_models: bool,
pub maximal_models: bool,
pub block_positive_only: bool,
}Expand description
Configuration for model enumeration
Fields§
§max_models: Option<usize>Maximum number of models to find (None = find all)
project_vars: Option<HashSet<Var>>Variables to project onto (None = all variables)
minimal_models: boolOnly find minimal models (minimum number of true literals)
maximal_models: boolOnly find maximal models (maximum number of true literals)
block_positive_only: boolBlock solutions with positive literals only (optimization)
Implementations§
Source§impl EnumerationConfig
impl EnumerationConfig
Sourcepub fn with_max_models(self, max: usize) -> Self
pub fn with_max_models(self, max: usize) -> Self
Set maximum number of models
Sourcepub fn with_projection(self, vars: HashSet<Var>) -> Self
pub fn with_projection(self, vars: HashSet<Var>) -> Self
Set projection variables
Trait Implementations§
Source§impl Clone for EnumerationConfig
impl Clone for EnumerationConfig
Source§fn clone(&self) -> EnumerationConfig
fn clone(&self) -> EnumerationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumerationConfig
impl Debug for EnumerationConfig
Source§impl Default for EnumerationConfig
impl Default for EnumerationConfig
Source§fn default() -> EnumerationConfig
fn default() -> EnumerationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnumerationConfig
impl RefUnwindSafe for EnumerationConfig
impl Send for EnumerationConfig
impl Sync for EnumerationConfig
impl Unpin for EnumerationConfig
impl UnsafeUnpin for EnumerationConfig
impl UnwindSafe for EnumerationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more