pub struct QueueingSystem {
pub arrival_rate: f64,
pub service_rate: f64,
pub num_servers: usize,
}Expand description
An M/M/c queueing model.
Fields§
§arrival_rate: f64Arrival rate λ (customers per unit time).
service_rate: f64Service rate μ per server (customers per unit time).
num_servers: usizeNumber of servers c.
Implementations§
Source§impl QueueingSystem
impl QueueingSystem
Sourcepub fn utilization(&self) -> f64
pub fn utilization(&self) -> f64
Traffic intensity ρ = λ / (c μ).
Sourcepub fn mean_queue_length_m_m_1(&self) -> Option<f64>
pub fn mean_queue_length_m_m_1(&self) -> Option<f64>
Mean number of customers in the M/M/1 queue: L = ρ / (1 − ρ).
Returns None if the system is unstable or has more than one server.
Sourcepub fn mean_waiting_time(&self) -> Option<f64>
pub fn mean_waiting_time(&self) -> Option<f64>
Mean sojourn time W = L / λ (Little’s law), for M/M/1.
Returns None if the system is unstable or has more than one server.
Trait Implementations§
Source§impl Clone for QueueingSystem
impl Clone for QueueingSystem
Source§fn clone(&self) -> QueueingSystem
fn clone(&self) -> QueueingSystem
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 moreAuto Trait Implementations§
impl Freeze for QueueingSystem
impl RefUnwindSafe for QueueingSystem
impl Send for QueueingSystem
impl Sync for QueueingSystem
impl Unpin for QueueingSystem
impl UnsafeUnpin for QueueingSystem
impl UnwindSafe for QueueingSystem
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