pub struct AssignmentProblem {
pub costs: Vec<Vec<Cost>>,
pub num_agents: usize,
pub num_tasks: usize,
}Expand description
An assignment problem instance
Fields§
§costs: Vec<Vec<Cost>>Cost matrix: costs[agent][task]
num_agents: usizeNumber of agents
num_tasks: usizeNumber of tasks
Implementations§
Trait Implementations§
Source§impl Clone for AssignmentProblem
impl Clone for AssignmentProblem
Source§fn clone(&self) -> AssignmentProblem
fn clone(&self) -> AssignmentProblem
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 AssignmentProblem
impl Debug for AssignmentProblem
Source§impl<'de> Deserialize<'de> for AssignmentProblem
impl<'de> Deserialize<'de> for AssignmentProblem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssignmentProblem
impl RefUnwindSafe for AssignmentProblem
impl Send for AssignmentProblem
impl Sync for AssignmentProblem
impl Unpin for AssignmentProblem
impl UnsafeUnpin for AssignmentProblem
impl UnwindSafe for AssignmentProblem
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