the interface of the boundstore structure
Definition in file boundstore.h.
#include "scip/def.h"
#include "scip/type_syncstore.h"
#include "scip/type_scip.h"
#include "scip/type_lp.h"
#include "scip/type_retcode.h"
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPboundstoreCreate (SCIP *scip, SCIP_BOUNDSTORE **boundstore, int nvars) |
void | SCIPboundstoreFree (SCIP *scip, SCIP_BOUNDSTORE **boundstore) |
SCIP_RETCODE | SCIPboundstoreAdd (SCIP *scip, SCIP_BOUNDSTORE *boundstore, int varidx, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype) |
SCIP_RETCODE | SCIPboundstoreMerge (SCIP *scip, SCIP_BOUNDSTORE *target, SCIP_BOUNDSTORE *source) |
void | SCIPboundstoreClear (SCIP_BOUNDSTORE *boundstore) |
int | SCIPboundstoreGetChgVaridx (SCIP_BOUNDSTORE *boundstore, int i) |
SCIP_BOUNDTYPE | SCIPboundstoreGetChgType (SCIP_BOUNDSTORE *boundstore, int i) |
SCIP_Real | SCIPboundstoreGetChgVal (SCIP_BOUNDSTORE *boundstore, int i) |
int | SCIPboundstoreGetNChgs (SCIP_BOUNDSTORE *boundstore) |
SCIP_RETCODE SCIPboundstoreCreate | ( | SCIP * | scip, |
SCIP_BOUNDSTORE ** | boundstore, | ||
int | nvars | ||
) |
create bound store data structure
scip | scip main datastructure |
boundstore | pointer to store the bound store datastructure |
nvars | number of variables for which bounds may be stored |
Definition at line 30 of file boundstore.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPallocClearBlockMemoryArray, and SCIPallocMemory.
Referenced by SCIP_DECL_EVENTINIT(), and SCIPsyncstoreInit().
void SCIPboundstoreFree | ( | SCIP * | scip, |
SCIP_BOUNDSTORE ** | boundstore | ||
) |
free bound store data structure
scip | scip main datastructure |
boundstore | pointer to the bound store datastructure |
Definition at line 51 of file boundstore.c.
References NULL, SCIPfreeBlockMemoryArray, SCIPfreeBlockMemoryArrayNull, and SCIPfreeMemory.
Referenced by SCIP_DECL_EVENTEXIT(), and SCIPsyncstoreExit().
SCIP_RETCODE SCIPboundstoreAdd | ( | SCIP * | scip, |
SCIP_BOUNDSTORE * | boundstore, | ||
int | varidx, | ||
SCIP_Real | newbound, | ||
SCIP_BOUNDTYPE | boundtype | ||
) |
add bound change to bound store data structure
scip | scip main datastructure |
boundstore | the bound store datastructure |
varidx | variable index of bound change, must be smaller than the number of variables given during creation of bound store |
newbound | bound value of variable |
boundtype | type of new bound |
Definition at line 66 of file boundstore.c.
References SCIP_BoundStore::bndchg, SCIP_BoundStore::bndchgsize, SCIP_BoundStore::bndpos, BoundChg::boundtype, SCIP_BoundStore::nbndchg, BoundChg::newbound, NULL, BoundPos::pos, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIPensureBlockMemoryArray, and BoundChg::varidx.
Referenced by SCIP_DECL_EVENTEXEC(), and SCIPboundstoreMerge().
SCIP_RETCODE SCIPboundstoreMerge | ( | SCIP * | scip, |
SCIP_BOUNDSTORE * | target, | ||
SCIP_BOUNDSTORE * | source | ||
) |
add all bound changes of source to target
scip | scip main datastructure for target boundstore |
target | the bound store datastructure where the bounds get merged in |
source | the bound store datastructure from which the bounds get merged in |
Definition at line 115 of file boundstore.c.
References SCIP_BoundStore::bndchg, BoundChg::boundtype, SCIP_BoundStore::nbndchg, BoundChg::newbound, NULL, SCIP_CALL, SCIP_OKAY, SCIPboundstoreAdd(), and BoundChg::varidx.
Referenced by SCIPsyncdataAddBoundChanges().
void SCIPboundstoreClear | ( | SCIP_BOUNDSTORE * | boundstore | ) |
remove all boundchanges from bound store
boundstore | the bound store datastructure |
Definition at line 137 of file boundstore.c.
References BMSclearMemoryArray, SCIP_BoundStore::bndpos, SCIP_BoundStore::nbndchg, NULL, and SCIP_BoundStore::nvars.
Referenced by SCIPeventGlobalbndClearBoundChanges(), and SCIPsyncstoreStartSync().
int SCIPboundstoreGetChgVaridx | ( | SCIP_BOUNDSTORE * | boundstore, |
int | i | ||
) |
gets variable index of the i'th stored boundchange
boundstore | the bound store datastructure |
i | the index of the bound change |
Definition at line 152 of file boundstore.c.
References SCIP_BoundStore::bndchg, NULL, and BoundChg::varidx.
Referenced by SCIP_DECL_CONCSOLVERSYNCREAD().
SCIP_BOUNDTYPE SCIPboundstoreGetChgType | ( | SCIP_BOUNDSTORE * | boundstore, |
int | i | ||
) |
gets the type of the i'th stored boundchange
boundstore | the bound store datastructure |
i | the index of the bound change |
Definition at line 164 of file boundstore.c.
References SCIP_BoundStore::bndchg, BoundChg::boundtype, and NULL.
Referenced by SCIP_DECL_CONCSOLVERSYNCREAD().
SCIP_Real SCIPboundstoreGetChgVal | ( | SCIP_BOUNDSTORE * | boundstore, |
int | i | ||
) |
gets the bound value of the i'th stored boundchange
boundstore | the bound store datastructure |
i | the index of the bound change |
Definition at line 176 of file boundstore.c.
References SCIP_BoundStore::bndchg, BoundChg::newbound, and NULL.
Referenced by SCIP_DECL_CONCSOLVERSYNCREAD().
int SCIPboundstoreGetNChgs | ( | SCIP_BOUNDSTORE * | boundstore | ) |
gets the number of stored bound changes
boundstore | the bound store datastructure |
Definition at line 188 of file boundstore.c.
References SCIP_BoundStore::nbndchg, and NULL.
Referenced by SCIP_DECL_CONCSOLVERSYNCREAD(), SCIPconcsolverSync(), and SCIPsyncstoreGetLastNBounds().