Scippy

SCIP

Solving Constraint Integer Programs

stptest_heurtm.c File Reference

Detailed Description

tests for Steiner tree TM (shortest path based) heuristics

Author
Daniel Rehfeldt

This file implements tests for Steiner problem TM (shortest path based) heuristics.

A list of all interface methods can be found in stptest.h.

Definition in file stptest_heurtm.c.

#include <stdio.h>
#include <assert.h>
#include "stptest.h"
#include "graph.h"
#include "solstp.h"
#include "heur_tm.h"
#include "portab.h"

Go to the source code of this file.

Functions

static SCIP_RETCODE runTmPcFull (SCIP *scip, GRAPH *graph, int *steinertree_edges)
 
static SCIP_RETCODE testTmGivesExpectedTreePcFull1 (SCIP *scip)
 
static SCIP_RETCODE testTmGivesExpectedTreePcFull2 (SCIP *scip)
 
static SCIP_RETCODE testTmGivesExpectedTreePcFull3 (SCIP *scip)
 
static SCIP_RETCODE testPrunedSolIsImprovedPc1 (SCIP *scip)
 
static SCIP_RETCODE testPrunedSolIsImprovedPc2 (SCIP *scip)
 
SCIP_RETCODE stptest_testSolPrune (SCIP *scip)
 
SCIP_RETCODE stptest_testHeurTm (SCIP *scip)
 

Function Documentation

◆ runTmPcFull()

static SCIP_RETCODE runTmPcFull ( SCIP scip,
GRAPH graph,
int *  steinertree_edges 
)
static

runs TM heuristic

Parameters
scipSCIP data structure
graphgraph data structure
steinertree_edgesthe tree

Definition at line 39 of file stptest_heurtm.c.

References GRAPH::cost, NULL, pcmode_fulltree, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPStpHeurTMRun(), STPTEST_ASSERT, and GRAPH::terms.

Referenced by testTmGivesExpectedTreePcFull1(), testTmGivesExpectedTreePcFull2(), and testTmGivesExpectedTreePcFull3().

◆ testTmGivesExpectedTreePcFull1()

◆ testTmGivesExpectedTreePcFull2()

◆ testTmGivesExpectedTreePcFull3()

◆ testPrunedSolIsImprovedPc1()

◆ testPrunedSolIsImprovedPc2()

◆ stptest_testSolPrune()

SCIP_RETCODE stptest_testSolPrune ( SCIP scip)

test pruning of solution

Parameters
scipSCIP data structure

Definition at line 423 of file stptest_heurtm.c.

References SCIP_CALL, SCIP_OKAY, testPrunedSolIsImprovedPc1(), and testPrunedSolIsImprovedPc2().

Referenced by stptest_testAll().

◆ stptest_testHeurTm()

SCIP_RETCODE stptest_testHeurTm ( SCIP scip)

tests TM heuristic

Parameters
scipSCIP data structure

Definition at line 437 of file stptest_heurtm.c.

References SCIP_CALL, SCIP_OKAY, testTmGivesExpectedTreePcFull1(), testTmGivesExpectedTreePcFull2(), and testTmGivesExpectedTreePcFull3().

Referenced by stptest_testAll().