Aleph-w 7.10.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 819 of file branch_and_bound_test.cc.

References engine.

◆ TEST() [2/20]

TEST ( BranchAndBoundFramework  ,
ApplyExceptionDuringMoveOrderingDoesNotCallUndo   
)

◆ TEST() [3/20]

TEST ( BranchAndBoundFramework  ,
ApplyExceptionDuringVisitedDepthFirstDoesNotCallUndo   
)

Definition at line 829 of file branch_and_bound_test.cc.

References engine.

◆ TEST() [4/20]

TEST ( BranchAndBoundFramework  ,
ArtificialMaximizationPrunesByBound   
)

◆ TEST() [5/20]

TEST ( BranchAndBoundFramework  ,
ArtificialMinimizationWorksWithBestFirst   
)

Definition at line 762 of file branch_and_bound_test.cc.

References engine, and Aleph::ExplorationPolicy::strategy.

◆ 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 ( BranchAndBoundFramework  ,
MaxDepthOnePreventsCompleteSolution   
)

◆ TEST() [15/20]

TEST ( BranchAndBoundFramework  ,
MaxExpansionsOnePreventsCompleteSolution   
)

◆ TEST() [16/20]

TEST ( BranchAndBoundFramework  ,
ObjectivePoliciesAndIncumbentConstruct   
)

Definition at line 715 of file branch_and_bound_test.cc.

◆ TEST() [17/20]

TEST ( BranchAndBoundFramework  ,
PostApplyExceptionCallsUndo   
)

Definition at line 862 of file branch_and_bound_test.cc.

References engine.

◆ TEST() [18/20]

TEST ( BranchAndBoundFramework  ,
PostApplyExceptionDuringVisitedDepthFirstCallsUndo   
)

Definition at line 881 of file branch_and_bound_test.cc.

References engine.

◆ TEST() [19/20]

TEST ( BranchAndBoundFramework  ,
StopAtFirstSolutionUsesCommonExplorationPolicy   
)

◆ TEST() [20/20]

TEST ( BranchAndBoundFramework  ,
VisitedMapSearchKeepsRecordedBoundsOnSuccess   
)

Definition at line 749 of file branch_and_bound_test.cc.

References engine.