Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

operations_research::NetworkRoutingData Class Reference

Data Contains problem data. More...

List of all members.

Public Member Functions

 NetworkRoutingData ()
const string & name () const
 Name of the problem.
int num_nodes () const
 Properties of the model.
int num_arcs () const
int num_demands () const
int Capacity (int node1, int node2) const
 Returns the capacity of an arc, and 0 if the arc is not defined.
int Demand (int source, int destination) const
 Returns the demand between the source and the destination, and 0 if there are no demands between the source and the destination.
void set_num_nodes (int num_nodes)
 External building API.
void AddArc (int node1, int node2, int capacity)
void AddDemand (int source, int destination, int traffic)
void set_name (const string &name)
void set_max_capacity (int max_capacity)
void set_fixed_charge_cost (int cost)


Detailed Description

Data Contains problem data.

It assumes capacities are symmetrical: (capacity(i->j) == capacity(j->i)). Demands are not symmetrical.

Definition at line 102 of file network_routing.cc.


Constructor & Destructor Documentation

operations_research::NetworkRoutingData::NetworkRoutingData (  )  [inline]

Definition at line 104 of file network_routing.cc.


Member Function Documentation

const string& operations_research::NetworkRoutingData::name (  )  const [inline]

Name of the problem.

Definition at line 111 of file network_routing.cc.

int operations_research::NetworkRoutingData::num_nodes (  )  const [inline]

Properties of the model.

Definition at line 114 of file network_routing.cc.

int operations_research::NetworkRoutingData::num_arcs (  )  const [inline]

Definition at line 116 of file network_routing.cc.

int operations_research::NetworkRoutingData::num_demands (  )  const [inline]

Definition at line 118 of file network_routing.cc.

int operations_research::NetworkRoutingData::Capacity ( int  node1,
int  node2 
) const [inline]

Returns the capacity of an arc, and 0 if the arc is not defined.

Definition at line 121 of file network_routing.cc.

int operations_research::NetworkRoutingData::Demand ( int  source,
int  destination 
) const [inline]

Returns the demand between the source and the destination, and 0 if there are no demands between the source and the destination.

Definition at line 130 of file network_routing.cc.

void operations_research::NetworkRoutingData::set_num_nodes ( int  num_nodes  )  [inline]

External building API.

Definition at line 136 of file network_routing.cc.

void operations_research::NetworkRoutingData::AddArc ( int  node1,
int  node2,
int  capacity 
) [inline]

Definition at line 137 of file network_routing.cc.

void operations_research::NetworkRoutingData::AddDemand ( int  source,
int  destination,
int  traffic 
) [inline]

Definition at line 141 of file network_routing.cc.

void operations_research::NetworkRoutingData::set_name ( const string &  name  )  [inline]

Definition at line 144 of file network_routing.cc.

void operations_research::NetworkRoutingData::set_max_capacity ( int  max_capacity  )  [inline]

Definition at line 145 of file network_routing.cc.

void operations_research::NetworkRoutingData::set_fixed_charge_cost ( int  cost  )  [inline]

Definition at line 146 of file network_routing.cc.


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