Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

methods for concurrent solver type plugins

Functions

SCIP_RETCODE SCIPincludeConcsolverType (SCIP *scip, const char *name, SCIP_Real prefpriodefault, SCIP_DECL_CONCSOLVERCREATEINST((*concsolvercreateinst)), SCIP_DECL_CONCSOLVERDESTROYINST((*concsolverdestroyinst)), SCIP_DECL_CONCSOLVERINITSEEDS((*concsolverinitseeds)), SCIP_DECL_CONCSOLVEREXEC((*concsolverexec)), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA((*concsolvercopysolvdata)), SCIP_DECL_CONCSOLVERSTOP((*concsolverstop)), SCIP_DECL_CONCSOLVERSYNCWRITE((*concsolversyncwrite)), SCIP_DECL_CONCSOLVERSYNCREAD((*concsolversyncread)), SCIP_DECL_CONCSOLVERTYPEFREEDATA((*concsolvertypefreedata)), SCIP_CONCSOLVERTYPEDATA *data)
 
SCIP_CONCSOLVERTYPESCIPfindConcsolverType (SCIP *scip, const char *name)
 
SCIP_CONCSOLVERTYPE ** SCIPgetConcsolverTypes (SCIP *scip)
 
int SCIPgetNConcsolverTypes (SCIP *scip)
 

Function Documentation

◆ SCIPincludeConcsolverType()

SCIP_RETCODE SCIPincludeConcsolverType ( SCIP scip,
const char *  name,
SCIP_Real  prefpriodefault,
SCIP_DECL_CONCSOLVERCREATEINST((*concsolvercreateinst))  ,
SCIP_DECL_CONCSOLVERDESTROYINST((*concsolverdestroyinst))  ,
SCIP_DECL_CONCSOLVERINITSEEDS((*concsolverinitseeds))  ,
SCIP_DECL_CONCSOLVEREXEC((*concsolverexec))  ,
SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA((*concsolvercopysolvdata))  ,
SCIP_DECL_CONCSOLVERSTOP((*concsolverstop))  ,
SCIP_DECL_CONCSOLVERSYNCWRITE((*concsolversyncwrite))  ,
SCIP_DECL_CONCSOLVERSYNCREAD((*concsolversyncread))  ,
SCIP_DECL_CONCSOLVERTYPEFREEDATA((*concsolvertypefreedata))  ,
SCIP_CONCSOLVERTYPEDATA data 
)

creates a concurrent solver type and includes it in SCIP.

Returns
SCIP_OKAY is returned if everything worked. otherwise a suitable error code is passed. see SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if scip is in one of the following stages:
Parameters
scipSCIP data structure
namename of concurrent_solver
prefpriodefaultthe default preferred priority of this concurrent solver type
datathe concurent solver type's data

Definition at line 64 of file scip_concurrent.c.

References FALSE, Scip::mem, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPconcsolverTypeCreate(), SCIPerrorMessage, SCIPfindConcsolverType(), SCIPsetIncludeConcsolverType(), Scip::set, SCIP_Mem::setmem, and TRUE.

Referenced by SCIPincludeConcurrentScipSolvers().

◆ SCIPfindConcsolverType()

SCIP_CONCSOLVERTYPE* SCIPfindConcsolverType ( SCIP scip,
const char *  name 
)

returns the concurrent solver type with the given name, or NULL if not existing

Parameters
scipSCIP data structure
namename of concurrent_solver

Definition at line 103 of file scip_concurrent.c.

References NULL, SCIPsetFindConcsolverType(), and Scip::set.

Referenced by SCIPincludeConcsolverType().

◆ SCIPgetConcsolverTypes()

SCIP_CONCSOLVERTYPE** SCIPgetConcsolverTypes ( SCIP scip)

returns the array of included concurrent solver types

Parameters
scipSCIP data structure

Definition at line 116 of file scip_concurrent.c.

References SCIP_Set::concsolvertypes, NULL, and Scip::set.

Referenced by SCIPsolveConcurrent().

◆ SCIPgetNConcsolverTypes()

int SCIPgetNConcsolverTypes ( SCIP scip)

returns the number of included concurrent solver types

Parameters
scipSCIP data structure

Definition at line 127 of file scip_concurrent.c.

References SCIP_Set::nconcsolvertypes, NULL, and Scip::set.

Referenced by SCIPsolveConcurrent().