SCIP Doxygen Documentation
Loading...
Searching...
No Matches
bandit_exp3ix.h File Reference

Detailed Description

internal methods for Exp.3-IX bandit algorithm

Author
Antonia Chmiela

Definition in file bandit_exp3ix.h.

#include "blockmemshell/memory.h"
#include "scip/def.h"
#include "scip/type_bandit.h"
#include "scip/type_retcode.h"
#include "scip/type_scip.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPincludeBanditvtableExp3IX (SCIP *scip)
 SCIP_DECL_BANDITFREE (SCIPbanditFreeExp3IX)
 SCIP_DECL_BANDITSELECT (SCIPbanditSelectExp3IX)
 SCIP_DECL_BANDITUPDATE (SCIPbanditUpdateExp3IX)
 SCIP_DECL_BANDITRESET (SCIPbanditResetExp3IX)
SCIP_RETCODE SCIPbanditCreateExp3IX (BMS_BLKMEM *blkmem, BMS_BUFMEM *bufmem, SCIP_BANDITVTABLE *vtable, SCIP_BANDIT **exp3ix, SCIP_Real *priorities, int nactions, unsigned int initseed)

Function Documentation

◆ SCIPincludeBanditvtableExp3IX()

SCIP_RETCODE SCIPincludeBanditvtableExp3IX ( SCIP * scip)

include virtual function table for Exp.3-IX bandit algorithms

Parameters
scipSCIP data structure

Definition at line 293 of file bandit_exp3ix.c.

References assert(), BANDIT_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeBanditvtable(), and SCIPincludeBanditvtableExp3IX().

Referenced by SCIPincludeBanditvtableExp3IX(), and SCIPincludeCorePlugins().

◆ SCIP_DECL_BANDITFREE()

SCIP_DECL_BANDITFREE ( SCIPbanditFreeExp3IX )

callback to free bandit specific data structures

Definition at line 65 of file bandit_exp3ix.c.

References assert(), BMSfreeBlockMemory, BMSfreeBlockMemoryArray, NULL, SCIP_DECL_BANDITFREE, SCIP_OKAY, SCIPbanditGetData(), SCIPbanditGetNActions(), and SCIPbanditSetData().

◆ SCIP_DECL_BANDITSELECT()

SCIP_DECL_BANDITSELECT ( SCIPbanditSelectExp3IX )

◆ SCIP_DECL_BANDITUPDATE()

SCIP_DECL_BANDITUPDATE ( SCIPbanditUpdateExp3IX )

update callback for bandit algorithm

Definition at line 148 of file bandit_exp3ix.c.

References assert(), NULL, SCIP_DECL_BANDITUPDATE, SCIP_OKAY, SCIP_Real, SCIPbanditGetData(), SCIPbanditGetNActions(), SCIPcomputeGamma(), and selection.

◆ SCIP_DECL_BANDITRESET()

SCIP_DECL_BANDITRESET ( SCIPbanditResetExp3IX )

reset callback for bandit algorithm

Definition at line 196 of file bandit_exp3ix.c.

References assert(), i, NULL, SCIP_DECL_BANDITRESET, SCIP_OKAY, SCIP_Real, SCIPbanditGetData(), and SCIPbanditGetNActions().

◆ SCIPbanditCreateExp3IX()

SCIP_RETCODE SCIPbanditCreateExp3IX ( BMS_BLKMEM * blkmem,
BMS_BUFMEM * bufmem,
SCIP_BANDITVTABLE * vtable,
SCIP_BANDIT ** exp3ix,
SCIP_Real * priorities,
int nactions,
unsigned int initseed )

direct bandit creation method for the core where no SCIP pointer is available

Parameters
blkmemblock memory data structure
bufmembuffer memory
vtablevirtual function table for callback functions of Exp.3-IX
exp3ixpointer to store bandit algorithm
prioritiesnonnegative priorities for each action, or NULL if not needed
nactionsthe positive number of actions for this bandit algorithm
initseedinitial random seed

Definition at line 230 of file bandit_exp3ix.c.

References assert(), BMSallocBlockMemory, BMSallocBlockMemoryArray, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPbanditCreate(), and SCIPbanditCreateExp3IX().

Referenced by SCIPbanditCreateExp3IX(), and SCIPcreateBanditExp3IX().