Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

file reader for variable fixings

Author
Tobias Achterberg

This reader allows to read a file containing fixation values for variables of the current problem. Each line of the file should have format

<variable name> <value to fix>

Note that only a subset of the variables may need to appear in the file. Lines with unknown variable names are ignored. The writing functionality is currently not supported.

Note
The format is equal to the (not xml) solution format of SCIP.

Definition in file reader_fix.c.

#include "scip/pub_fileio.h"
#include "scip/pub_message.h"
#include "scip/pub_misc.h"
#include "scip/pub_reader.h"
#include "scip/pub_var.h"
#include "scip/reader_fix.h"
#include "scip/scip_general.h"
#include "scip/scip_message.h"
#include "scip/scip_numerics.h"
#include "scip/scip_prob.h"
#include "scip/scip_reader.h"
#include "scip/scip_solve.h"
#include "scip/scip_var.h"
#include <string.h>
#include <strings.h>

Go to the source code of this file.

Macros

#define READER_NAME   "fixreader"
 
#define READER_DESC   "file reader for variable fixings"
 
#define READER_EXTENSION   "fix"
 

Functions

static SCIP_RETCODE readSol (SCIP *scip, const char *filename)
 
static SCIP_DECL_READERCOPY (readerCopyFix)
 
static SCIP_DECL_READERREAD (readerReadFix)
 
SCIP_RETCODE SCIPincludeReaderFix (SCIP *scip)
 

Macro Definition Documentation

◆ READER_NAME

#define READER_NAME   "fixreader"

Definition at line 65 of file reader_fix.c.

Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERREAD(), and SCIPincludeReaderFix().

◆ READER_DESC

#define READER_DESC   "file reader for variable fixings"

Definition at line 66 of file reader_fix.c.

Referenced by SCIPincludeReaderFix().

◆ READER_EXTENSION

#define READER_EXTENSION   "fix"

Definition at line 67 of file reader_fix.c.

Referenced by SCIPincludeReaderFix().

Function Documentation

◆ readSol()

static SCIP_RETCODE readSol ( SCIP scip,
const char *  filename 
)
static

◆ SCIP_DECL_READERCOPY()

static SCIP_DECL_READERCOPY ( readerCopyFix  )
static

copy method for reader plugins (called when SCIP copies plugins)

Definition at line 208 of file reader_fix.c.

References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderFix(), and SCIPreaderGetName().

◆ SCIP_DECL_READERREAD()

static SCIP_DECL_READERREAD ( readerReadFix  )
static