Scippy

SCIP

Solving Constraint Integer Programs

stptest_reduceutils.c File Reference

Detailed Description

tests for Steiner tree reductions

Author
Daniel Rehfeldt

This file implements unit tests for Steiner problem reduction utility methods.

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

Definition in file stptest_reduceutils.c.

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

Go to the source code of this file.

Functions

static SCIP_RETCODE dcmstTest1 (SCIP *scip)
 
static SCIP_RETCODE dcmstTest2 (SCIP *scip)
 
static SCIP_RETCODE dcmstTest2b (SCIP *scip)
 
static SCIP_RETCODE dcmstTest3 (SCIP *scip)
 
static SCIP_RETCODE testStar3IsCorrect (SCIP *scip)
 
static SCIP_RETCODE testStar4IsCorrect (SCIP *scip)
 
static SCIP_RETCODE testStar4EdgeIsCorrect (SCIP *scip)
 
static SCIP_RETCODE testStar5IsCorrect (SCIP *scip)
 
static SCIP_RETCODE testBLCworksFor3Star (SCIP *scip)
 
static SCIP_RETCODE testBLCworksFor3StarAfterReduction (SCIP *scip)
 
static SCIP_RETCODE testBLCworksFor5Tree (SCIP *scip)
 
SCIP_RETCODE stptest_dcmst (SCIP *scip)
 
SCIP_RETCODE stptest_reduceStar (SCIP *scip)
 
SCIP_RETCODE stptest_reduceBLCtree (SCIP *scip)
 

Function Documentation

◆ dcmstTest1()

◆ dcmstTest2()

◆ dcmstTest2b()

◆ dcmstTest3()

◆ testStar3IsCorrect()

static SCIP_RETCODE testStar3IsCorrect ( SCIP scip)
static

◆ testStar4IsCorrect()

static SCIP_RETCODE testStar4IsCorrect ( SCIP scip)
static

◆ testStar4EdgeIsCorrect()

◆ testStar5IsCorrect()

static SCIP_RETCODE testStar5IsCorrect ( SCIP scip)
static

◆ testBLCworksFor3Star()

◆ testBLCworksFor3StarAfterReduction()

static SCIP_RETCODE testBLCworksFor3StarAfterReduction ( SCIP scip)
static

◆ testBLCworksFor5Tree()

◆ stptest_dcmst()

SCIP_RETCODE stptest_dcmst ( SCIP scip)

tests DCMST

Parameters
scipSCIP data structure

Definition at line 925 of file stptest_reduceutils.c.

References dcmstTest1(), dcmstTest2(), dcmstTest2b(), dcmstTest3(), SCIP_CALL, and SCIP_OKAY.

Referenced by stptest_testAll().

◆ stptest_reduceStar()

SCIP_RETCODE stptest_reduceStar ( SCIP scip)

tests STAR methods

Parameters
scipSCIP data structure

Definition at line 941 of file stptest_reduceutils.c.

References SCIP_CALL, SCIP_OKAY, testStar3IsCorrect(), testStar4EdgeIsCorrect(), testStar4IsCorrect(), and testStar5IsCorrect().

Referenced by stptest_testAll().

◆ stptest_reduceBLCtree()

SCIP_RETCODE stptest_reduceBLCtree ( SCIP scip)

tests bottleneck tree methods

Parameters
scipSCIP data structure

Definition at line 957 of file stptest_reduceutils.c.

References SCIP_CALL, SCIP_OKAY, testBLCworksFor3Star(), testBLCworksFor3StarAfterReduction(), and testBLCworksFor5Tree().

Referenced by stptest_testAll().