SCIP Doxygen Documentation
Loading...
Searching...
No Matches

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, NULL, SCIP_CALL, SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA, SCIP_DECL_CONCSOLVERCREATEINST, SCIP_DECL_CONCSOLVERDESTROYINST, SCIP_DECL_CONCSOLVEREXEC, SCIP_DECL_CONCSOLVERINITSEEDS, SCIP_DECL_CONCSOLVERSTOP, SCIP_DECL_CONCSOLVERSYNCREAD, SCIP_DECL_CONCSOLVERSYNCWRITE, SCIP_DECL_CONCSOLVERTYPEFREEDATA, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPcheckStage(), SCIPconcsolverTypeCreate(), SCIPerrorMessage, SCIPfindConcsolverType(), SCIPsetIncludeConcsolverType(), 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 assert(), NULL, and SCIPsetFindConcsolverType().

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 assert(), and NULL.

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 assert(), and NULL.

Referenced by SCIPsolveConcurrent().