|
|
Go to the documentation of this file. 41 #define READER_NAME "stpreader" 42 #define READER_DESC "file reader for steiner tree data format" 43 #define READER_EXTENSION "stp" 45 #define DEFAULT_COMPCENTRAL 1 46 #define DEFAULT_EMITGRAPH FALSE 47 #define DEFAULT_COUNTPRESOLTIME TRUE 48 #define DEFAULT_REDUCTION 2 49 #define DEFAULT_SYMCONS 2 50 #define DEFAULT_CYCLECONS 2 51 #define DEFAULT_MINELIMS 3 52 #define DEFAULT_PRETIMELIMIT -1.0 54 #define STP_MODES "cfp" 69 assert(reader != NULL); 70 assert(strcmp(SCIPreaderGetName(reader), READER_NAME) == 0); 83 SCIP_PROBDATA* probdata; 86 *result = SCIP_DIDNOTRUN; 89 SCIP_CALL( SCIPgetCharParam(scip, "stp/mode", &mode) ); 93 if( retcode == SCIP_READERROR ) 94 return SCIP_READERROR; 98 probdata = SCIPgetProbData(scip); 99 if( SCIPgetStage(scip) == SCIP_STAGE_INIT || probdata == NULL ) 100 return SCIP_READERROR; 103 SCIPverbMessage(scip, SCIP_VERBLEVEL_HIGH, NULL, "activate pricer\n"); 105 SCIP_CALL( SCIPsetBoolParam(scip, "propagating/pseudoobj/force", TRUE) ); 107 SCIP_CALL( SCIPactivatePricer(scip, SCIPfindPricer(scip, "stp")) ); 110 *result = SCIP_SUCCESS; 130 *result = SCIP_SUCCESS; 147 SCIP_READERDATA* readerdata; 155 assert(reader != NULL); 157 SCIP_CALL( SCIPsetReaderCopy(scip, reader, readerCopyStp) ); 158 SCIP_CALL( SCIPsetReaderRead(scip, reader, readerReadStp) ); 159 SCIP_CALL( SCIPsetReaderWrite(scip, reader, readerWriteStp) ); 162 SCIP_CALL( SCIPaddIntParam(scip, 164 "Comp. Central Term: 0 disable, 1 max. degree, 2 min. dist. sum to all terminals, 3 min. max. dist., 4 min. dist to all nodes", 167 SCIP_CALL( SCIPaddIntParam(scip, 169 "Reduction: 0 disable, 1 diminish, 2 default", 172 SCIP_CALL( SCIPaddIntParam(scip, 174 "Use symmetry constraints (PC, MW): 0 never, 1 always, 2 problem specific", 177 SCIP_CALL( SCIPaddIntParam(scip, 179 "Use 2-cycle constraints (PC): 0 never, 1 always, 2 problem specific", 182 SCIP_CALL( SCIPaddIntParam(scip, 184 "minimal number of eliminations per reduction method", 187 SCIP_CALL( SCIPaddRealParam(scip, 189 "presolving time limit", 192 SCIP_CALL( SCIPaddBoolParam(scip, 193 "stp/countpresoltime", 194 "count presolving time to solving time?", 197 SCIP_CALL( SCIPaddBoolParam(scip, 202 SCIP_CALL( SCIPaddBoolParam(scip, 204 "use 'T' model", NULL, FALSE, FALSE, NULL, NULL) ); 206 SCIP_CALL( SCIPaddBoolParam(scip, 208 "print the graph before and after the presolving", NULL, FALSE, FALSE, NULL, NULL) ); 210 SCIP_CALL( SCIPaddCharParam(scip, 212 "Solving mode: 'c'ut, 'f'low ,'p'rice", 215 SCIP_CALL( SCIPaddStringParam(scip, 217 "log file in DIMACS challenge format", 221 SCIP_CALL( SCIPaddStringParam(scip, 223 "log file in DIMACS challenge format for intermediate solutions",
void SCIPwriteStp(SCIP *, const GRAPH *, FILE *, SCIP_Real)
#define DEFAULT_CYCLECONS
#define DEFAULT_COMPCENTRAL
#define DEFAULT_REDUCTION
#define DEFAULT_EMITGRAPH
Problem data for stp problem.
Steiner tree problem file reader.
GRAPH * SCIPprobdataGetGraph(SCIP_PROBDATA *probdata)
static SCIP_DECL_READERWRITE(readerWriteStp)
SCIP_Real SCIPprobdataGetOffset(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderStp(SCIP *scip)
static SCIP_DECL_READERCOPY(readerCopyStp)
SCIP_RETCODE SCIPprobdataCreate(SCIP *scip, const char *filename)
static SCIP_DECL_READERREAD(readerReadStp)
includes various files containing graph methods used for Steiner problems
#define DEFAULT_PRETIMELIMIT
#define DEFAULT_COUNTPRESOLTIME
|