Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_multicommodity_test.cc File Reference

Comprehensive tests for Multi-commodity Flow algorithms. More...

#include <gtest/gtest.h>
#include <tpl_multicommodity.H>
#include <cmath>
#include <vector>
Include dependency graph for tpl_multicommodity_test.cc:

Go to the source code of this file.

Classes

class  MultiCommodityTest
 

Typedefs

using TestNode = Graph_Anode< Empty_Class >
 
using TestArc = MCF_Arc< Empty_Class, double >
 
using TestNet = MCF_Graph< TestNode, TestArc >
 

Functions

 TEST_F (MultiCommodityTest, EmptyNetwork)
 
 TEST_F (MultiCommodityTest, InsertNodesAndArcs)
 
 TEST_F (MultiCommodityTest, AddCommodity)
 
 TEST_F (MultiCommodityTest, ArcFlowPerCommodity)
 
 TEST_F (MultiCommodityTest, MultipleCommodities)
 
 TEST_F (MultiCommodityTest, SingleCommoditySingleArc)
 
 TEST_F (MultiCommodityTest, SingleCommodityDiamond)
 
 TEST_F (MultiCommodityTest, SingleCommodityParallelPaths)
 
 TEST_F (MultiCommodityTest, TwoCommoditiesCompeting)
 
 TEST_F (MultiCommodityTest, TwoCommoditiesSharedCapacity)
 
 TEST_F (MultiCommodityTest, ThreeCommodities)
 
 TEST_F (MultiCommodityTest, ZeroDemand)
 
 TEST_F (MultiCommodityTest, NoCommodities)
 
 TEST_F (MultiCommodityTest, CapacityRespected)
 
 TEST_F (MultiCommodityTest, DifferentCostsPerCommodity)
 
 TEST_F (MultiCommodityTest, MediumNetwork)
 
 TEST_F (MultiCommodityTest, MediumNetworkWithoutAPathIsInfeasible)
 
 TEST_F (MultiCommodityTest, ResultStructure)
 
 TEST_F (MultiCommodityTest, DemandsSatisfiedCountsTheFlowIntoTheSource)
 
 TEST_F (MultiCommodityTest, DemandsSatisfiedOnEachCommodity)
 
 TEST_F (MultiCommodityTest, DemandsSatisfiedByTheSolver)
 
 TEST_F (MultiCommodityTest, DemandsSatisfiedWithoutCommodities)
 
int main (int argc, char **argv)
 

Detailed Description

Comprehensive tests for Multi-commodity Flow algorithms.

Definition in file tpl_multicommodity_test.cc.

Typedef Documentation

◆ TestArc

using TestArc = MCF_Arc<Empty_Class, double>

Definition at line 47 of file tpl_multicommodity_test.cc.

◆ TestNet

using TestNet = MCF_Graph<TestNode, TestArc>

Definition at line 48 of file tpl_multicommodity_test.cc.

◆ TestNode

using TestNode = Graph_Anode<Empty_Class>

Definition at line 46 of file tpl_multicommodity_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 607 of file tpl_multicommodity_test.cc.

◆ TEST_F() [1/22]

TEST_F ( MultiCommodityTest  ,
AddCommodity   
)

Definition at line 134 of file tpl_multicommodity_test.cc.

References k, and nodes.

◆ TEST_F() [2/22]

◆ TEST_F() [3/22]

◆ TEST_F() [4/22]

TEST_F ( MultiCommodityTest  ,
DemandsSatisfiedByTheSolver   
)

Definition at line 583 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().

◆ TEST_F() [5/22]

◆ TEST_F() [6/22]

◆ TEST_F() [7/22]

TEST_F ( MultiCommodityTest  ,
DemandsSatisfiedWithoutCommodities   
)

Definition at line 601 of file tpl_multicommodity_test.cc.

◆ TEST_F() [8/22]

◆ TEST_F() [9/22]

TEST_F ( MultiCommodityTest  ,
EmptyNetwork   
)

◆ TEST_F() [10/22]

◆ TEST_F() [11/22]

◆ TEST_F() [12/22]

◆ TEST_F() [13/22]

TEST_F ( MultiCommodityTest  ,
MultipleCommodities   
)

Definition at line 174 of file tpl_multicommodity_test.cc.

References nodes.

◆ TEST_F() [14/22]

TEST_F ( MultiCommodityTest  ,
NoCommodities   
)

Definition at line 338 of file tpl_multicommodity_test.cc.

References Aleph::solve_multicommodity_flow().

◆ TEST_F() [15/22]

◆ TEST_F() [16/22]

TEST_F ( MultiCommodityTest  ,
SingleCommodityDiamond   
)

Definition at line 213 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().

◆ TEST_F() [17/22]

TEST_F ( MultiCommodityTest  ,
SingleCommodityParallelPaths   
)

Definition at line 231 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().

◆ TEST_F() [18/22]

TEST_F ( MultiCommodityTest  ,
SingleCommoditySingleArc   
)

Definition at line 196 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().

◆ TEST_F() [19/22]

TEST_F ( MultiCommodityTest  ,
ThreeCommodities   
)

Definition at line 297 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().

◆ TEST_F() [20/22]

◆ TEST_F() [21/22]

◆ TEST_F() [22/22]

TEST_F ( MultiCommodityTest  ,
ZeroDemand   
)

Definition at line 321 of file tpl_multicommodity_test.cc.

References nodes, and Aleph::solve_multicommodity_flow().