Scippy

GCG

Branch-and-Price & Column Generation for Everyone

reader_blk.h File Reference

Detailed Description

BLK file reader for structure information.

Author
Gerald Gamrath
Martin Bergner

This reader reads in a blk-file that defines the structur to be used for the decomposition. The structure is defined variable-wise, i.e., the number of blocks and the variables belonging to each block are defined. Afterwards, each constraint that has only variables of one block is added to that block, constraints having variables of more than one block go into the master. If needed, constraints can also be forced into the master, even if they could be transferred to one block.

The keywords are:

  • Presolved: to be followed by either 0 or 1 indicating that the decomposition is for the presolved or unpresolved problem
  • NBlocks: to be followed by a line giving the number of blocks
  • Block i with 1 <= i <= nblocks: to be followed by the names of the variables belonging to block i, one per line.
  • Masterconss: to be followed by names of constraints, one per line, that should go into the master, even if they only contain variables of one block and could thus be added to this block.

Definition in file reader_blk.h.

#include "scip/scip.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPincludeReaderBlk (SCIP *scip)
 
SCIP_RETCODE SCIPreadBlk (SCIP *scip, const char *filename, SCIP_RESULT *result)
 

Function Documentation

◆ SCIPincludeReaderBlk()

SCIP_RETCODE SCIPincludeReaderBlk ( SCIP *  scip)

includes the blk file reader into SCIP

includes the blk file reader in SCIP

Definition at line 1142 of file reader_blk.cpp.

References READER_DESC, READER_EXTENSION, and READER_NAME.

Referenced by SCIPincludeGcgPlugins().

◆ SCIPreadBlk()

SCIP_RETCODE SCIPreadBlk ( SCIP *  scip,
const char *  filename,
SCIP_RESULT *  result 
)
Parameters
scipSCIP data structure
filenamefull path and name of file to read, or NULL if stdin should be used
resultpointer to store the result of the file reading call

Definition at line 1160 of file reader_blk.cpp.

References BLK_MAX_LINELEN, BLK_MAX_PUSHEDTOKENS, BLK_START, BlkInput::blocknr, BlkInput::file, BlkInput::haserror, BlkInput::haspresolvesection, BlkInput::linebuf, BlkInput::linenumber, BlkInput::linepos, BlkInput::nblocks, BlkInput::npushedtokens, BlkInput::presolved, BlkInput::pushedtokens, readBLKFile(), READER_NAME, BlkInput::section, BlkInput::token, and BlkInput::tokenbuf.

Referenced by SCIP_DECL_READERREAD().