A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scip.zib.de/doc/html/group__PublicMemoryMethods.php below:

SCIP Doxygen Documentation: Memory Management

methods and macros to use the SCIP memory management

See also
Using the memory functions of SCIP for more information
#define  SCIPallocMemory(scip, ptr)   #define  SCIPallocClearMemory(scip, ptr)   #define  SCIPallocMemoryArray(scip, ptr, num)   #define  SCIPallocClearMemoryArray(scip, ptr, num)   #define  SCIPallocMemorySize(scip, ptr, size)   #define  SCIPreallocMemoryArray(scip, ptr, newnum)   #define  SCIPreallocMemorySize(scip, ptr, newsize)   #define  SCIPduplicateMemory(scip, ptr, source)   #define  SCIPduplicateMemoryArray(scip, ptr, source, num)   #define  SCIPfreeMemory(scip, ptr)   BMSfreeMemory(ptr)   #define  SCIPfreeMemoryNull(scip, ptr)   BMSfreeMemoryNull(ptr)   #define  SCIPfreeMemoryArray(scip, ptr)   BMSfreeMemoryArray(ptr)   #define  SCIPfreeMemoryArrayNull(scip, ptr)   BMSfreeMemoryArrayNull(ptr)   #define  SCIPfreeMemorySize(scip, ptr)   BMSfreeMemorySize(ptr)   #define  SCIPfreeMemorySizeNull(scip, ptr)   BMSfreeMemorySizeNull(ptr)   #define  SCIPallocBlockMemory(scip, ptr)   #define  SCIPallocClearBlockMemory(scip, ptr)   #define  SCIPallocBlockMemoryArray(scip, ptr, num)   #define  SCIPallocBlockMemorySize(scip, ptr, size)   #define  SCIPallocClearBlockMemoryArray(scip, ptr, num)   #define  SCIPreallocBlockMemoryArray(scip, ptr, oldnum, newnum)   #define  SCIPreallocBlockMemorySize(scip, ptr, oldsize, newsize)   #define  SCIPduplicateBlockMemory(scip, ptr, source)   #define  SCIPduplicateBlockMemoryArray(scip, ptr, source, num)   #define  SCIPensureBlockMemoryArray(scip, ptr, arraysizeptr, minsize)   ( (SCIPensureBlockMemoryArray_call((scip), (void**)(ptr), sizeof(**(ptr)), (arraysizeptr), (minsize))) )   #define  SCIPfreeBlockMemory(scip, ptr)   BMSfreeBlockMemory(SCIPblkmem(scip), (ptr))   #define  SCIPfreeBlockMemoryNull(scip, ptr)   BMSfreeBlockMemoryNull(SCIPblkmem(scip), (ptr))   #define  SCIPfreeBlockMemoryArray(scip, ptr, num)   BMSfreeBlockMemoryArray(SCIPblkmem(scip), (ptr), (num))   #define  SCIPfreeBlockMemoryArrayNull(scip, ptr, num)   BMSfreeBlockMemoryArrayNull(SCIPblkmem(scip), (ptr), (num))   #define  SCIPfreeBlockMemorySize(scip, ptr, size)   BMSfreeBlockMemorySize(SCIPblkmem(scip), (ptr), (size))   #define  SCIPfreeBlockMemorySizeNull(scip, ptr, size)   BMSfreeBlockMemorySizeNull(SCIPblkmem(scip), (ptr), (size))   #define  SCIPallocBuffer(scip, ptr)   #define  SCIPallocBufferArray(scip, ptr, num)   #define  SCIPallocClearBufferArray(scip, ptr, num)   #define  SCIPreallocBufferArray(scip, ptr, num)   #define  SCIPduplicateBuffer(scip, ptr, source)   #define  SCIPduplicateBufferArray(scip, ptr, source, num)   #define  SCIPfreeBuffer(scip, ptr)   BMSfreeBufferMemorySize(SCIPbuffer(scip), (ptr))   #define  SCIPfreeBufferNull(scip, ptr)   BMSfreeBufferMemoryNull(SCIPbuffer(scip), (ptr))   #define  SCIPfreeBufferArray(scip, ptr)   BMSfreeBufferMemoryArray(SCIPbuffer(scip), (ptr))   #define  SCIPfreeBufferArrayNull(scip, ptr)   BMSfreeBufferMemoryArrayNull(SCIPbuffer(scip), (ptr))   #define  SCIPallocCleanBuffer(scip, ptr)   #define  SCIPallocCleanBufferArray(scip, ptr, num)   #define  SCIPfreeCleanBuffer(scip, ptr)   BMSfreeBufferMemorySize(SCIPcleanbuffer(scip), (ptr))   #define  SCIPfreeCleanBufferNull(scip, ptr)   BMSfreeBufferMemoryNull(SCIPcleanbuffer(scip), (ptr))   #define  SCIPfreeCleanBufferArray(scip, ptr)   BMSfreeBufferMemoryArray(SCIPcleanbuffer(scip), (ptr))   #define  SCIPfreeCleanBufferArrayNull(scip, ptr)   BMSfreeBufferMemoryArrayNull(SCIPcleanbuffer(scip), (ptr))   ◆ SCIPallocMemory #define SCIPallocMemory (   scip,   ptr  ) Value:

#define BMSallocMemory(ptr)

Definition at line 60 of file scip_mem.h.

◆ SCIPallocClearMemory #define SCIPallocClearMemory (   scip,   ptr  ) Value:

#define BMSallocClearMemory(ptr)

Definition at line 62 of file scip_mem.h.

◆ SCIPallocMemoryArray #define SCIPallocMemoryArray (   scip,   ptr,   num  ) Value:

#define BMSallocMemoryArray(ptr, num)

Definition at line 64 of file scip_mem.h.

◆ SCIPallocClearMemoryArray #define SCIPallocClearMemoryArray (   scip,   ptr,   num  ) Value:

#define BMSallocClearMemoryArray(ptr, num)

Definition at line 66 of file scip_mem.h.

◆ SCIPallocMemorySize #define SCIPallocMemorySize (   scip,   ptr,   size  ) Value:

#define BMSallocMemorySize(ptr, size)

Definition at line 68 of file scip_mem.h.

◆ SCIPreallocMemoryArray #define SCIPreallocMemoryArray (   scip,   ptr,   newnum  ) Value:

#define BMSreallocMemoryArray(ptr, num)

Definition at line 70 of file scip_mem.h.

◆ SCIPreallocMemorySize #define SCIPreallocMemorySize (   scip,   ptr,   newsize  ) Value:

#define BMSreallocMemorySize(ptr, size)

Definition at line 72 of file scip_mem.h.

◆ SCIPduplicateMemory #define SCIPduplicateMemory (   scip,   ptr,   source  ) Value:

#define BMSduplicateMemory(ptr, source)

Definition at line 74 of file scip_mem.h.

◆ SCIPduplicateMemoryArray #define SCIPduplicateMemoryArray (   scip,   ptr,   source,   num  ) Value:

#define BMSduplicateMemoryArray(ptr, source, num)

Definition at line 76 of file scip_mem.h.

◆ SCIPfreeMemory ◆ SCIPfreeMemoryNull ◆ SCIPfreeMemoryArray ◆ SCIPfreeMemoryArrayNull ◆ SCIPfreeMemorySize ◆ SCIPfreeMemorySizeNull ◆ SCIPallocBlockMemory #define SCIPallocBlockMemory (   scip,   ptr  ) Value:

BMS_BLKMEM * SCIPblkmem(SCIP *scip)

#define BMSallocBlockMemory(mem, ptr)

Definition at line 89 of file scip_mem.h.

◆ SCIPallocClearBlockMemory #define SCIPallocClearBlockMemory (   scip,   ptr  ) Value:

#define BMSallocClearBlockMemory(mem, ptr)

Definition at line 91 of file scip_mem.h.

◆ SCIPallocBlockMemoryArray #define SCIPallocBlockMemoryArray (   scip,   ptr,   num  ) Value:

#define BMSallocBlockMemoryArray(mem, ptr, num)

Definition at line 93 of file scip_mem.h.

◆ SCIPallocBlockMemorySize #define SCIPallocBlockMemorySize (   scip,   ptr,   size  ) Value:

#define BMSallocBlockMemorySize(mem, ptr, size)

Definition at line 95 of file scip_mem.h.

◆ SCIPallocClearBlockMemoryArray #define SCIPallocClearBlockMemoryArray (   scip,   ptr,   num  ) Value:

#define BMSallocClearBlockMemoryArray(mem, ptr, num)

Definition at line 97 of file scip_mem.h.

◆ SCIPreallocBlockMemoryArray #define SCIPreallocBlockMemoryArray (   scip,   ptr,   oldnum,   newnum  ) Value:

#define BMSreallocBlockMemoryArray(mem, ptr, oldnum, newnum)

Definition at line 99 of file scip_mem.h.

◆ SCIPreallocBlockMemorySize #define SCIPreallocBlockMemorySize (   scip,   ptr,   oldsize,   newsize  ) Value:

#define BMSreallocBlockMemorySize(mem, ptr, oldsize, newsize)

Definition at line 101 of file scip_mem.h.

◆ SCIPduplicateBlockMemory #define SCIPduplicateBlockMemory (   scip,   ptr,   source  ) Value:

#define BMSduplicateBlockMemory(mem, ptr, source)

Definition at line 103 of file scip_mem.h.

◆ SCIPduplicateBlockMemoryArray #define SCIPduplicateBlockMemoryArray (   scip,   ptr,   source,   num  ) Value:

#define BMSduplicateBlockMemoryArray(mem, ptr, source, num)

Definition at line 105 of file scip_mem.h.

◆ SCIPensureBlockMemoryArray ◆ SCIPfreeBlockMemory ◆ SCIPfreeBlockMemoryNull ◆ SCIPfreeBlockMemoryArray ◆ SCIPfreeBlockMemoryArrayNull ◆ SCIPfreeBlockMemorySize ◆ SCIPfreeBlockMemorySizeNull ◆ SCIPallocBuffer #define SCIPallocBuffer (   scip,   ptr  ) Value:

BMS_BUFMEM * SCIPbuffer(SCIP *scip)

#define BMSallocBufferMemory(mem, ptr)

Definition at line 122 of file scip_mem.h.

◆ SCIPallocBufferArray #define SCIPallocBufferArray (   scip,   ptr,   num  ) Value:

#define BMSallocBufferMemoryArray(mem, ptr, num)

Definition at line 124 of file scip_mem.h.

◆ SCIPallocClearBufferArray #define SCIPallocClearBufferArray (   scip,   ptr,   num  ) Value:

#define BMSallocClearBufferMemoryArray(mem, ptr, num)

Definition at line 126 of file scip_mem.h.

◆ SCIPreallocBufferArray #define SCIPreallocBufferArray (   scip,   ptr,   num  ) Value:

#define BMSreallocBufferMemoryArray(mem, ptr, num)

Definition at line 128 of file scip_mem.h.

◆ SCIPduplicateBuffer #define SCIPduplicateBuffer (   scip,   ptr,   source  ) Value:

#define BMSduplicateBufferMemory(mem, ptr, source, size)

Definition at line 130 of file scip_mem.h.

◆ SCIPduplicateBufferArray #define SCIPduplicateBufferArray (   scip,   ptr,   source,   num  ) Value:

#define BMSduplicateBufferMemoryArray(mem, ptr, source, num)

Definition at line 132 of file scip_mem.h.

◆ SCIPfreeBuffer ◆ SCIPfreeBufferNull ◆ SCIPfreeBufferArray ◆ SCIPfreeBufferArrayNull ◆ SCIPallocCleanBuffer #define SCIPallocCleanBuffer (   scip,   ptr  ) Value:

BMS_BUFMEM * SCIPcleanbuffer(SCIP *scip)

Definition at line 140 of file scip_mem.h.

◆ SCIPallocCleanBufferArray #define SCIPallocCleanBufferArray (   scip,   ptr,   num  ) ◆ SCIPfreeCleanBuffer ◆ SCIPfreeCleanBufferNull ◆ SCIPfreeCleanBufferArray ◆ SCIPfreeCleanBufferArrayNull ◆ SCIPblkmem() ◆ SCIPbuffer()

returns buffer memory for short living temporary objects

Returns
the buffer memory for short living temporary objects
Parameters

Definition at line 72 of file scip_mem.c.

References NULL.

Referenced by computeHyperplaneThreePoints(), detectSocQuadraticComplex(), exitPresolve(), getEigenValues(), initPresolve(), presolve(), presolveRound(), propagationRound(), SCIP_DECL_PARAMCHGD(), SCIPcreateBanditEpsgreedy(), SCIPcreateBanditExp3(), SCIPcreateBanditExp3IX(), SCIPcreateBanditUcb(), SCIPprimalHeuristics(), SCIPprintMemoryDiagnostic(), SCIPresetBandit(), and separationRoundLP().

◆ SCIPcleanbuffer() ◆ SCIPgetMemUsed()

returns the total number of bytes used in block and buffer memory

Returns
the total number of bytes used in block and buffer memory.
Parameters

Definition at line 100 of file scip_mem.c.

References NULL, and SCIPmemGetUsed().

Referenced by applyOptcumulative(), applyRepair(), checkArraySizesGLS(), checkArraySizesHeur(), computeCoverUndercover(), copyMemoryAndTimeLimits(), determineLimits(), doPricing(), getCopyMemlimit(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_HEUREXEC(), SCIPapplyUndercover(), SCIPsolveConcurrent(), setSubscipLimits(), solveCumulative(), solveIndependentCons(), and solveSubscip().

◆ SCIPgetMemTotal() ◆ SCIPgetMemExternEstim()

returns the estimated number of bytes used by external software, e.g., the LP solver

Returns
the estimated number of bytes used by external software, e.g., the LP solver.
Parameters

Definition at line 126 of file scip_mem.c.

References NULL, and SCIPstatGetMemExternEstim().

Referenced by applyOptcumulative(), applyRepair(), checkArraySizesGLS(), checkArraySizesHeur(), computeCoverUndercover(), copyMemoryAndTimeLimits(), determineLimits(), getCopyMemlimit(), SCIP_DECL_HEUREXEC(), SCIPapplyUndercover(), SCIPcheckCopyLimits(), SCIPsolveConcurrent(), setSubscipLimits(), solveCumulative(), solveIndependentCons(), and solveSubscip().

◆ SCIPcalcMemGrowSize() int SCIPcalcMemGrowSize ( SCIPscip, int  num  )

calculate memory size for dynamically allocated arrays

Returns
the memory size for dynamically allocated arrays.
Parameters
scip SCIP data structure num minimum number of entries to store

Definition at line 139 of file scip_mem.c.

References NULL, and SCIPsetCalcMemGrowSize().

Referenced by addAuxVar(), addCliqueDataEntry(), addCoef(), addComponent(), addConsToOccurList(), addEntry(), addOneRow(), addOrbitope(), addScenarioEntry(), addSCVarIndicator(), addSSTConssOrbitAndUpdateSST(), addVariableToArray(), addVbound(), applyOptcumulative(), blisshook(), buildScenariosFromBlocks(), buildSubgroupGraph(), checkForOverlapping(), collectAggregatedVars(), collectCliqueData(), COLORprobAddNewStableSet(), consdataEnsureAddLinConsSize(), consdataEnsureVarsSize(), consdataEnsurevarsSizeCardinality(), consdataEnsurevarsSizeSOS1(), consdataEnsurevarsSizeSOS2(), conshdlrdataEnsureLinconsupgradesSize(), constraintListAppend(), constructValidSolution(), correctPresoldata(), createAndAddAndCons(), createBlockproblem(), createProjRow(), determineVariableFixings(), enlargeMinweights(), ensureConsLinSize(), ensureDynamicConsArrayAllocatedAndSufficientlyLarge(), ensureEdgeArraysSize(), ensureFactorsSize(), ensureLocVarsArraySize(), ensureMonomialsSize(), ensureNodeArraysSize(), ensureOpenArraySizeSymdetect(), ensureVarsSize(), exprstackPush(), extendMemoryTreeProfile(), fillVariableGraph(), generateZerohalfCut(), getActiveVariables(), getInputString(), getMaxAndConsDim(), getNextLine(), getNodeIdx(), getVariableOrTerm(), identifyOrbitalSymmetriesBroken(), insertIndex(), insertRayEntry(), level2dataEnsureSize(), nautyhook(), nlrowaggrAddLinearTerm(), presolvePropagateCons(), readBlocks(), readBounds(), readCoefficients(), readExpression(), readIndep(), readQCMatrix(), readQMatrix(), readQuadraticCoefs(), rowprepRecordModifiedVar(), sassyhook(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSPARSE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_NLHDLRDETECT(), SCIP_DECL_NLPIADDCONSTRAINTS(), SCIP_DECL_NLPIADDVARS(), SCIP_DECL_NLPISOLVE(), SCIP_DECL_PRESOLEXEC(), SCIPaddExprsViolScoreNonlinear(), SCIPaddSymgraphConsnode(), SCIPaddSymgraphOpnode(), SCIPaddSymgraphValnode(), SCIPaggrRowAddRow(), SCIPcomputeExprCurvature(), SCIPcreateConsPseudobooleanWithConss(), SCIPensureRowprepSize(), SCIPlexicographicReductionAddPermutation(), SCIPparseVarsPolynomial(), SCIPpropSyncAddBndchg(), SCIPwriteLp(), SCIPwritePip(), sepadataAddMinor(), separateRltCuts(), tabooListAdd(), and tcliquegraphEnsureCliqueidsSize().

◆ SCIPensureBlockMemoryArray_call() SCIP_RETCODE SCIPensureBlockMemoryArray_call ( SCIPscip, void **  arrayptr, size_t  elemsize, int *  arraysize, int  minsize  ) ◆ SCIPprintMemoryDiagnostic() void SCIPprintMemoryDiagnostic ( SCIPscip )

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4