Google OR-Tools: operations_research::SimpleLinearSumAssignment Class Reference

Definition at line 56 of file assignment.h.

#include <assignment.h>

Public Types

enum  Status { OPTIMAL , INFEASIBLE , POSSIBLE_OVERFLOW }
typedef int32_t NodeIndex
typedef int32_t ArcIndex
typedef int64_t CostValue

Public Member Functions

 SimpleLinearSumAssignment ()
 SimpleLinearSumAssignment (const SimpleLinearSumAssignment &)=delete
SimpleLinearSumAssignmentoperator= (const SimpleLinearSumAssignment &)=delete
void ReserveArcs (ArcIndex num_arcs)
ArcIndex AddArcWithCost (NodeIndex left_node, NodeIndex right_node, CostValue cost)
NodeIndex NumNodes () const
ArcIndex NumArcs () const
NodeIndex LeftNode (ArcIndex arc) const
NodeIndex RightNode (ArcIndex arc) const
CostValue Cost (ArcIndex arc) const
Status Solve ()
CostValue OptimalCost () const
NodeIndex RightMate (NodeIndex left_node) const
CostValue AssignmentCost (NodeIndex left_node) const

◆ ArcIndex

◆ CostValue

◆ NodeIndex

◆ Status

Enumerator
OPTIMAL 
INFEASIBLE 
POSSIBLE_OVERFLOW 

Definition at line 106 of file assignment.h.

operations_research::SimpleLinearSumAssignment::SimpleLinearSumAssignment ( )

◆ SimpleLinearSumAssignment() [2/2]

operations_research::SimpleLinearSumAssignment::SimpleLinearSumAssignment ( const SimpleLinearSumAssignment & )
delete

◆ AddArcWithCost()

SimpleLinearSumAssignment::ArcIndex operations_research::SimpleLinearSumAssignment::AddArcWithCost ( NodeIndex left_node,
NodeIndex right_node,
CostValue cost )

◆ AssignmentCost()

CostValue operations_research::SimpleLinearSumAssignment::AssignmentCost ( NodeIndex left_node) const
inline

◆ Cost()

SimpleLinearSumAssignment::CostValue operations_research::SimpleLinearSumAssignment::Cost ( ArcIndex arc) const

◆ LeftNode()

SimpleLinearSumAssignment::NodeIndex operations_research::SimpleLinearSumAssignment::LeftNode ( ArcIndex arc) const

◆ NumArcs()

SimpleLinearSumAssignment::ArcIndex operations_research::SimpleLinearSumAssignment::NumArcs ( ) const

◆ NumNodes()

SimpleLinearSumAssignment::NodeIndex operations_research::SimpleLinearSumAssignment::NumNodes ( ) const

◆ operator=()

SimpleLinearSumAssignment & operations_research::SimpleLinearSumAssignment::operator= ( const SimpleLinearSumAssignment & )
delete

◆ OptimalCost()

CostValue operations_research::SimpleLinearSumAssignment::OptimalCost ( ) const
inline

◆ ReserveArcs()

void operations_research::SimpleLinearSumAssignment::ReserveArcs ( ArcIndex num_arcs)
inline

◆ RightMate()

NodeIndex operations_research::SimpleLinearSumAssignment::RightMate ( NodeIndex left_node) const
inline

◆ RightNode()

SimpleLinearSumAssignment::NodeIndex operations_research::SimpleLinearSumAssignment::RightNode ( ArcIndex arc) const

◆ Solve()

SimpleLinearSumAssignment::Status operations_research::SimpleLinearSumAssignment::Solve ( )

The documentation for this class was generated from the following files: