pub struct InstanceParameters {
pub num_constraints: usize,
pub objective: FunctionParameters,
pub constraint: FunctionParameters,
pub kinds: Vec<Kind>,
}Fields§
§num_constraints: usize§objective: FunctionParameters§constraint: FunctionParameters§kinds: Vec<Kind>Implementations§
Source§impl InstanceParameters
impl InstanceParameters
Sourcepub fn default_lp() -> Self
pub fn default_lp() -> Self
Example parameter for LP problem, i.e. linear objective and constraints with continuous decision variables.
Sourcepub fn default_binary() -> Self
pub fn default_binary() -> Self
Example parameter for binary problem
Sourcepub fn default_pubo() -> Self
pub fn default_pubo() -> Self
Example parameter for binary problem without constraints
Sourcepub fn default_qubo() -> Self
pub fn default_qubo() -> Self
Example parameter for binary quadratic problem without constraints (QUBO)
pub fn default_hubo() -> Self
pub fn validate(&self) -> Result<()>
pub fn smaller(&self) -> BoxedStrategy<Self>
Trait Implementations§
Source§impl Clone for InstanceParameters
impl Clone for InstanceParameters
Source§fn clone(&self) -> InstanceParameters
fn clone(&self) -> InstanceParameters
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 InstanceParameters
impl Debug for InstanceParameters
Source§impl Default for InstanceParameters
impl Default for InstanceParameters
Source§impl Hash for InstanceParameters
impl Hash for InstanceParameters
Source§impl PartialEq for InstanceParameters
impl PartialEq for InstanceParameters
impl Eq for InstanceParameters
impl StructuralPartialEq for InstanceParameters
Auto Trait Implementations§
impl Freeze for InstanceParameters
impl RefUnwindSafe for InstanceParameters
impl Send for InstanceParameters
impl Sync for InstanceParameters
impl Unpin for InstanceParameters
impl UnsafeUnpin for InstanceParameters
impl UnwindSafe for InstanceParameters
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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