Skip to main content

Module types

Module types 

Source
Expand description

Common types used across the problemreductions library.

Structs§

And
Conjunction aggregate for universal satisfaction.
ExactI64ToF64Error
An i64 cannot cross an exact-integer f64 boundary without precision loss.
Extremum
Max
Maximum aggregate over feasible values.
Min
Minimum aggregate over feasible values.
One
The constant 1. Unit weight for unweighted problems.
Or
Disjunction aggregate for existential satisfaction.
ProblemParameters
Canonical named parameters for one concrete problem instance.
Sum
Additive fold value.

Enums§

AggregationError
Failure while combining configuration values during a solve.
ExtremumSense
NumericArithmeticError
Failure while performing checked arithmetic on a numeric value.

Constants§

MAX_EXACT_F64_INTEGER
Largest integer magnitude represented exactly by an IEEE 754 f64.

Traits§

Aggregate
Foldable aggregate values for enumerating a problem’s configuration space.
NumericSize
Bound for objective value types (i64, f64, etc.)
OptimizationValue
Trait for aggregate values that represent optimization objectives.
SolutionAggregate
Aggregate value whose optimum identifies contributing solutions.
WeightElement
Maps a weight element to its sum/metric type.

Functions§

i64_to_exact_f64
Convert an i64 to f64 only when the integer value remains exact.