Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
branch_and_bound_test.cc File Reference
#include <memory>
#include <stdexcept>
#include <string>
#include <gtest/gtest.h>
#include <Knapsack.H>
#include <State_Search.H>
Include dependency graph for branch_and_bound_test.cc:

Go to the source code of this file.

Classes

struct  ThrowingPostApplyDomain
 
struct  ThrowingPostApplyVisitedDomain
 

Functions

 TEST (BranchAndBoundFramework, ObjectivePoliciesAndIncumbentConstruct)
 
 TEST (BranchAndBoundFramework, ArtificialMaximizationPrunesByBound)
 
 TEST (BranchAndBoundFramework, VisitedMapSearchKeepsRecordedBoundsOnSuccess)
 
 TEST (BranchAndBoundFramework, ArtificialMinimizationWorksWithBestFirst)
 
 TEST (BranchAndBoundFramework, BoundOrderedDepthFirstAndBestFirstBeatPlainBadOrder)
 
 TEST (BranchAndBoundFramework, ApplyExceptionDuringMoveOrderingDoesNotCallUndo)
 
 TEST (BranchAndBoundFramework, ApplyExceptionDuringDepthFirstExpansionDoesNotCallUndo)
 
 TEST (BranchAndBoundFramework, ApplyExceptionDuringVisitedDepthFirstDoesNotCallUndo)
 
 TEST (BranchAndBoundFramework, PostApplyExceptionCallsUndo)
 
 TEST (BranchAndBoundFramework, PostApplyExceptionDuringVisitedDepthFirstCallsUndo)
 
 TEST (BranchAndBoundFramework, StopAtFirstSolutionUsesCommonExplorationPolicy)
 
 TEST (BranchAndBoundFramework, KnapsackFractionalBoundFindsOptimal)
 
 TEST (BranchAndBoundFramework, KnapsackBestFirstMatchesDepthFirst)
 
 TEST (BranchAndBoundFramework, KnapsackFractionalBoundPrunesMoreThanWeakBound)
 
 TEST (BranchAndBoundFramework, AssignmentMinimizationFindsExpectedOptimum)
 
 TEST (BranchAndBoundFramework, AssignmentBestFirstMatchesDepthFirst)
 
 TEST (BranchAndBoundFramework, MaxDepthOnePreventsCompleteSolution)
 
 TEST (BranchAndBoundFramework, MaxExpansionsOnePreventsCompleteSolution)
 
 TEST (BranchAndBoundFramework, KnapsackCapacityZeroReturnsEmptySolution)
 
 TEST (BranchAndBoundFramework, IncrementalBoundProviderUsedForOrdering)
 

Function Documentation

◆ TEST() [1/20]

TEST ( BranchAndBoundFramework  ,
ApplyExceptionDuringDepthFirstExpansionDoesNotCallUndo   
)

Definition at line 790 of file branch_and_bound_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and engine.

◆ TEST() [2/20]

TEST ( BranchAndBoundFramework  ,
ApplyExceptionDuringMoveOrderingDoesNotCallUndo   
)

◆ TEST() [3/20]

TEST ( BranchAndBoundFramework  ,
ApplyExceptionDuringVisitedDepthFirstDoesNotCallUndo   
)

Definition at line 800 of file branch_and_bound_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and engine.

◆ TEST() [4/20]

TEST ( BranchAndBoundFramework  ,
ArtificialMaximizationPrunesByBound   
)

◆ TEST() [5/20]

TEST ( BranchAndBoundFramework  ,
ArtificialMinimizationWorksWithBestFirst   
)

◆ TEST() [6/20]

TEST ( BranchAndBoundFramework  ,
AssignmentBestFirstMatchesDepthFirst   
)

◆ TEST() [7/20]

TEST ( BranchAndBoundFramework  ,
AssignmentMinimizationFindsExpectedOptimum   
)

◆ TEST() [8/20]

TEST ( BranchAndBoundFramework  ,
BoundOrderedDepthFirstAndBestFirstBeatPlainBadOrder   
)

◆ TEST() [9/20]

TEST ( BranchAndBoundFramework  ,
IncrementalBoundProviderUsedForOrdering   
)

◆ TEST() [10/20]

◆ TEST() [11/20]

TEST ( BranchAndBoundFramework  ,
KnapsackCapacityZeroReturnsEmptySolution   
)

◆ TEST() [12/20]

TEST ( BranchAndBoundFramework  ,
KnapsackFractionalBoundFindsOptimal   
)

◆ TEST() [13/20]

TEST ( BranchAndBoundFramework  ,
KnapsackFractionalBoundPrunesMoreThanWeakBound   
)

◆ TEST() [14/20]

◆ TEST() [15/20]

◆ TEST() [16/20]

TEST ( BranchAndBoundFramework  ,
ObjectivePoliciesAndIncumbentConstruct   
)

◆ TEST() [17/20]

TEST ( BranchAndBoundFramework  ,
PostApplyExceptionCallsUndo   
)

Definition at line 833 of file branch_and_bound_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and engine.

◆ TEST() [18/20]

TEST ( BranchAndBoundFramework  ,
PostApplyExceptionDuringVisitedDepthFirstCallsUndo   
)

Definition at line 852 of file branch_and_bound_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and engine.

◆ TEST() [19/20]

◆ TEST() [20/20]

TEST ( BranchAndBoundFramework  ,
VisitedMapSearchKeepsRecordedBoundsOnSuccess   
)

Definition at line 720 of file branch_and_bound_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and engine.