Skip to main content

VariableDomain

Trait VariableDomain 

Source
pub trait VariableDomain:
    'static
    + Clone
    + Debug
    + Send
    + Sync {
    const NAME: &'static str;

    // Required methods
    fn default_variable() -> IntegerVariable;
    fn validate_variables(
        variables: &[IntegerVariable],
    ) -> Result<(), ConstructionError>;
}
Expand description

Static certificate for a homogeneous ILP variable domain.

Required Associated Constants§

Source

const NAME: &'static str

Name used by the registered variant dimension.

Required Methods§

Source

fn default_variable() -> IntegerVariable

Default stored variable used by homogeneous formulations.

Source

fn validate_variables( variables: &[IntegerVariable], ) -> Result<(), ConstructionError>

Validate that stored bounds satisfy this static certificate.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VariableDomain for bool

Source§

impl VariableDomain for i64

Implementors§