Detailed Descriptionmiscellaneous methods Definition in file misc.c. #include <assert.h> #include <string.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "scip/def.h" #include "scip/pub_message.h" #include "scip/misc.h" #include "scip/intervalarith.h" #include "scip/pub_misc.h" #include "scip/struct_misc.h" #include "scip/sorttpl.c" Go to the source code of this file.
Macro Definition Documentation
the square root of 2 with sufficient precision contains all critical values for a one-sided two sample t-test up to 15 degrees of freedom a critical value represents a threshold for rejecting the null-hypothesis in hypothesis testing at a certain confidence level; access through method SCIPstudentTGetCriticalValue() source: German Wikipedia for confidence levels c = 0.75 0.875 0.90 0.95 0.975 (one-sided) 0.50 0.750 0.80 0.90 0.950 (two-sided) Definition at line 49 of file misc.c. Referenced by SCIPnormalCDF().
Definition at line 285 of file misc.c. Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 286 of file misc.c. Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 287 of file misc.c. Referenced by SCIPgmlWriteArc(), SCIPgmlWriteEdge(), SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 288 of file misc.c. Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 289 of file misc.c. Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 290 of file misc.c. Referenced by SCIPgmlWriteArc(), and SCIPgmlWriteEdge().
Definition at line 291 of file misc.c. Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
Definition at line 921 of file misc.c. Referenced by SCIPpqueueInsert(), and SCIPpqueueRemove().
Definition at line 922 of file misc.c. Referenced by SCIPpqueueRemove().
Definition at line 923 of file misc.c. Referenced by SCIPpqueueRemove().
Definition at line 1358 of file misc.c. Referenced by hashtableResize().
Definition at line 1359 of file misc.c. Referenced by SCIPhashtableInsert().
Definition at line 1360 of file misc.c. Referenced by hashtableResize().
Definition at line 4859 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4860 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4861 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4862 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4863 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4864 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 4865 of file misc.c. Referenced by SORTTPL_NAME().
Definition at line 5775 of file misc.c. Referenced by ensureSuccessorsSize().
Definition at line 7686 of file misc.c. Referenced by SCIPgetRandomInt(), SCIPgetRandomReal(), and SCIPselectSimpleValue(). Function Documentation
calculate memory size for dynamically allocated arrays (copied from scip/set.c)
Definition at line 239 of file misc.c. References MAX, and BMS_BufMem::size. Referenced by SCIPboolarrayExtend(), SCIPintarrayExtend(), SCIPptrarrayExtend(), and SCIPrealarrayExtend().
resizes element memory to hold at least the given number of elements
Definition at line 723 of file misc.c. References BMSreallocMemoryArray, MAX, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Queue::size, BMS_BufMem::size, SCIP_Queue::sizefac, and SCIP_Queue::slots. Referenced by SCIPqueueCreate(), and SCIPqueueInsert().
resizes element memory to hold at least the given number of elements
Definition at line 928 of file misc.c. References BMSreallocMemoryArray, MAX, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_PQueue::size, BMS_BufMem::size, SCIP_PQueue::sizefac, and SCIP_PQueue::slots. Referenced by SCIPpqueueCreate(), and SCIPpqueueInsert().
appends element to the hash list
Definition at line 1171 of file misc.c. References BMSallocBlockMemory, SCIP_HashTableList::element, SCIP_HashTableList::next, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by hashtableResize(), and SCIPhashtableInsert().
frees a hash list entry and all its successors
Definition at line 1193 of file misc.c. References BMSfreeBlockMemory, SCIP_HashTableList::next, and NULL. Referenced by SCIPhashtableClear(), SCIPhashtableFree(), and SCIPhashtableRemoveAll().
finds hash list entry pointing to element with given key in the hash list, returns NULL if not found
Definition at line 1217 of file misc.c. References SCIP_HashTableList::element, SCIP_HashTableList::next, and NULL. Referenced by hashtablelistRetrieve(), hashtablelistRetrieveNext(), and SCIPhashtableExists().
retrieves element with given key from the hash list, or NULL
Definition at line 1248 of file misc.c. References SCIP_HashTableList::element, hashtablelistFind(), SCIP_HashTableList::next, NULL, and SCIPerrorMessage. Referenced by SCIPhashtableRetrieve().
retrieves element with given key from the hash list, or NULL returns pointer to hash table list entry
Definition at line 1298 of file misc.c. References SCIP_HashTableList::element, hashtablelistFind(), SCIP_HashTableList::next, and NULL. Referenced by SCIPhashtableRetrieveNext().
removes element from the hash list
Definition at line 1331 of file misc.c. References BMSfreeBlockMemory, FALSE, SCIP_HashTableList::next, NULL, and TRUE. Referenced by SCIPhashtableRemove().
resizing(increasing) the given hashtable
Definition at line 1364 of file misc.c. References SCIP_HashTable::blkmem, BMSallocClearMemoryArray, BMSfreeMemoryArray, SCIP_HashTableList::element, FALSE, hashtablelistAppend(), SCIP_HashTable::lists, MAX, MIN, SCIP_HashTable::nelements, SCIP_HashTableList::next, SCIP_HashTable::nlists, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_HASHTABLE_GROW_FACTOR, SCIP_HASHTABLE_MAXSIZE, SCIP_Longint, SCIP_OKAY, SCIPdebugMessage, SCIPhashtableGetLoad(), SCIPhashtableRemoveAll(), TRUE, and SCIP_HashTable::userptr. Referenced by SCIPhashtableInsert().
appends origin->image pair to the hash list
Definition at line 1894 of file misc.c. References BMSallocBlockMemory, BMSallocMemory, SCIP_HashMapList::image, SCIP_HashMapList::next, NULL, SCIP_HashMapList::origin, SCIP_ALLOC, and SCIP_OKAY. Referenced by hashmaplistSetImage(), and SCIPhashmapInsert().
frees a hash list entry and all its successors
Definition at line 1924 of file misc.c. References BMSfreeBlockMemory, BMSfreeMemory, SCIP_HashMapList::next, and NULL. Referenced by SCIPhashmapFree(), and SCIPhashmapRemoveAll().
finds hash list entry pointing to given origin in the hash list, returns NULL if not found
Definition at line 1956 of file misc.c. References SCIP_HashMapList::next, NULL, and SCIP_HashMapList::origin. Referenced by hashmaplistGetImage(), hashmaplistSetImage(), and SCIPhashmapExists().
retrieves image of given origin from the hash list, or NULL
Definition at line 1973 of file misc.c. References hashmaplistFind(), SCIP_HashMapList::image, and NULL. Referenced by SCIPhashmapGetImage().
sets image for given origin in the hash list, either by modifying existing origin->image pair or by appending a new origin->image pair
Definition at line 1994 of file misc.c. References hashmaplistAppend(), hashmaplistFind(), SCIP_HashMapList::image, NULL, SCIP_CALL, and SCIP_OKAY. Referenced by SCIPhashmapSetImage().
removes origin->image pair from the hash list
Definition at line 2019 of file misc.c. References BMSfreeBlockMemory, BMSfreeMemory, SCIP_HashMapList::next, NULL, and SCIP_OKAY. Referenced by SCIPhashmapRemove().
creates a dynamic array of real values
Definition at line 2359 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateRealarray(), SCIPrealarrayCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of real values
Definition at line 2379 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrealarrayCreate(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of real values
Definition at line 2403 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeRealarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2417 of file misc.c. References SCIP_RealArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPextendRealarray(), SCIPlpSumRows(), and SCIPrealarraySetVal().
clears a dynamic real array
Definition at line 2572 of file misc.c. References BMSclearMemoryArray, SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPclearRealarray(), and SCIPlpSumRows().
gets value of entry in dynamic array
Definition at line 2603 of file misc.c. References SCIP_RealArray::firstidx, SCIP_RealArray::maxusedidx, NULL, SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPgetRealarrayVal(), SCIPrealarrayIncVal(), solGetArrayVal(), and solIncArrayVal().
sets value of entry in dynamic array
Definition at line 2624 of file misc.c. References SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, MIN, SCIP_RealArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPrealarrayExtend(), SCIP_RealArray::vals, and SCIP_RealArray::valssize. Referenced by SCIPrealarrayIncVal(), SCIPsetRealarrayVal(), solIncArrayVal(), and solSetArrayVal().
increases value of entry in dynamic array
Definition at line 2693 of file misc.c. References SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPrealarrayGetVal(), and SCIPrealarraySetVal(). Referenced by SCIPincRealarrayVal(), SCIPlpSumRows(), and solIncArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 2711 of file misc.c. References SCIP_RealArray::minusedidx, and NULL. Referenced by SCIPgetRealarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 2721 of file misc.c. References SCIP_RealArray::maxusedidx, and NULL. Referenced by SCIPgetRealarrayMaxIdx().
creates a dynamic array of int values
Definition at line 2731 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreateIntarray(), and SCIPintarrayCopy().
creates a copy of a dynamic array of int values
Definition at line 2751 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPintarrayCreate(), SCIP_IntArray::vals, and SCIP_IntArray::valssize.
frees a dynamic array of int values
Definition at line 2774 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeIntarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 2788 of file misc.c. References SCIP_IntArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPextendIntarray(), and SCIPintarraySetVal().
clears a dynamic int array
Definition at line 2943 of file misc.c. References BMSclearMemoryArray, SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPclearIntarray().
gets value of entry in dynamic array
Definition at line 2974 of file misc.c. References SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, NULL, SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPgetIntarrayVal(), and SCIPintarrayIncVal().
sets value of entry in dynamic array
Definition at line 2995 of file misc.c. References SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, MIN, SCIP_IntArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPintarrayExtend(), SCIP_IntArray::vals, and SCIP_IntArray::valssize. Referenced by SCIPintarrayIncVal(), and SCIPsetIntarrayVal().
increases value of entry in dynamic array
Definition at line 3063 of file misc.c. References SCIPintarrayGetVal(), and SCIPintarraySetVal(). Referenced by SCIPincIntarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3075 of file misc.c. References SCIP_IntArray::minusedidx, and NULL. Referenced by SCIPgetIntarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3085 of file misc.c. References SCIP_IntArray::maxusedidx, and NULL. Referenced by SCIPgetIntarrayMaxIdx().
creates a dynamic array of bool values
Definition at line 3096 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPboolarrayCopy(), SCIPcreateBoolarray(), SCIPsolCreate(), SCIPsolCreateOriginal(), and SCIPsolCreateUnknown().
creates a copy of a dynamic array of bool values
Definition at line 3116 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPboolarrayCreate(), SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsolCopy().
frees a dynamic array of bool values
Definition at line 3140 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreeBoolarray(), and SCIPsolFree().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 3154 of file misc.c. References SCIP_BoolArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, BMSmoveMemoryArray, calcGrowSize(), FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPboolarraySetVal(), and SCIPextendBoolarray().
clears a dynamic bool array
Definition at line 3311 of file misc.c. References BMSclearMemoryArray, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPclearBoolarray(), and solClearArrays().
gets value of entry in dynamic array
Definition at line 3342 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, SCIP_BoolArray::maxusedidx, NULL, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPgetBoolarrayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolRound(), SCIPsolSetVal(), solGetArrayVal(), solIncArrayVal(), and solUnlinkVar().
sets value of entry in dynamic array
Definition at line 3363 of file misc.c. References FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, MIN, SCIP_BoolArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPboolarrayExtend(), SCIPdebugMessage, SCIP_BoolArray::vals, and SCIP_BoolArray::valssize. Referenced by SCIPsetBoolarrayVal(), solIncArrayVal(), and solSetArrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3431 of file misc.c. References SCIP_BoolArray::minusedidx, and NULL. Referenced by SCIPgetBoolarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3441 of file misc.c. References SCIP_BoolArray::maxusedidx, and NULL. Referenced by SCIPgetBoolarrayMaxIdx().
creates a dynamic array of pointer values
Definition at line 3452 of file misc.c. References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPcreatePtrarray(), and SCIPptrarrayCopy().
creates a copy of a dynamic array of pointer values
Definition at line 3472 of file misc.c. References BMSduplicateBlockMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPptrarrayCreate(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize.
frees a dynamic array of pointer values
Definition at line 3495 of file misc.c. References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY. Referenced by SCIPfreePtrarray().
extends dynamic array to be able to store indices from minidx to maxidx
Definition at line 3509 of file misc.c. References SCIP_PtrArray::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPextendPtrarray(), and SCIPptrarraySetVal().
clears a dynamic pointer array
Definition at line 3664 of file misc.c. References BMSclearMemoryArray, SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_OKAY, SCIPdebugMessage, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPclearPtrarray().
gets value of entry in dynamic array
Definition at line 3695 of file misc.c. References SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, NULL, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPgetPtrarrayVal().
sets value of entry in dynamic array
Definition at line 3716 of file misc.c. References SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, MIN, SCIP_PtrArray::minusedidx, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPptrarrayExtend(), SCIP_PtrArray::vals, and SCIP_PtrArray::valssize. Referenced by SCIPsetPtrarrayVal().
returns the minimal index of all stored non-zero elements
Definition at line 3784 of file misc.c. References SCIP_PtrArray::minusedidx, and NULL. Referenced by SCIPgetPtrarrayMinIdx().
returns the maximal index of all stored non-zero elements
Definition at line 3794 of file misc.c. References SCIP_PtrArray::maxusedidx, and NULL. Referenced by SCIPgetPtrarrayMaxIdx().
Definition at line 5114 of file misc.c. References SCIP_Profile::arraysize, BMSreallocMemoryArray, SCIP_Profile::loads, SCIP_ALLOC, SCIP_OKAY, and SCIP_Profile::timepoints. Referenced by profileInsertTimepoint().
inserts the given time point into the resource profile if it this time point does not exists yet; returns its position in the time point array
Definition at line 5137 of file misc.c. References SCIP_Profile::arraysize, ensureProfileSize(), SCIP_Profile::loads, SCIP_Profile::ntimepoints, NULL, SCIP_CALL, SCIP_OKAY, SCIPprofileFindLeft(), SCIPsortedvecInsertIntInt(), and SCIP_Profile::timepoints. Referenced by profileUpdate().
updates the resource profile due to inserting of a core
Definition at line 5178 of file misc.c. References SCIP_Profile::arraysize, SCIP_Profile::capacity, FALSE, SCIP_Profile::loads, SCIP_Profile::ntimepoints, NULL, profileInsertTimepoint(), SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIP_Profile::timepoints, and TRUE. Referenced by SCIPprofileDeleteCore(), and SCIPprofileInsertCore().
returns TRUE if the core (given by its demand and during) can be inserted at the given time point; otherwise FALSE
Definition at line 5300 of file misc.c. References SCIP_Profile::capacity, FALSE, SCIP_Profile::loads, SCIP_Profile::ntimepoints, NULL, SCIPdebugMessage, SCIP_Profile::timepoints, and TRUE. Referenced by SCIPprofileGetEarliestFeasibleStart().
returns TRUE if the core (given by its demand and during) can be inserted at the given time point; otherwise FALSE
Definition at line 5451 of file misc.c. References SCIP_Profile::capacity, FALSE, SCIP_Profile::loads, SCIP_Profile::ntimepoints, NULL, SCIPdebugMessage, SCIP_Profile::timepoints, and TRUE. Referenced by SCIPprofileGetLatestFeasibleStart().
Definition at line 5779 of file misc.c. References SCIP_Digraph::arcdata, BMSallocMemoryArray, BMSreallocMemoryArray, NULL, SCIP_ALLOC, SCIP_OKAY, STARTSUCCESSORSSIZE, SCIP_Digraph::successors, and SCIP_Digraph::successorssize. Referenced by SCIPdigraphAddArc(), and SCIPdigraphAddArcSafe().
performs depth-first-search in the given directed graph from the given start node
Definition at line 6000 of file misc.c. References FALSE, SCIP_Digraph::nsuccessors, NULL, SCIP_Digraph::successors, and TRUE. Referenced by SCIPdigraphComputeUndirectedComponents(), and SCIPdigraphTopoSortComponents().
Definition at line 6289 of file misc.c. References FALSE, MIN, SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, NULL, SCIP_Digraph::successors, and TRUE. Referenced by SCIPdigraphComputeDirectedComponents().
creates a node for a binary tree
Definition at line 6623 of file misc.c. References SCIP_Bt::blkmem, BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by SCIPbtnodeCreate().
frees a tree leaf
Definition at line 6662 of file misc.c. References SCIP_Bt::blkmem, BMSfreeBlockMemory, and NULL. Referenced by SCIPbtnodeFree().
prints the rooted subtree of the given binary tree node in GML format into the given file
Definition at line 6955 of file misc.c. References NULL, SCIP_MAXSTRLEN, SCIPbtnodeGetLeftchild(), SCIPbtnodeGetRightchild(), SCIPgmlWriteArc(), SCIPgmlWriteNode(), and SCIPsnprintf(). Referenced by SCIPbtPrintGml().
checks, whether the given scalar scales the given value to an integral number with error in the given bounds
Definition at line 7347 of file misc.c. References SCIP_Real, and SCIPrelDiff(). Referenced by SCIPcalcIntegralScalar().
returns a random number between 0 and SCIP_RAND_MAX
Definition at line 7690 of file misc.c. Referenced by SCIPgetRandomInt(), SCIPgetRandomReal(), and SCIPselectSimpleValue(). Variable Documentation
Initial value:
= { 1.000, 2.414, 3.078, 6.314, 12.706, 0.816, 1.604, 1.886, 2.920, 4.303, 0.765, 1.423, 1.638, 2.353, 3.182, 0.741, 1.344, 1.533, 2.132, 2.776, 0.727, 1.301, 1.476, 2.015, 2.571, 0.718, 1.273, 1.440, 1.943, 2.447, 0.711, 1.254, 1.415, 1.895, 2.365, 0.706, 1.240, 1.397, 1.860, 2.306, 0.703, 1.230, 1.383, 1.833, 2.262, 0.700, 1.221, 1.372, 1.812, 2.228, 0.697, 1.214, 1.363, 1.796, 2.201, 0.695, 1.209, 1.356, 1.782, 2.179, 0.694, 1.204, 1.350, 1.771, 2.160, 0.692, 1.200, 1.345, 1.761, 2.145, 0.691, 1.197, 1.341, 1.753, 2.131 } critical values for higher degrees of freedom of Student-T distribution for the same error probabilities; infact, these are critical values of the standard normal distribution with mean 0 and variance 1 Definition at line 65 of file misc.c. Referenced by SCIPstudentTGetCriticalValue().
Initial value:
= { 0.674, 1.150, 1.282, 1.645, 1.960 } Definition at line 86 of file misc.c. Referenced by SCIPnormalGetCriticalValue(), and SCIPstudentTGetCriticalValue().
the maximum degrees of freedom represented before switching to normal approximation Definition at line 91 of file misc.c. Referenced by SCIPstudentTGetCriticalValue().
Definition at line 7370 of file misc.c. Referenced by SCIPcalcIntegralScalar(). |