pub struct MinimalNetwork { /* private fields */ }Expand description
The minimal network of a consistent STN.
For every ordered pair (i, j), Self::upper is the tightest upper bound on t_j - t_i
implied by the constraints. Every bound is tight: some schedule attains it.
Implementations§
Source§impl MinimalNetwork
impl MinimalNetwork
Sourcepub fn dispatchable(
&self,
budget: &Budget,
) -> Result<DispatchableNetwork, Error>
pub fn dispatchable( &self, budget: &Budget, ) -> Result<DispatchableNetwork, Error>
Derives a dispatchable network by dominated-edge filtering.
The result is equivalent to this network (same all-pairs distances) and dispatchable by
a Dispatcher.
§Errors
Error::BudgetExhaustedif theO(n^3)filtering does not fit the step budget.Error::OutOfMemoryif the output cannot be allocated.Error::Overflowif a distance sum overflows.
Trait Implementations§
Source§impl Clone for MinimalNetwork
impl Clone for MinimalNetwork
Source§impl Debug for MinimalNetwork
impl Debug for MinimalNetwork
impl Eq for MinimalNetwork
Source§impl PartialEq for MinimalNetwork
impl PartialEq for MinimalNetwork
impl StructuralPartialEq for MinimalNetwork
Auto Trait Implementations§
impl Forget for MinimalNetwork
impl Freeze for MinimalNetwork
impl Move for MinimalNetwork
impl RefUnwindSafe for MinimalNetwork
impl Send for MinimalNetwork
impl Sync for MinimalNetwork
impl Unpin for MinimalNetwork
impl UnsafeUnpin for MinimalNetwork
impl UnwindSafe for MinimalNetwork
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