Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Tests.RoutingSolverTest Class Reference

Public Member Functions

void SimpleLambdaCallback (bool callGC)
 
void TestTransitMatrix ()
 
void TestTransitCallback ()
 
void TestMatrixDimension ()
 
void TestUnaryTransitVector ()
 
void TestUnaryTransitCallback ()
 
void TestVectorDimension ()
 

Detailed Description

Definition at line 21 of file RoutingSolverTests.cs.

Member Function Documentation

◆ SimpleLambdaCallback()

void Google.OrTools.Tests.RoutingSolverTest.SimpleLambdaCallback ( bool callGC)
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Convert from routing variable Index to distance matrix NodeIndex.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+1)-> 2 –(+1)-> 3 –(+1)-> 4 –(+4)-> 0 := +8

Definition at line 26 of file RoutingSolverTests.cs.

◆ TestMatrixDimension()

void Google.OrTools.Tests.RoutingSolverTest.TestMatrixDimension ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+1)-> 2 –(+1)-> 3 –(+1)-> 4 –(+1)-> 0 := +5

Definition at line 113 of file RoutingSolverTests.cs.

◆ TestTransitCallback()

void Google.OrTools.Tests.RoutingSolverTest.TestTransitCallback ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Convert from routing variable Index to distance matrix NodeIndex.

Define cost of each arc.

Setting first solution heuristic.

Definition at line 85 of file RoutingSolverTests.cs.

◆ TestTransitMatrix()

void Google.OrTools.Tests.RoutingSolverTest.TestTransitMatrix ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+1)-> 2 –(+1)-> 3 –(+1)-> 4 –(+1)-> 0 := +5

Definition at line 59 of file RoutingSolverTests.cs.

◆ TestUnaryTransitCallback()

void Google.OrTools.Tests.RoutingSolverTest.TestUnaryTransitCallback ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Convert from routing variable Index to distance matrix NodeIndex.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+2)-> 2 –(+3)-> 3 –(+4)-> 4 –(+5)-> 0 := +15

Definition at line 164 of file RoutingSolverTests.cs.

◆ TestUnaryTransitVector()

void Google.OrTools.Tests.RoutingSolverTest.TestUnaryTransitVector ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+1)-> 2 –(+1)-> 3 –(+1)-> 4 –(+1)-> 0 := +5

Definition at line 141 of file RoutingSolverTests.cs.

◆ TestVectorDimension()

void Google.OrTools.Tests.RoutingSolverTest.TestVectorDimension ( )
inline

Create Routing Index Manager

Create Routing Model.

Create a distance callback.

Define cost of each arc.

Setting first solution heuristic.

0 –(+1)-> 1 –(+1)-> 2 –(+1)-> 3 –(+1)-> 4 –(+1)-> 0 := +5

Definition at line 193 of file RoutingSolverTests.cs.


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