Detailed Description
miscellaneous 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 <ctype.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.
Variables | |
static const SCIP_Real | studentt_quartiles [] |
static const SCIP_Real | studentt_quartilesabove [] |
static const int | studentt_maxdf = sizeof(studentt_quartiles)/(5 * sizeof(SCIP_Real)) |
static int | primetable [] |
static const int | primetablesize = sizeof(primetable)/sizeof(int) |
static const SCIP_Real | simplednoms [] |
static const SCIP_Real | scalars [] = {3.0, 5.0, 7.0, 9.0, 11.0, 13.0, 15.0, 17.0, 19.0} |
static const int | nscalars = 9 |
Macro Definition Documentation
◆ SQRTOFTWO
#define SQRTOFTWO 1.4142136 |
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 60 of file misc.c.
Referenced by SCIPnormalCDF().
◆ GMLNODEWIDTH
#define GMLNODEWIDTH 120.0 |
Definition at line 486 of file misc.c.
Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ GMLNODEHEIGTH
#define GMLNODEHEIGTH 30.0 |
Definition at line 487 of file misc.c.
Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ GMLFONTSIZE
#define GMLFONTSIZE 13 |
Definition at line 488 of file misc.c.
Referenced by SCIPgmlWriteArc(), SCIPgmlWriteEdge(), SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ GMLNODETYPE
#define GMLNODETYPE "rectangle" |
Definition at line 489 of file misc.c.
Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ GMLNODEFILLCOLOR
#define GMLNODEFILLCOLOR "#ff0000" |
Definition at line 490 of file misc.c.
Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ GMLEDGECOLOR
#define GMLEDGECOLOR "black" |
Definition at line 491 of file misc.c.
Referenced by SCIPgmlWriteArc(), and SCIPgmlWriteEdge().
◆ GMLNODEBORDERCOLOR
#define GMLNODEBORDERCOLOR "#000000" |
Definition at line 492 of file misc.c.
Referenced by SCIPgmlWriteNode(), and SCIPgmlWriteNodeWeight().
◆ PQ_PARENT
#define PQ_PARENT | ( | q | ) | (((q)+1)/2-1) |
Definition at line 1221 of file misc.c.
Referenced by pqueueElemChgPos(), SCIPpqueueDelPos(), and SCIPpqueueInsert().
◆ PQ_LEFTCHILD
#define PQ_LEFTCHILD | ( | p | ) | (2*(p)+1) |
Definition at line 1222 of file misc.c.
Referenced by pqueueElemChgPos(), and SCIPpqueueDelPos().
◆ PQ_RIGHTCHILD
#define PQ_RIGHTCHILD | ( | p | ) | (2*(p)+2) |
Definition at line 1223 of file misc.c.
Referenced by pqueueElemChgPos(), and SCIPpqueueDelPos().
◆ SCIP_MULTIHASH_MAXSIZE
#define SCIP_MULTIHASH_MAXSIZE 33554431 /* 2^25 - 1*/ |
Definition at line 1788 of file misc.c.
Referenced by multihashResize().
◆ SCIP_MULTIHASH_RESIZE_PERCENTAGE
#define SCIP_MULTIHASH_RESIZE_PERCENTAGE 65 |
Definition at line 1789 of file misc.c.
Referenced by SCIPmultihashInsert().
◆ SCIP_MULTIHASH_GROW_FACTOR
#define SCIP_MULTIHASH_GROW_FACTOR 1.31 |
Definition at line 1790 of file misc.c.
Referenced by multihashResize().
◆ ELEM_DISTANCE [1/3]
#define ELEM_DISTANCE | ( | pos | ) | (((pos) + hashtable->mask + 1 - (hashtable->hashes[(pos)]>>(hashtable->shift))) & hashtable->mask) |
Definition at line 3604 of file misc.c.
Referenced by hashmapInsert(), hashmapLookup(), hashsetInsert(), hashtableInsert(), SCIPhashmapPrintStatistics(), SCIPhashsetExists(), SCIPhashsetRemove(), SCIPhashtablePrintStatistics(), SCIPhashtableRemove(), and SCIPhashtableRetrieve().
◆ ELEM_DISTANCE [2/3]
#define ELEM_DISTANCE | ( | pos | ) | (((pos) + hashmap->mask + 1 - (hashmap->hashes[(pos)]>>(hashmap->shift))) & hashmap->mask) |
◆ ELEM_DISTANCE [3/3]
#define ELEM_DISTANCE | ( | pos | ) | (((pos) + nslots - hashSetDesiredPos(hashset, hashset->slots[(pos)])) & mask) |
◆ SORTTPL_NAMEEXT [1/117]
#define SORTTPL_NAMEEXT Ind |
Definition at line 6538 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_KEYTYPE [1/117]
#define SORTTPL_KEYTYPE int |
Definition at line 6539 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_INDCOMP [1/2]
◆ SORTTPL_NAMEEXT [2/117]
◆ SORTTPL_KEYTYPE [2/117]
◆ SORTTPL_PTRCOMP [1/37]
◆ SORTTPL_NAMEEXT [3/117]
◆ SORTTPL_KEYTYPE [3/117]
◆ SORTTPL_FIELD1TYPE [1/107]
#define SORTTPL_FIELD1TYPE void* |
Definition at line 6540 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_PTRCOMP [2/37]
◆ SORTTPL_NAMEEXT [4/117]
◆ SORTTPL_KEYTYPE [4/117]
◆ SORTTPL_FIELD1TYPE [2/107]
◆ SORTTPL_PTRCOMP [3/37]
◆ SORTTPL_NAMEEXT [5/117]
◆ SORTTPL_KEYTYPE [5/117]
◆ SORTTPL_FIELD1TYPE [3/107]
◆ SORTTPL_PTRCOMP [4/37]
◆ SORTTPL_NAMEEXT [6/117]
◆ SORTTPL_KEYTYPE [6/117]
◆ SORTTPL_FIELD1TYPE [4/107]
◆ SORTTPL_PTRCOMP [5/37]
◆ SORTTPL_NAMEEXT [7/117]
◆ SORTTPL_KEYTYPE [7/117]
◆ SORTTPL_FIELD1TYPE [5/107]
◆ SORTTPL_FIELD2TYPE [1/87]
#define SORTTPL_FIELD2TYPE int |
Definition at line 6541 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_PTRCOMP [6/37]
◆ SORTTPL_NAMEEXT [8/117]
◆ SORTTPL_KEYTYPE [8/117]
◆ SORTTPL_FIELD1TYPE [6/107]
◆ SORTTPL_FIELD2TYPE [2/87]
◆ SORTTPL_PTRCOMP [7/37]
◆ SORTTPL_NAMEEXT [9/117]
◆ SORTTPL_KEYTYPE [9/117]
◆ SORTTPL_FIELD1TYPE [7/107]
◆ SORTTPL_FIELD2TYPE [3/87]
◆ SORTTPL_FIELD3TYPE [1/53]
#define SORTTPL_FIELD3TYPE int |
Definition at line 6542 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_PTRCOMP [8/37]
◆ SORTTPL_NAMEEXT [10/117]
◆ SORTTPL_KEYTYPE [10/117]
◆ SORTTPL_FIELD1TYPE [8/107]
◆ SORTTPL_FIELD2TYPE [4/87]
◆ SORTTPL_FIELD3TYPE [2/53]
◆ SORTTPL_FIELD4TYPE [1/22]
#define SORTTPL_FIELD4TYPE SCIP_Bool |
Definition at line 6543 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_PTRCOMP [9/37]
◆ SORTTPL_NAMEEXT [11/117]
◆ SORTTPL_KEYTYPE [11/117]
◆ SORTTPL_FIELD1TYPE [9/107]
◆ SORTTPL_FIELD2TYPE [5/87]
◆ SORTTPL_FIELD3TYPE [3/53]
◆ SORTTPL_FIELD4TYPE [2/22]
◆ SORTTPL_PTRCOMP [10/37]
◆ SORTTPL_NAMEEXT [12/117]
◆ SORTTPL_KEYTYPE [12/117]
◆ SORTTPL_FIELD1TYPE [10/107]
◆ SORTTPL_FIELD2TYPE [6/87]
◆ SORTTPL_PTRCOMP [11/37]
◆ SORTTPL_NAMEEXT [13/117]
◆ SORTTPL_KEYTYPE [13/117]
◆ SORTTPL_FIELD1TYPE [11/107]
◆ SORTTPL_FIELD2TYPE [7/87]
◆ SORTTPL_PTRCOMP [12/37]
◆ SORTTPL_NAMEEXT [14/117]
◆ SORTTPL_KEYTYPE [14/117]
◆ SORTTPL_FIELD1TYPE [12/107]
◆ SORTTPL_FIELD2TYPE [8/87]
◆ SORTTPL_PTRCOMP [13/37]
◆ SORTTPL_NAMEEXT [15/117]
◆ SORTTPL_KEYTYPE [15/117]
◆ SORTTPL_FIELD1TYPE [13/107]
◆ SORTTPL_FIELD2TYPE [9/87]
◆ SORTTPL_FIELD3TYPE [4/53]
◆ SORTTPL_PTRCOMP [14/37]
◆ SORTTPL_NAMEEXT [16/117]
◆ SORTTPL_KEYTYPE [16/117]
◆ SORTTPL_FIELD1TYPE [14/107]
◆ SORTTPL_FIELD2TYPE [10/87]
◆ SORTTPL_FIELD3TYPE [5/53]
◆ SORTTPL_PTRCOMP [15/37]
◆ SORTTPL_NAMEEXT [17/117]
◆ SORTTPL_KEYTYPE [17/117]
◆ SORTTPL_FIELD1TYPE [15/107]
◆ SORTTPL_FIELD2TYPE [11/87]
◆ SORTTPL_FIELD3TYPE [6/53]
◆ SORTTPL_PTRCOMP [16/37]
◆ SORTTPL_NAMEEXT [18/117]
◆ SORTTPL_KEYTYPE [18/117]
◆ SORTTPL_FIELD1TYPE [16/107]
◆ SORTTPL_FIELD2TYPE [12/87]
◆ SORTTPL_FIELD3TYPE [7/53]
◆ SORTTPL_PTRCOMP [17/37]
◆ SORTTPL_NAMEEXT [19/117]
◆ SORTTPL_KEYTYPE [19/117]
◆ SORTTPL_FIELD1TYPE [17/107]
◆ SORTTPL_FIELD2TYPE [13/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_FIELD3TYPE [8/53]
◆ SORTTPL_PTRCOMP [18/37]
◆ SORTTPL_NAMEEXT [20/117]
◆ SORTTPL_KEYTYPE [20/117]
◆ SORTTPL_FIELD1TYPE [18/107]
◆ SORTTPL_FIELD2TYPE [14/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_FIELD3TYPE [9/53]
◆ SORTTPL_FIELD4TYPE [3/22]
◆ SORTTPL_PTRCOMP [19/37]
◆ SORTTPL_NAMEEXT [21/117]
◆ SORTTPL_KEYTYPE [21/117]
◆ SORTTPL_NAMEEXT [22/117]
◆ SORTTPL_KEYTYPE [22/117]
◆ SORTTPL_FIELD1TYPE [19/107]
◆ SORTTPL_FIELD2TYPE [15/87]
◆ SORTTPL_NAMEEXT [23/117]
◆ SORTTPL_KEYTYPE [23/117]
◆ SORTTPL_FIELD1TYPE [20/107]
◆ SORTTPL_NAMEEXT [24/117]
◆ SORTTPL_KEYTYPE [24/117]
◆ SORTTPL_FIELD1TYPE [21/107]
◆ SORTTPL_NAMEEXT [25/117]
◆ SORTTPL_KEYTYPE [25/117]
◆ SORTTPL_FIELD1TYPE [22/107]
◆ SORTTPL_FIELD2TYPE [16/87]
◆ SORTTPL_NAMEEXT [26/117]
◆ SORTTPL_KEYTYPE [26/117]
◆ SORTTPL_FIELD1TYPE [23/107]
◆ SORTTPL_FIELD2TYPE [17/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_NAMEEXT [27/117]
◆ SORTTPL_KEYTYPE [27/117]
◆ SORTTPL_FIELD1TYPE [24/107]
◆ SORTTPL_FIELD2TYPE [18/87]
◆ SORTTPL_NAMEEXT [28/117]
◆ SORTTPL_KEYTYPE [28/117]
◆ SORTTPL_FIELD1TYPE [25/107]
◆ SORTTPL_FIELD2TYPE [19/87]
◆ SORTTPL_NAMEEXT [29/117]
◆ SORTTPL_KEYTYPE [29/117]
◆ SORTTPL_FIELD1TYPE [26/107]
#define SORTTPL_FIELD1TYPE SCIP_Longint |
◆ SORTTPL_FIELD2TYPE [20/87]
◆ SORTTPL_FIELD3TYPE [10/53]
◆ SORTTPL_NAMEEXT [30/117]
◆ SORTTPL_KEYTYPE [30/117]
◆ SORTTPL_FIELD1TYPE [27/107]
◆ SORTTPL_FIELD2TYPE [21/87]
◆ SORTTPL_FIELD3TYPE [11/53]
◆ SORTTPL_NAMEEXT [31/117]
◆ SORTTPL_KEYTYPE [31/117]
◆ SORTTPL_FIELD1TYPE [28/107]
◆ SORTTPL_FIELD2TYPE [22/87]
◆ SORTTPL_FIELD3TYPE [12/53]
◆ SORTTPL_NAMEEXT [32/117]
◆ SORTTPL_KEYTYPE [32/117]
◆ SORTTPL_FIELD1TYPE [29/107]
◆ SORTTPL_FIELD2TYPE [23/87]
◆ SORTTPL_FIELD3TYPE [13/53]
◆ SORTTPL_NAMEEXT [33/117]
◆ SORTTPL_KEYTYPE [33/117]
◆ SORTTPL_FIELD1TYPE [30/107]
◆ SORTTPL_FIELD2TYPE [24/87]
◆ SORTTPL_FIELD3TYPE [14/53]
◆ SORTTPL_NAMEEXT [34/117]
◆ SORTTPL_KEYTYPE [34/117]
◆ SORTTPL_FIELD1TYPE [31/107]
◆ SORTTPL_FIELD2TYPE [25/87]
◆ SORTTPL_FIELD3TYPE [15/53]
◆ SORTTPL_FIELD4TYPE [4/22]
◆ SORTTPL_NAMEEXT [35/117]
◆ SORTTPL_KEYTYPE [35/117]
◆ SORTTPL_FIELD1TYPE [32/107]
◆ SORTTPL_FIELD2TYPE [26/87]
◆ SORTTPL_FIELD3TYPE [16/53]
◆ SORTTPL_FIELD4TYPE [5/22]
◆ SORTTPL_NAMEEXT [36/117]
◆ SORTTPL_KEYTYPE [36/117]
◆ SORTTPL_FIELD1TYPE [33/107]
◆ SORTTPL_FIELD2TYPE [27/87]
◆ SORTTPL_FIELD3TYPE [17/53]
◆ SORTTPL_FIELD4TYPE [6/22]
◆ SORTTPL_FIELD5TYPE [1/6]
#define SORTTPL_FIELD5TYPE void* |
Definition at line 6544 of file misc.c.
Referenced by SORTTPL_NAME().
◆ SORTTPL_NAMEEXT [37/117]
◆ SORTTPL_KEYTYPE [37/117]
◆ SORTTPL_NAMEEXT [38/117]
◆ SORTTPL_KEYTYPE [38/117]
◆ SORTTPL_FIELD1TYPE [34/107]
◆ SORTTPL_NAMEEXT [39/117]
◆ SORTTPL_KEYTYPE [39/117]
◆ SORTTPL_FIELD1TYPE [35/107]
◆ SORTTPL_NAMEEXT [40/117]
◆ SORTTPL_KEYTYPE [40/117]
◆ SORTTPL_FIELD1TYPE [36/107]
◆ SORTTPL_NAMEEXT [41/117]
◆ SORTTPL_KEYTYPE [41/117]
◆ SORTTPL_FIELD1TYPE [37/107]
◆ SORTTPL_FIELD2TYPE [28/87]
◆ SORTTPL_NAMEEXT [42/117]
◆ SORTTPL_KEYTYPE [42/117]
◆ SORTTPL_FIELD1TYPE [38/107]
◆ SORTTPL_FIELD2TYPE [29/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_NAMEEXT [43/117]
◆ SORTTPL_KEYTYPE [43/117]
◆ SORTTPL_FIELD1TYPE [39/107]
◆ SORTTPL_FIELD2TYPE [30/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_NAMEEXT [44/117]
◆ SORTTPL_KEYTYPE [44/117]
◆ SORTTPL_FIELD1TYPE [40/107]
◆ SORTTPL_FIELD2TYPE [31/87]
◆ SORTTPL_NAMEEXT [45/117]
◆ SORTTPL_KEYTYPE [45/117]
◆ SORTTPL_FIELD1TYPE [41/107]
◆ SORTTPL_FIELD2TYPE [32/87]
◆ SORTTPL_NAMEEXT [46/117]
◆ SORTTPL_KEYTYPE [46/117]
◆ SORTTPL_FIELD1TYPE [42/107]
◆ SORTTPL_FIELD2TYPE [33/87]
◆ SORTTPL_NAMEEXT [47/117]
◆ SORTTPL_KEYTYPE [47/117]
◆ SORTTPL_FIELD1TYPE [43/107]
◆ SORTTPL_FIELD2TYPE [34/87]
◆ SORTTPL_FIELD3TYPE [18/53]
◆ SORTTPL_NAMEEXT [48/117]
◆ SORTTPL_KEYTYPE [48/117]
◆ SORTTPL_FIELD1TYPE [44/107]
◆ SORTTPL_FIELD2TYPE [35/87]
◆ SORTTPL_FIELD3TYPE [19/53]
◆ SORTTPL_NAMEEXT [49/117]
◆ SORTTPL_KEYTYPE [49/117]
◆ SORTTPL_FIELD1TYPE [45/107]
◆ SORTTPL_FIELD2TYPE [36/87]
◆ SORTTPL_FIELD3TYPE [20/53]
◆ SORTTPL_NAMEEXT [50/117]
◆ SORTTPL_KEYTYPE [50/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_NAMEEXT [51/117]
◆ SORTTPL_KEYTYPE [51/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [46/107]
◆ SORTTPL_NAMEEXT [52/117]
◆ SORTTPL_KEYTYPE [52/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [47/107]
◆ SORTTPL_FIELD2TYPE [37/87]
◆ SORTTPL_NAMEEXT [53/117]
◆ SORTTPL_KEYTYPE [53/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [48/107]
◆ SORTTPL_FIELD2TYPE [38/87]
◆ SORTTPL_FIELD3TYPE [21/53]
◆ SORTTPL_NAMEEXT [54/117]
◆ SORTTPL_KEYTYPE [54/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [49/107]
◆ SORTTPL_FIELD2TYPE [39/87]
◆ SORTTPL_FIELD3TYPE [22/53]
◆ SORTTPL_FIELD4TYPE [7/22]
◆ SORTTPL_NAMEEXT [55/117]
◆ SORTTPL_KEYTYPE [55/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [50/107]
◆ SORTTPL_FIELD2TYPE [40/87]
◆ SORTTPL_FIELD3TYPE [23/53]
◆ SORTTPL_FIELD4TYPE [8/22]
◆ SORTTPL_FIELD5TYPE [2/6]
◆ SORTTPL_NAMEEXT [56/117]
◆ SORTTPL_KEYTYPE [56/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [51/107]
◆ SORTTPL_FIELD2TYPE [41/87]
◆ SORTTPL_FIELD3TYPE [24/53]
◆ SORTTPL_NAMEEXT [57/117]
◆ SORTTPL_KEYTYPE [57/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [52/107]
◆ SORTTPL_FIELD2TYPE [42/87]
◆ SORTTPL_FIELD3TYPE [25/53]
◆ SORTTPL_FIELD4TYPE [9/22]
◆ SORTTPL_NAMEEXT [58/117]
◆ SORTTPL_KEYTYPE [58/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [53/107]
◆ SORTTPL_FIELD2TYPE [43/87]
◆ SORTTPL_FIELD3TYPE [26/53]
◆ SORTTPL_FIELD4TYPE [10/22]
◆ SORTTPL_NAMEEXT [59/117]
◆ SORTTPL_KEYTYPE [59/117]
◆ SORTTPL_FIELD1TYPE [54/107]
◆ SORTTPL_FIELD2TYPE [44/87]
◆ SORTTPL_FIELD3TYPE [27/53]
◆ SORTTPL_FIELD4TYPE [11/22]
◆ SORTTPL_PTRCOMP [20/37]
◆ SORTTPL_NAMEEXT [60/117]
◆ SORTTPL_KEYTYPE [60/117]
◆ SORTTPL_FIELD1TYPE [55/107]
◆ SORTTPL_FIELD2TYPE [45/87]
◆ SORTTPL_FIELD3TYPE [28/53]
◆ SORTTPL_FIELD4TYPE [12/22]
◆ SORTTPL_FIELD5TYPE [3/6]
◆ SORTTPL_NAMEEXT [61/117]
◆ SORTTPL_KEYTYPE [61/117]
◆ SORTTPL_INDCOMP [2/2]
◆ SORTTPL_BACKWARDS [1/56]
◆ SORTTPL_NAMEEXT [62/117]
◆ SORTTPL_KEYTYPE [62/117]
◆ SORTTPL_PTRCOMP [21/37]
◆ SORTTPL_BACKWARDS [2/56]
◆ SORTTPL_NAMEEXT [63/117]
◆ SORTTPL_KEYTYPE [63/117]
◆ SORTTPL_FIELD1TYPE [56/107]
◆ SORTTPL_PTRCOMP [22/37]
◆ SORTTPL_BACKWARDS [3/56]
◆ SORTTPL_NAMEEXT [64/117]
◆ SORTTPL_KEYTYPE [64/117]
◆ SORTTPL_FIELD1TYPE [57/107]
◆ SORTTPL_PTRCOMP [23/37]
◆ SORTTPL_BACKWARDS [4/56]
◆ SORTTPL_NAMEEXT [65/117]
◆ SORTTPL_KEYTYPE [65/117]
◆ SORTTPL_FIELD1TYPE [58/107]
◆ SORTTPL_PTRCOMP [24/37]
◆ SORTTPL_BACKWARDS [5/56]
◆ SORTTPL_NAMEEXT [66/117]
◆ SORTTPL_KEYTYPE [66/117]
◆ SORTTPL_FIELD1TYPE [59/107]
◆ SORTTPL_PTRCOMP [25/37]
◆ SORTTPL_BACKWARDS [6/56]
◆ SORTTPL_NAMEEXT [67/117]
◆ SORTTPL_KEYTYPE [67/117]
◆ SORTTPL_FIELD1TYPE [60/107]
◆ SORTTPL_FIELD2TYPE [46/87]
◆ SORTTPL_PTRCOMP [26/37]
◆ SORTTPL_BACKWARDS [7/56]
◆ SORTTPL_NAMEEXT [68/117]
◆ SORTTPL_KEYTYPE [68/117]
◆ SORTTPL_FIELD1TYPE [61/107]
◆ SORTTPL_FIELD2TYPE [47/87]
◆ SORTTPL_PTRCOMP [27/37]
◆ SORTTPL_BACKWARDS [8/56]
◆ SORTTPL_NAMEEXT [69/117]
◆ SORTTPL_KEYTYPE [69/117]
◆ SORTTPL_FIELD1TYPE [62/107]
◆ SORTTPL_FIELD2TYPE [48/87]
◆ SORTTPL_PTRCOMP [28/37]
◆ SORTTPL_BACKWARDS [9/56]
◆ SORTTPL_NAMEEXT [70/117]
◆ SORTTPL_KEYTYPE [70/117]
◆ SORTTPL_FIELD1TYPE [63/107]
◆ SORTTPL_FIELD2TYPE [49/87]
◆ SORTTPL_PTRCOMP [29/37]
◆ SORTTPL_BACKWARDS [10/56]
◆ SORTTPL_NAMEEXT [71/117]
◆ SORTTPL_KEYTYPE [71/117]
◆ SORTTPL_FIELD1TYPE [64/107]
◆ SORTTPL_FIELD2TYPE [50/87]
◆ SORTTPL_PTRCOMP [30/37]
◆ SORTTPL_BACKWARDS [11/56]
◆ SORTTPL_NAMEEXT [72/117]
◆ SORTTPL_KEYTYPE [72/117]
◆ SORTTPL_FIELD1TYPE [65/107]
◆ SORTTPL_FIELD2TYPE [51/87]
◆ SORTTPL_FIELD3TYPE [29/53]
◆ SORTTPL_PTRCOMP [31/37]
◆ SORTTPL_BACKWARDS [12/56]
◆ SORTTPL_NAMEEXT [73/117]
◆ SORTTPL_KEYTYPE [73/117]
◆ SORTTPL_FIELD1TYPE [66/107]
◆ SORTTPL_FIELD2TYPE [52/87]
◆ SORTTPL_FIELD3TYPE [30/53]
◆ SORTTPL_PTRCOMP [32/37]
◆ SORTTPL_BACKWARDS [13/56]
◆ SORTTPL_NAMEEXT [74/117]
◆ SORTTPL_KEYTYPE [74/117]
◆ SORTTPL_FIELD1TYPE [67/107]
◆ SORTTPL_FIELD2TYPE [53/87]
◆ SORTTPL_FIELD3TYPE [31/53]
◆ SORTTPL_PTRCOMP [33/37]
◆ SORTTPL_BACKWARDS [14/56]
◆ SORTTPL_NAMEEXT [75/117]
◆ SORTTPL_KEYTYPE [75/117]
◆ SORTTPL_FIELD1TYPE [68/107]
◆ SORTTPL_FIELD2TYPE [54/87]
◆ SORTTPL_FIELD3TYPE [32/53]
◆ SORTTPL_PTRCOMP [34/37]
◆ SORTTPL_BACKWARDS [15/56]
◆ SORTTPL_NAMEEXT [76/117]
◆ SORTTPL_KEYTYPE [76/117]
◆ SORTTPL_FIELD1TYPE [69/107]
◆ SORTTPL_FIELD2TYPE [55/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_FIELD3TYPE [33/53]
◆ SORTTPL_PTRCOMP [35/37]
◆ SORTTPL_BACKWARDS [16/56]
◆ SORTTPL_NAMEEXT [77/117]
◆ SORTTPL_KEYTYPE [77/117]
◆ SORTTPL_FIELD1TYPE [70/107]
◆ SORTTPL_FIELD2TYPE [56/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_FIELD3TYPE [34/53]
◆ SORTTPL_FIELD4TYPE [13/22]
◆ SORTTPL_PTRCOMP [36/37]
◆ SORTTPL_BACKWARDS [17/56]
◆ SORTTPL_NAMEEXT [78/117]
◆ SORTTPL_KEYTYPE [78/117]
◆ SORTTPL_BACKWARDS [18/56]
◆ SORTTPL_NAMEEXT [79/117]
◆ SORTTPL_KEYTYPE [79/117]
◆ SORTTPL_FIELD1TYPE [71/107]
◆ SORTTPL_FIELD2TYPE [57/87]
◆ SORTTPL_BACKWARDS [19/56]
◆ SORTTPL_NAMEEXT [80/117]
◆ SORTTPL_KEYTYPE [80/117]
◆ SORTTPL_FIELD1TYPE [72/107]
◆ SORTTPL_BACKWARDS [20/56]
◆ SORTTPL_NAMEEXT [81/117]
◆ SORTTPL_KEYTYPE [81/117]
◆ SORTTPL_FIELD1TYPE [73/107]
◆ SORTTPL_BACKWARDS [21/56]
◆ SORTTPL_NAMEEXT [82/117]
◆ SORTTPL_KEYTYPE [82/117]
◆ SORTTPL_FIELD1TYPE [74/107]
◆ SORTTPL_FIELD2TYPE [58/87]
◆ SORTTPL_BACKWARDS [22/56]
◆ SORTTPL_NAMEEXT [83/117]
◆ SORTTPL_KEYTYPE [83/117]
◆ SORTTPL_FIELD1TYPE [75/107]
◆ SORTTPL_FIELD2TYPE [59/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_BACKWARDS [23/56]
◆ SORTTPL_NAMEEXT [84/117]
◆ SORTTPL_KEYTYPE [84/117]
◆ SORTTPL_FIELD1TYPE [76/107]
◆ SORTTPL_FIELD2TYPE [60/87]
◆ SORTTPL_BACKWARDS [24/56]
◆ SORTTPL_NAMEEXT [85/117]
◆ SORTTPL_KEYTYPE [85/117]
◆ SORTTPL_FIELD1TYPE [77/107]
◆ SORTTPL_FIELD2TYPE [61/87]
◆ SORTTPL_BACKWARDS [25/56]
◆ SORTTPL_NAMEEXT [86/117]
◆ SORTTPL_KEYTYPE [86/117]
◆ SORTTPL_FIELD1TYPE [78/107]
◆ SORTTPL_FIELD2TYPE [62/87]
◆ SORTTPL_BACKWARDS [26/56]
◆ SORTTPL_NAMEEXT [87/117]
◆ SORTTPL_KEYTYPE [87/117]
◆ SORTTPL_FIELD1TYPE [79/107]
◆ SORTTPL_FIELD2TYPE [63/87]
◆ SORTTPL_BACKWARDS [27/56]
◆ SORTTPL_NAMEEXT [88/117]
◆ SORTTPL_KEYTYPE [88/117]
◆ SORTTPL_FIELD1TYPE [80/107]
◆ SORTTPL_FIELD2TYPE [64/87]
◆ SORTTPL_FIELD3TYPE [35/53]
◆ SORTTPL_BACKWARDS [28/56]
◆ SORTTPL_NAMEEXT [89/117]
◆ SORTTPL_KEYTYPE [89/117]
◆ SORTTPL_FIELD1TYPE [81/107]
#define SORTTPL_FIELD1TYPE SCIP_Longint |
◆ SORTTPL_FIELD2TYPE [65/87]
◆ SORTTPL_FIELD3TYPE [36/53]
◆ SORTTPL_BACKWARDS [29/56]
◆ SORTTPL_NAMEEXT [90/117]
◆ SORTTPL_KEYTYPE [90/117]
◆ SORTTPL_FIELD1TYPE [82/107]
◆ SORTTPL_FIELD2TYPE [66/87]
◆ SORTTPL_FIELD3TYPE [37/53]
◆ SORTTPL_BACKWARDS [30/56]
◆ SORTTPL_NAMEEXT [91/117]
◆ SORTTPL_KEYTYPE [91/117]
◆ SORTTPL_FIELD1TYPE [83/107]
◆ SORTTPL_FIELD2TYPE [67/87]
◆ SORTTPL_FIELD3TYPE [38/53]
◆ SORTTPL_BACKWARDS [31/56]
◆ SORTTPL_NAMEEXT [92/117]
◆ SORTTPL_KEYTYPE [92/117]
◆ SORTTPL_FIELD1TYPE [84/107]
◆ SORTTPL_FIELD2TYPE [68/87]
◆ SORTTPL_FIELD3TYPE [39/53]
◆ SORTTPL_BACKWARDS [32/56]
◆ SORTTPL_NAMEEXT [93/117]
◆ SORTTPL_KEYTYPE [93/117]
◆ SORTTPL_FIELD1TYPE [85/107]
◆ SORTTPL_FIELD2TYPE [69/87]
◆ SORTTPL_FIELD3TYPE [40/53]
◆ SORTTPL_BACKWARDS [33/56]
◆ SORTTPL_NAMEEXT [94/117]
◆ SORTTPL_KEYTYPE [94/117]
◆ SORTTPL_FIELD1TYPE [86/107]
◆ SORTTPL_FIELD2TYPE [70/87]
◆ SORTTPL_FIELD3TYPE [41/53]
◆ SORTTPL_FIELD4TYPE [14/22]
◆ SORTTPL_BACKWARDS [34/56]
◆ SORTTPL_NAMEEXT [95/117]
◆ SORTTPL_KEYTYPE [95/117]
◆ SORTTPL_FIELD1TYPE [87/107]
◆ SORTTPL_FIELD2TYPE [71/87]
◆ SORTTPL_FIELD3TYPE [42/53]
◆ SORTTPL_FIELD4TYPE [15/22]
◆ SORTTPL_BACKWARDS [35/56]
◆ SORTTPL_NAMEEXT [96/117]
◆ SORTTPL_KEYTYPE [96/117]
◆ SORTTPL_FIELD1TYPE [88/107]
◆ SORTTPL_FIELD2TYPE [72/87]
◆ SORTTPL_FIELD3TYPE [43/53]
◆ SORTTPL_FIELD4TYPE [16/22]
◆ SORTTPL_FIELD5TYPE [4/6]
◆ SORTTPL_NAMEEXT [97/117]
◆ SORTTPL_KEYTYPE [97/117]
◆ SORTTPL_BACKWARDS [36/56]
◆ SORTTPL_NAMEEXT [98/117]
◆ SORTTPL_KEYTYPE [98/117]
◆ SORTTPL_FIELD1TYPE [89/107]
◆ SORTTPL_BACKWARDS [37/56]
◆ SORTTPL_NAMEEXT [99/117]
◆ SORTTPL_KEYTYPE [99/117]
◆ SORTTPL_FIELD1TYPE [90/107]
◆ SORTTPL_FIELD2TYPE [73/87]
◆ SORTTPL_BACKWARDS [38/56]
◆ SORTTPL_NAMEEXT [100/117]
◆ SORTTPL_KEYTYPE [100/117]
◆ SORTTPL_FIELD1TYPE [91/107]
◆ SORTTPL_BACKWARDS [39/56]
◆ SORTTPL_NAMEEXT [101/117]
◆ SORTTPL_KEYTYPE [101/117]
◆ SORTTPL_FIELD1TYPE [92/107]
◆ SORTTPL_BACKWARDS [40/56]
◆ SORTTPL_NAMEEXT [102/117]
◆ SORTTPL_KEYTYPE [102/117]
◆ SORTTPL_FIELD1TYPE [93/107]
◆ SORTTPL_FIELD2TYPE [74/87]
◆ SORTTPL_BACKWARDS [41/56]
◆ SORTTPL_NAMEEXT [103/117]
◆ SORTTPL_KEYTYPE [103/117]
◆ SORTTPL_FIELD1TYPE [94/107]
◆ SORTTPL_FIELD2TYPE [75/87]
#define SORTTPL_FIELD2TYPE SCIP_Longint |
◆ SORTTPL_BACKWARDS [42/56]
◆ SORTTPL_NAMEEXT [104/117]
◆ SORTTPL_KEYTYPE [104/117]
◆ SORTTPL_FIELD1TYPE [95/107]
◆ SORTTPL_FIELD2TYPE [76/87]
◆ SORTTPL_BACKWARDS [43/56]
◆ SORTTPL_NAMEEXT [105/117]
◆ SORTTPL_KEYTYPE [105/117]
◆ SORTTPL_FIELD1TYPE [96/107]
◆ SORTTPL_FIELD2TYPE [77/87]
◆ SORTTPL_FIELD3TYPE [44/53]
◆ SORTTPL_BACKWARDS [44/56]
◆ SORTTPL_NAMEEXT [106/117]
◆ SORTTPL_KEYTYPE [106/117]
◆ SORTTPL_FIELD1TYPE [97/107]
◆ SORTTPL_FIELD2TYPE [78/87]
◆ SORTTPL_FIELD3TYPE [45/53]
◆ SORTTPL_BACKWARDS [45/56]
◆ SORTTPL_NAMEEXT [107/117]
◆ SORTTPL_KEYTYPE [107/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_BACKWARDS [46/56]
◆ SORTTPL_NAMEEXT [108/117]
◆ SORTTPL_KEYTYPE [108/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [98/107]
◆ SORTTPL_BACKWARDS [47/56]
◆ SORTTPL_NAMEEXT [109/117]
◆ SORTTPL_KEYTYPE [109/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [99/107]
◆ SORTTPL_FIELD2TYPE [79/87]
◆ SORTTPL_BACKWARDS [48/56]
◆ SORTTPL_NAMEEXT [110/117]
◆ SORTTPL_KEYTYPE [110/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [100/107]
◆ SORTTPL_FIELD2TYPE [80/87]
◆ SORTTPL_FIELD3TYPE [46/53]
◆ SORTTPL_BACKWARDS [49/56]
◆ SORTTPL_NAMEEXT [111/117]
◆ SORTTPL_KEYTYPE [111/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [101/107]
◆ SORTTPL_FIELD2TYPE [81/87]
◆ SORTTPL_FIELD3TYPE [47/53]
◆ SORTTPL_FIELD4TYPE [17/22]
◆ SORTTPL_BACKWARDS [50/56]
◆ SORTTPL_NAMEEXT [112/117]
◆ SORTTPL_KEYTYPE [112/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [102/107]
◆ SORTTPL_FIELD2TYPE [82/87]
◆ SORTTPL_FIELD3TYPE [48/53]
◆ SORTTPL_FIELD4TYPE [18/22]
◆ SORTTPL_FIELD5TYPE [5/6]
◆ SORTTPL_BACKWARDS [51/56]
◆ SORTTPL_NAMEEXT [113/117]
◆ SORTTPL_KEYTYPE [113/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [103/107]
◆ SORTTPL_FIELD2TYPE [83/87]
◆ SORTTPL_FIELD3TYPE [49/53]
◆ SORTTPL_BACKWARDS [52/56]
◆ SORTTPL_NAMEEXT [114/117]
◆ SORTTPL_KEYTYPE [114/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [104/107]
◆ SORTTPL_FIELD2TYPE [84/87]
◆ SORTTPL_FIELD3TYPE [50/53]
◆ SORTTPL_FIELD4TYPE [19/22]
◆ SORTTPL_BACKWARDS [53/56]
◆ SORTTPL_NAMEEXT [115/117]
◆ SORTTPL_KEYTYPE [115/117]
#define SORTTPL_KEYTYPE SCIP_Longint |
◆ SORTTPL_FIELD1TYPE [105/107]
◆ SORTTPL_FIELD2TYPE [85/87]
◆ SORTTPL_FIELD3TYPE [51/53]
◆ SORTTPL_FIELD4TYPE [20/22]
◆ SORTTPL_BACKWARDS [54/56]
◆ SORTTPL_NAMEEXT [116/117]
◆ SORTTPL_KEYTYPE [116/117]
◆ SORTTPL_FIELD1TYPE [106/107]
◆ SORTTPL_FIELD2TYPE [86/87]
◆ SORTTPL_FIELD3TYPE [52/53]
◆ SORTTPL_FIELD4TYPE [21/22]
◆ SORTTPL_PTRCOMP [37/37]
◆ SORTTPL_BACKWARDS [55/56]
◆ SORTTPL_NAMEEXT [117/117]
◆ SORTTPL_KEYTYPE [117/117]
◆ SORTTPL_FIELD1TYPE [107/107]
◆ SORTTPL_FIELD2TYPE [87/87]
◆ SORTTPL_FIELD3TYPE [53/53]
◆ SORTTPL_FIELD4TYPE [22/22]
◆ SORTTPL_FIELD5TYPE [6/6]
◆ SORTTPL_BACKWARDS [56/56]
◆ STARTSUCCESSORSSIZE
#define STARTSUCCESSORSSIZE 5 |
Definition at line 7523 of file misc.c.
Referenced by ensureSuccessorsSize().
◆ SCIP_RAND_MAX
#define SCIP_RAND_MAX RAND_MAX |
Definition at line 9845 of file misc.c.
Referenced by getRandomInt(), getRandomReal(), and SCIPcalcRootNewton().
◆ DEFAULT_SEED
#define DEFAULT_SEED UINT32_C(123456789) |
Definition at line 9926 of file misc.c.
Referenced by SCIPrandomSetSeed().
◆ DEFAULT_XOR
#define DEFAULT_XOR UINT32_C(362436000) |
Definition at line 9927 of file misc.c.
Referenced by SCIPrandomSetSeed().
◆ DEFAULT_MWC
#define DEFAULT_MWC UINT32_C(521288629) |
Definition at line 9928 of file misc.c.
Referenced by SCIPrandomSetSeed().
◆ DEFAULT_CST
#define DEFAULT_CST UINT32_C(7654321) |
Definition at line 9929 of file misc.c.
Referenced by SCIPrandomSetSeed().
Function Documentation
◆ regressionRecompute()
|
static |
recomputes regression coefficients from available observation data
- Parameters
-
regression regression data structure
Definition at line 284 of file misc.c.
References SCIP_Regression::corrcoef, EPSZ, SCIP_Regression::intercept, SCIP_Regression::meanx, SCIP_Regression::meany, SCIP_Regression::nobservations, SCIP_INVALID, SCIP_Regression::slope, SCIP_Regression::sumxy, SCIP_Regression::variancesumx, and SCIP_Regression::variancesumy.
Referenced by SCIPregressionAddObservation(), and SCIPregressionRemoveObservation().
◆ incrementalStatsUpdate()
|
static |
- Parameters
-
value current value to be added to incremental statistics meanptr pointer to value of current mean sumvarptr pointer to the value of the current variance sum term nobservations total number of observations add TRUE if the value should be added, FALSE for removing it
Definition at line 322 of file misc.c.
References MAX, NULL, and SCIP_Real.
Referenced by SCIPregressionAddObservation(), and SCIPregressionRemoveObservation().
◆ calcGrowSize()
|
static |
calculate memory size for dynamically allocated arrays (copied from scip/set.c)
- Parameters
-
initsize initial size of array growfac growing factor of array num minimum number of entries to store
Definition at line 440 of file misc.c.
References MAX.
Referenced by SCIPboolarrayExtend(), SCIPintarrayExtend(), SCIPptrarrayExtend(), and SCIPrealarrayExtend().
◆ queueResize()
|
static |
resizes element memory to hold at least the given number of elements
- Parameters
-
queue pointer to a queue minsize minimal number of storable elements
Definition at line 924 of file misc.c.
References BMSreallocMemoryArray, MAX, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Queue::size, SCIP_Queue::sizefac, and SCIP_Queue::slots.
Referenced by queueCheckSize(), and SCIPqueueCreate().
◆ queueCheckSize()
|
static |
reallocates slots if queue is necessary
- Parameters
-
queue queue
Definition at line 990 of file misc.c.
References BMSmoveMemoryArray, SCIP_Queue::firstfree, SCIP_Queue::firstused, queueResize(), SCIP_CALL, SCIP_OKAY, SCIP_Queue::size, and SCIP_Queue::slots.
Referenced by SCIPqueueInsert(), and SCIPqueueInsertUInt().
◆ queueCheckMarker()
|
static |
checks and adjusts marker of first free and first used slot
- Parameters
-
queue queue
Definition at line 1015 of file misc.c.
References SCIP_Queue::firstfree, SCIP_Queue::firstused, and SCIP_Queue::size.
Referenced by SCIPqueueInsert(), and SCIPqueueInsertUInt().
◆ pqueueResize()
|
static |
resizes element memory to hold at least the given number of elements
- Parameters
-
pqueue pointer to a priority queue minsize minimal number of storable elements
Definition at line 1228 of file misc.c.
References BMSreallocMemoryArray, MAX, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_PQueue::size, SCIP_PQueue::sizefac, and SCIP_PQueue::slots.
Referenced by SCIPpqueueCreate(), and SCIPpqueueInsert().
◆ pqueueElemChgPos()
|
static |
assign element to new slot in priority queue
- Parameters
-
pqueue priority queue elem element whose position changes oldpos old position or -1 if elem is newly inserted newpos new position
Definition at line 1294 of file misc.c.
References FALSE, NULL, PQ_LEFTCHILD, PQ_PARENT, PQ_RIGHTCHILD, SCIP_Bool, SCIPpqueueNElems(), SCIP_PQueue::slots, and TRUE.
Referenced by SCIPpqueueDelPos(), and SCIPpqueueInsert().
◆ hashvalue()
|
static |
simple and fast 2-universal hash function using multiply and shift
- Parameters
-
input key value
Definition at line 1579 of file misc.c.
Referenced by hashmapLookup(), SCIPhashmapInsert(), SCIPhashmapInsertInt(), SCIPhashmapInsertReal(), SCIPhashmapSetImage(), SCIPhashmapSetImageInt(), SCIPhashmapSetImageReal(), SCIPhashtableInsert(), SCIPhashtableRemove(), SCIPhashtableRetrieve(), and SCIPhashtableSafeInsert().
◆ multihashlistAppend()
|
static |
appends element to the multihash list
- Parameters
-
multihashlist pointer to hash list blkmem block memory element element to append to the list
Definition at line 1601 of file misc.c.
References BMSallocBlockMemory, SCIP_MultiHashList::element, SCIP_MultiHashList::next, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by multihashResize(), and SCIPmultihashInsert().
◆ multihashlistFree()
|
static |
frees a multihash list entry and all its successors
- Parameters
-
multihashlist pointer to multihash list to free blkmem block memory
Definition at line 1623 of file misc.c.
References BMSfreeBlockMemory, SCIP_MultiHashList::next, and NULL.
Referenced by SCIPmultihashFree(), and SCIPmultihashRemoveAll().
◆ multihashlistFind()
|
static |
finds multihash list entry pointing to element with given key in the multihash list, returns NULL if not found
- Parameters
-
multihashlist multihash list userptr user pointer keyval hash value of key key key to retrieve
Definition at line 1647 of file misc.c.
References SCIP_MultiHashList::element, SCIP_MultiHashList::next, and NULL.
Referenced by multihashlistRetrieve(), multihashlistRetrieveNext(), and SCIPmultihashExists().
◆ multihashlistRetrieve()
|
static |
retrieves element with given key from the multihash list, or NULL
- Parameters
-
multihashlist hash list userptr user pointer keyval hash value of key key key to retrieve
Definition at line 1678 of file misc.c.
References SCIP_MultiHashList::element, h, multihashlistFind(), SCIP_MultiHashList::next, NULL, and SCIPerrorMessage.
Referenced by SCIPmultihashRetrieve().
◆ multihashlistRetrieveNext()
|
static |
retrieves element with given key from the multihash list, or NULL returns pointer to multihash table list entry
- Parameters
-
multihashlist on input: hash list to search; on exit: hash list entry corresponding to element after retrieved one, or NULL userptr user pointer keyval hash value of key key key to retrieve
Definition at line 1728 of file misc.c.
References SCIP_MultiHashList::element, h, multihashlistFind(), SCIP_MultiHashList::next, and NULL.
Referenced by SCIPmultihashRetrieveNext().
◆ multihashlistRemove()
|
static |
removes element from the multihash list
- Parameters
-
multihashlist pointer to hash list blkmem block memory element element to remove from the list
Definition at line 1761 of file misc.c.
References BMSfreeBlockMemory, FALSE, SCIP_MultiHashList::next, NULL, and TRUE.
Referenced by SCIPmultihashRemove().
◆ multihashResize()
|
static |
resizing(increasing) the given multihash
- Parameters
-
multihash hash table
Definition at line 1794 of file misc.c.
References SCIP_MultiHash::blkmem, BMSallocClearBlockMemoryArray, BMSfreeBlockMemoryArray, SCIP_MultiHashList::element, FALSE, SCIP_MultiHash::lists, MAX, multihashlistAppend(), SCIP_MultiHash::nelements, SCIP_MultiHashList::next, SCIP_MultiHash::nlists, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_MULTIHASH_GROW_FACTOR, SCIP_MULTIHASH_MAXSIZE, SCIP_OKAY, SCIPdebugMessage, SCIPmultihashGetLoad(), SCIPmultihashRemoveAll(), TRUE, and SCIP_MultiHash::userptr.
Referenced by SCIPmultihashInsert().
◆ hashtableInsert()
|
static |
inserts element in hash table (multiple inserts of same element overrides previous one)
- Parameters
-
hashtable hash table element element to insert into the table key key of element hashval hash value of element override should element be overridden or an error be returned if already existing
Definition at line 2360 of file misc.c.
References ELEM_DISTANCE, FALSE, SCIP_HashTable::hashes, SCIP_HashTable::mask, SCIP_HashTable::nelements, NULL, SCIP_Bool, SCIP_KEYALREADYEXISTING, SCIP_OKAY, SCIPswapPointers(), SCIP_HashTable::shift, SCIP_HashTable::slots, TRUE, and SCIP_HashTable::userptr.
Referenced by hashtableCheckLoad(), SCIPhashtableInsert(), and SCIPhashtableSafeInsert().
◆ hashtableCheckLoad()
|
static |
check if the load factor of the hashtable is too high and rebuild if necessary
- Parameters
-
hashtable hash table
Definition at line 2444 of file misc.c.
References SCIP_HashTable::blkmem, BMSallocBlockMemoryArray, BMSallocClearBlockMemoryArray, BMSfreeBlockMemoryArray, FALSE, SCIP_HashTable::hashes, hashtableInsert(), SCIP_HashTable::mask, SCIP_HashTable::nelements, NULL, SCIP_ALLOC, SCIP_CALL_ABORT, SCIP_OKAY, SCIPswapPointers(), SCIP_HashTable::shift, SCIP_HashTable::slots, and SCIP_HashTable::userptr.
Referenced by SCIPhashtableInsert(), and SCIPhashtableSafeInsert().
◆ hashmapInsert()
|
static |
inserts element in hash table
- Parameters
-
hashmap hash map origin element to insert into the table image key of element hashval hash value of element override should element be overridden or error be returned if already existing
Definition at line 2852 of file misc.c.
References ELEM_DISTANCE, SCIP_HashMap::hashes, SCIP_HashMapEntry::image, SCIP_HashMap::mask, SCIP_HashMap::nelements, NULL, SCIP_HashMapEntry::origin, SCIP_KEYALREADYEXISTING, SCIP_OKAY, SCIPswapPointers(), SCIP_HashMap::shift, SCIP_HashMap::slots, and TRUE.
Referenced by hashmapCheckLoad(), SCIPhashmapInsert(), SCIPhashmapInsertInt(), SCIPhashmapInsertReal(), SCIPhashmapSetImage(), SCIPhashmapSetImageInt(), and SCIPhashmapSetImageReal().
◆ hashmapLookup()
|
static |
lookup origin in the hashmap. If element is found returns true and the position of the element, otherwise returns FALSE.
- Parameters
-
hashmap hash table origin origin to lookup pos pointer to store position of element, if exists
Definition at line 2928 of file misc.c.
References ELEM_DISTANCE, FALSE, SCIP_HashMap::hashes, hashvalue(), SCIP_HashMap::mask, NULL, SCIP_HashMapEntry::origin, SCIP_HashMap::shift, SCIP_HashMap::slots, and TRUE.
Referenced by SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPhashmapGetImageInt(), SCIPhashmapGetImageReal(), and SCIPhashmapRemove().
◆ hashmapCheckLoad()
|
static |
check if the load factor of the hashmap is too high and rebuild if necessary
- Parameters
-
hashmap hash table
Definition at line 2973 of file misc.c.
References SCIP_HashMap::blkmem, BMSallocBlockMemoryArray, BMSallocClearBlockMemoryArray, BMSfreeBlockMemoryArray, FALSE, SCIP_HashMap::hashes, hashmapInsert(), SCIP_HashMap::mask, SCIP_HashMap::nelements, NULL, SCIP_ALLOC, SCIP_CALL_ABORT, SCIP_OKAY, SCIPswapPointers(), SCIP_HashMap::shift, and SCIP_HashMap::slots.
Referenced by SCIPhashmapInsert(), SCIPhashmapInsertInt(), SCIPhashmapInsertReal(), SCIPhashmapSetImage(), SCIPhashmapSetImageInt(), and SCIPhashmapSetImageReal().
◆ hashSetDesiredPos()
|
static |
- Parameters
-
hashset the hash set element element to calculate position for
Definition at line 3608 of file misc.c.
References SCIP_HashSet::shift.
Referenced by hashsetInsert(), SCIPhashsetExists(), SCIPhashsetPrintStatistics(), and SCIPhashsetRemove().
◆ hashsetInsert()
|
static |
- Parameters
-
hashset hash set element element to insert
Definition at line 3617 of file misc.c.
References ELEM_DISTANCE, hashSetDesiredPos(), SCIP_HashSet::nelements, NULL, SCIPhashsetGetNSlots(), SCIPswapPointers(), SCIP_HashSet::slots, and TRUE.
Referenced by hashsetCheckLoad(), and SCIPhashsetInsert().
◆ hashsetCheckLoad()
|
static |
check if the load factor of the hash set is too high and rebuild if necessary
- Parameters
-
hashset hash set blkmem block memory used to store hash set entries
Definition at line 3668 of file misc.c.
References BMSallocClearBlockMemoryArray, BMSfreeBlockMemoryArray, hashsetInsert(), SCIP_HashSet::nelements, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPhashsetGetNSlots(), SCIPswapPointers(), SCIP_HashSet::shift, and SCIP_HashSet::slots.
Referenced by SCIPhashsetInsert().
◆ SCIPrealarrayCreate()
SCIP_RETCODE SCIPrealarrayCreate | ( | SCIP_REALARRAY ** | realarray, |
BMS_BLKMEM * | blkmem | ||
) |
creates a dynamic array of real values
- Parameters
-
realarray pointer to store the real array blkmem block memory
Definition at line 3980 of file misc.c.
References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPcreateRealarray(), SCIPrealarrayCopy(), SCIPsolCreate(), SCIPsolCreateOriginal(), SCIPsolCreatePartial(), and SCIPsolCreateUnknown().
◆ SCIPrealarrayCopy()
SCIP_RETCODE SCIPrealarrayCopy | ( | SCIP_REALARRAY ** | realarray, |
BMS_BLKMEM * | blkmem, | ||
SCIP_REALARRAY * | sourcerealarray | ||
) |
creates a copy of a dynamic array of real values
- Parameters
-
realarray pointer to store the copied real array blkmem block memory sourcerealarray dynamic real array to copy
Definition at line 4000 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().
◆ SCIPrealarrayFree()
SCIP_RETCODE SCIPrealarrayFree | ( | SCIP_REALARRAY ** | realarray | ) |
frees a dynamic array of real values
- Parameters
-
realarray pointer to the real array
Definition at line 4024 of file misc.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY.
Referenced by SCIPfreeRealarray(), and SCIPsolFree().
◆ SCIPrealarrayExtend()
SCIP_RETCODE SCIPrealarrayExtend | ( | SCIP_REALARRAY * | realarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | minidx, | ||
int | maxidx | ||
) |
extends dynamic array to be able to store indices from minidx to maxidx
- Parameters
-
realarray dynamic real array arraygrowinit initial size of array arraygrowfac growing factor of array minidx smallest index to allocate storage for maxidx largest index to allocate storage for
Definition at line 4038 of file misc.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_RealArray::firstidx, MAX, SCIP_RealArray::maxusedidx, SCIP_RealArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, and SCIP_RealArray::valssize.
Referenced by SCIPextendRealarray(), SCIPlpSumRows(), and SCIPrealarraySetVal().
◆ SCIPrealarrayClear()
SCIP_RETCODE SCIPrealarrayClear | ( | SCIP_REALARRAY * | realarray | ) |
clears a dynamic real array
- Parameters
-
realarray dynamic real array
Definition at line 4193 of file misc.c.
References BMSclearMemoryArray, SCIP_RealArray::firstidx, NULL, SCIP_OKAY, and SCIPdebugMessage.
Referenced by SCIPclearRealarray(), and SCIPlpSumRows().
◆ SCIPrealarrayGetVal()
SCIP_Real SCIPrealarrayGetVal | ( | SCIP_REALARRAY * | realarray, |
int | idx | ||
) |
gets value of entry in dynamic array
- Parameters
-
realarray dynamic real array idx array index to get value for
Definition at line 4224 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().
◆ SCIPrealarraySetVal()
SCIP_RETCODE SCIPrealarraySetVal | ( | SCIP_REALARRAY * | realarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
SCIP_Real | val | ||
) |
sets value of entry in dynamic array
- Parameters
-
realarray dynamic real array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to set value for val value to set array index to
Definition at line 4245 of file misc.c.
References SCIP_RealArray::firstidx, MAX, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPrealarrayExtend().
Referenced by SCIPrealarrayIncVal(), SCIPsetRealarrayVal(), SCIPsolMarkPartial(), solIncArrayVal(), and solSetArrayVal().
◆ SCIPrealarrayIncVal()
SCIP_RETCODE SCIPrealarrayIncVal | ( | SCIP_REALARRAY * | realarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
SCIP_Real | incval | ||
) |
increases value of entry in dynamic array
- Parameters
-
realarray dynamic real array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to increase value for incval value to increase array index
Definition at line 4314 of file misc.c.
References SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPrealarrayGetVal(), and SCIPrealarraySetVal().
Referenced by SCIPincRealarrayVal(), SCIPlpSumRows(), and solIncArrayVal().
◆ SCIPrealarrayGetMinIdx()
int SCIPrealarrayGetMinIdx | ( | SCIP_REALARRAY * | realarray | ) |
returns the minimal index of all stored non-zero elements
- Parameters
-
realarray dynamic real array
Definition at line 4332 of file misc.c.
References SCIP_RealArray::minusedidx, and NULL.
Referenced by SCIPgetRealarrayMinIdx().
◆ SCIPrealarrayGetMaxIdx()
int SCIPrealarrayGetMaxIdx | ( | SCIP_REALARRAY * | realarray | ) |
returns the maximal index of all stored non-zero elements
- Parameters
-
realarray dynamic real array
Definition at line 4342 of file misc.c.
References SCIP_RealArray::maxusedidx, and NULL.
Referenced by SCIPgetRealarrayMaxIdx().
◆ SCIPintarrayCreate()
SCIP_RETCODE SCIPintarrayCreate | ( | SCIP_INTARRAY ** | intarray, |
BMS_BLKMEM * | blkmem | ||
) |
creates a dynamic array of int values
- Parameters
-
intarray pointer to store the int array blkmem block memory
Definition at line 4352 of file misc.c.
References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPcreateIntarray(), and SCIPintarrayCopy().
◆ SCIPintarrayCopy()
SCIP_RETCODE SCIPintarrayCopy | ( | SCIP_INTARRAY ** | intarray, |
BMS_BLKMEM * | blkmem, | ||
SCIP_INTARRAY * | sourceintarray | ||
) |
creates a copy of a dynamic array of int values
- Parameters
-
intarray pointer to store the copied int array blkmem block memory sourceintarray dynamic int array to copy
Definition at line 4372 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.
◆ SCIPintarrayFree()
SCIP_RETCODE SCIPintarrayFree | ( | SCIP_INTARRAY ** | intarray | ) |
frees a dynamic array of int values
- Parameters
-
intarray pointer to the int array
Definition at line 4395 of file misc.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY.
Referenced by SCIPfreeIntarray().
◆ SCIPintarrayExtend()
SCIP_RETCODE SCIPintarrayExtend | ( | SCIP_INTARRAY * | intarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | minidx, | ||
int | maxidx | ||
) |
extends dynamic array to be able to store indices from minidx to maxidx
- Parameters
-
intarray dynamic int array arraygrowinit initial size of array arraygrowfac growing factor of array minidx smallest index to allocate storage for maxidx largest index to allocate storage for
Definition at line 4409 of file misc.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_IntArray::firstidx, MAX, SCIP_IntArray::maxusedidx, SCIP_IntArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, and SCIP_IntArray::valssize.
Referenced by SCIPextendIntarray(), and SCIPintarraySetVal().
◆ SCIPintarrayClear()
SCIP_RETCODE SCIPintarrayClear | ( | SCIP_INTARRAY * | intarray | ) |
clears a dynamic int array
- Parameters
-
intarray dynamic int array
Definition at line 4564 of file misc.c.
References BMSclearMemoryArray, SCIP_IntArray::firstidx, NULL, SCIP_OKAY, and SCIPdebugMessage.
Referenced by SCIPclearIntarray().
◆ SCIPintarrayGetVal()
int SCIPintarrayGetVal | ( | SCIP_INTARRAY * | intarray, |
int | idx | ||
) |
gets value of entry in dynamic array
- Parameters
-
intarray dynamic int array idx array index to get value for
Definition at line 4595 of file misc.c.
References SCIP_IntArray::firstidx, SCIP_IntArray::maxusedidx, NULL, SCIP_IntArray::vals, and SCIP_IntArray::valssize.
Referenced by SCIPgetIntarrayVal(), and SCIPintarrayIncVal().
◆ SCIPintarraySetVal()
SCIP_RETCODE SCIPintarraySetVal | ( | SCIP_INTARRAY * | intarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
int | val | ||
) |
sets value of entry in dynamic array
- Parameters
-
intarray dynamic int array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to set value for val value to set array index to
Definition at line 4616 of file misc.c.
References SCIP_IntArray::firstidx, MAX, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPintarrayExtend().
Referenced by SCIPintarrayIncVal(), and SCIPsetIntarrayVal().
◆ SCIPintarrayIncVal()
SCIP_RETCODE SCIPintarrayIncVal | ( | SCIP_INTARRAY * | intarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
int | incval | ||
) |
increases value of entry in dynamic array
- Parameters
-
intarray dynamic int array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to increase value for incval value to increase array index
Definition at line 4684 of file misc.c.
References SCIPintarrayGetVal(), and SCIPintarraySetVal().
Referenced by SCIPincIntarrayVal().
◆ SCIPintarrayGetMinIdx()
int SCIPintarrayGetMinIdx | ( | SCIP_INTARRAY * | intarray | ) |
returns the minimal index of all stored non-zero elements
- Parameters
-
intarray dynamic int array
Definition at line 4696 of file misc.c.
References SCIP_IntArray::minusedidx, and NULL.
Referenced by SCIPgetIntarrayMinIdx().
◆ SCIPintarrayGetMaxIdx()
int SCIPintarrayGetMaxIdx | ( | SCIP_INTARRAY * | intarray | ) |
returns the maximal index of all stored non-zero elements
- Parameters
-
intarray dynamic int array
Definition at line 4706 of file misc.c.
References SCIP_IntArray::maxusedidx, and NULL.
Referenced by SCIPgetIntarrayMaxIdx().
◆ SCIPboolarrayCreate()
SCIP_RETCODE SCIPboolarrayCreate | ( | SCIP_BOOLARRAY ** | boolarray, |
BMS_BLKMEM * | blkmem | ||
) |
creates a dynamic array of bool values
- Parameters
-
boolarray pointer to store the bool array blkmem block memory
Definition at line 4717 of file misc.c.
References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPboolarrayCopy(), SCIPcreateBoolarray(), SCIPsolCreate(), SCIPsolCreateOriginal(), SCIPsolCreatePartial(), and SCIPsolCreateUnknown().
◆ SCIPboolarrayCopy()
SCIP_RETCODE SCIPboolarrayCopy | ( | SCIP_BOOLARRAY ** | boolarray, |
BMS_BLKMEM * | blkmem, | ||
SCIP_BOOLARRAY * | sourceboolarray | ||
) |
creates a copy of a dynamic array of bool values
- Parameters
-
boolarray pointer to store the copied bool array blkmem block memory sourceboolarray dynamic bool array to copy
Definition at line 4737 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().
◆ SCIPboolarrayFree()
SCIP_RETCODE SCIPboolarrayFree | ( | SCIP_BOOLARRAY ** | boolarray | ) |
frees a dynamic array of bool values
- Parameters
-
boolarray pointer to the bool array
Definition at line 4761 of file misc.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY.
Referenced by SCIPfreeBoolarray(), and SCIPsolFree().
◆ SCIPboolarrayExtend()
SCIP_RETCODE SCIPboolarrayExtend | ( | SCIP_BOOLARRAY * | boolarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | minidx, | ||
int | maxidx | ||
) |
extends dynamic array to be able to store indices from minidx to maxidx
- Parameters
-
boolarray dynamic bool array arraygrowinit initial size of array arraygrowfac growing factor of array minidx smallest index to allocate storage for maxidx largest index to allocate storage for
Definition at line 4775 of file misc.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, BMSmoveMemoryArray, calcGrowSize(), FALSE, SCIP_BoolArray::firstidx, MAX, SCIP_BoolArray::maxusedidx, SCIP_BoolArray::minusedidx, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, and SCIP_BoolArray::valssize.
Referenced by SCIPboolarraySetVal(), and SCIPextendBoolarray().
◆ SCIPboolarrayClear()
SCIP_RETCODE SCIPboolarrayClear | ( | SCIP_BOOLARRAY * | boolarray | ) |
clears a dynamic bool array
- Parameters
-
boolarray dynamic bool array
Definition at line 4932 of file misc.c.
References BMSclearMemoryArray, SCIP_BoolArray::firstidx, NULL, SCIP_OKAY, and SCIPdebugMessage.
Referenced by SCIPclearBoolarray(), and solClearArrays().
◆ SCIPboolarrayGetVal()
SCIP_Bool SCIPboolarrayGetVal | ( | SCIP_BOOLARRAY * | boolarray, |
int | idx | ||
) |
gets value of entry in dynamic array
- Parameters
-
boolarray dynamic bool array idx array index to get value for
Definition at line 4963 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().
◆ SCIPboolarraySetVal()
SCIP_RETCODE SCIPboolarraySetVal | ( | SCIP_BOOLARRAY * | boolarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
SCIP_Bool | val | ||
) |
sets value of entry in dynamic array
- Parameters
-
boolarray dynamic bool array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to set value for val value to set array index to
Definition at line 4984 of file misc.c.
References FALSE, SCIP_BoolArray::firstidx, MAX, NULL, SCIP_CALL, SCIP_OKAY, SCIPboolarrayExtend(), and SCIPdebugMessage.
Referenced by SCIPsetBoolarrayVal(), SCIPsolMarkPartial(), solIncArrayVal(), and solSetArrayVal().
◆ SCIPboolarrayGetMinIdx()
int SCIPboolarrayGetMinIdx | ( | SCIP_BOOLARRAY * | boolarray | ) |
returns the minimal index of all stored non-zero elements
- Parameters
-
boolarray dynamic bool array
Definition at line 5052 of file misc.c.
References SCIP_BoolArray::minusedidx, and NULL.
Referenced by SCIPgetBoolarrayMinIdx().
◆ SCIPboolarrayGetMaxIdx()
int SCIPboolarrayGetMaxIdx | ( | SCIP_BOOLARRAY * | boolarray | ) |
returns the maximal index of all stored non-zero elements
- Parameters
-
boolarray dynamic bool array
Definition at line 5062 of file misc.c.
References SCIP_BoolArray::maxusedidx, and NULL.
Referenced by SCIPgetBoolarrayMaxIdx().
◆ SCIPptrarrayCreate()
SCIP_RETCODE SCIPptrarrayCreate | ( | SCIP_PTRARRAY ** | ptrarray, |
BMS_BLKMEM * | blkmem | ||
) |
creates a dynamic array of pointer values
- Parameters
-
ptrarray pointer to store the ptr array blkmem block memory
Definition at line 5073 of file misc.c.
References BMSallocBlockMemory, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPcreatePtrarray(), and SCIPptrarrayCopy().
◆ SCIPptrarrayCopy()
SCIP_RETCODE SCIPptrarrayCopy | ( | SCIP_PTRARRAY ** | ptrarray, |
BMS_BLKMEM * | blkmem, | ||
SCIP_PTRARRAY * | sourceptrarray | ||
) |
creates a copy of a dynamic array of pointer values
- Parameters
-
ptrarray pointer to store the copied ptr array blkmem block memory sourceptrarray dynamic ptr array to copy
Definition at line 5093 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.
◆ SCIPptrarrayFree()
SCIP_RETCODE SCIPptrarrayFree | ( | SCIP_PTRARRAY ** | ptrarray | ) |
frees a dynamic array of pointer values
- Parameters
-
ptrarray pointer to the ptr array
Definition at line 5116 of file misc.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, NULL, and SCIP_OKAY.
Referenced by SCIPfreePtrarray().
◆ SCIPptrarrayExtend()
SCIP_RETCODE SCIPptrarrayExtend | ( | SCIP_PTRARRAY * | ptrarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | minidx, | ||
int | maxidx | ||
) |
extends dynamic array to be able to store indices from minidx to maxidx
- Parameters
-
ptrarray dynamic ptr array arraygrowinit initial size of array arraygrowfac growing factor of array minidx smallest index to allocate storage for maxidx largest index to allocate storage for
Definition at line 5130 of file misc.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArrayNull, calcGrowSize(), SCIP_PtrArray::firstidx, MAX, SCIP_PtrArray::maxusedidx, SCIP_PtrArray::minusedidx, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPdebugMessage, and SCIP_PtrArray::valssize.
Referenced by SCIPextendPtrarray(), and SCIPptrarraySetVal().
◆ SCIPptrarrayClear()
SCIP_RETCODE SCIPptrarrayClear | ( | SCIP_PTRARRAY * | ptrarray | ) |
clears a dynamic pointer array
- Parameters
-
ptrarray dynamic ptr array
Definition at line 5285 of file misc.c.
References BMSclearMemoryArray, SCIP_PtrArray::firstidx, NULL, SCIP_OKAY, and SCIPdebugMessage.
Referenced by SCIPclearPtrarray().
◆ SCIPptrarrayGetVal()
void* SCIPptrarrayGetVal | ( | SCIP_PTRARRAY * | ptrarray, |
int | idx | ||
) |
gets value of entry in dynamic array
- Parameters
-
ptrarray dynamic ptr array idx array index to get value for
Definition at line 5316 of file misc.c.
References SCIP_PtrArray::firstidx, SCIP_PtrArray::maxusedidx, NULL, SCIP_PtrArray::vals, and SCIP_PtrArray::valssize.
Referenced by SCIPgetPtrarrayVal().
◆ SCIPptrarraySetVal()
SCIP_RETCODE SCIPptrarraySetVal | ( | SCIP_PTRARRAY * | ptrarray, |
int | arraygrowinit, | ||
SCIP_Real | arraygrowfac, | ||
int | idx, | ||
void * | val | ||
) |
sets value of entry in dynamic array
- Parameters
-
ptrarray dynamic ptr array arraygrowinit initial size of array arraygrowfac growing factor of array idx array index to set value for val value to set array index to
Definition at line 5337 of file misc.c.
References SCIP_PtrArray::firstidx, MAX, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPptrarrayExtend().
Referenced by SCIPsetPtrarrayVal().
◆ SCIPptrarrayGetMinIdx()
int SCIPptrarrayGetMinIdx | ( | SCIP_PTRARRAY * | ptrarray | ) |
returns the minimal index of all stored non-zero elements
- Parameters
-
ptrarray dynamic ptr array
Definition at line 5405 of file misc.c.
References SCIP_PtrArray::minusedidx, and NULL.
Referenced by SCIPgetPtrarrayMinIdx().
◆ SCIPptrarrayGetMaxIdx()
int SCIPptrarrayGetMaxIdx | ( | SCIP_PTRARRAY * | ptrarray | ) |
returns the maximal index of all stored non-zero elements
- Parameters
-
ptrarray dynamic ptr array
Definition at line 5415 of file misc.c.
References SCIP_PtrArray::maxusedidx, and NULL.
Referenced by SCIPgetPtrarrayMaxIdx().
◆ doProfileCreate()
|
static |
helper method to create a profile
- Parameters
-
profile pointer to store the resource profile capacity resource capacity
Definition at line 6645 of file misc.c.
References BMSallocMemory, BMSallocMemoryArray, BMSclearMemory, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPprofileCreate().
◆ ensureProfileSize()
|
static |
- Parameters
-
profile resource profile to insert the time point neededsize needed size
Definition at line 6808 of file misc.c.
References SCIP_Profile::arraysize, BMSreallocMemoryArray, SCIP_Profile::loads, SCIP_ALLOC, SCIP_OKAY, and SCIP_Profile::timepoints.
Referenced by profileInsertTimepoint().
◆ profileInsertTimepoint()
|
static |
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
- Parameters
-
profile resource profile to insert the time point timepoint time point to insert pos pointer to store the insert position
Definition at line 6831 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().
◆ profileUpdate()
|
static |
updates the resource profile due to inserting of a core
- Parameters
-
profile resource profile to update left left side of core interval right right side of core interval demand demand of the core pos pointer to store the first position were it gets infeasible infeasible pointer to store if the update is infeasible
Definition at line 6872 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().
◆ profileFindFeasibleStart()
|
static |
returns TRUE if the core (given by its demand and during) can be inserted at the given time point; otherwise FALSE
- Parameters
-
profile resource profile to use pos pointer to store the position in the profile to start the serch lst latest start time duration duration of the core demand demand of the core infeasible pointer store if the corer cannot be inserted
Definition at line 6994 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().
◆ profileFindDownFeasibleStart()
|
static |
returns TRUE if the core (given by its demand and during) can be inserted at the given time point; otherwise FALSE
- Parameters
-
profile resource profile to use pos pointer to store the position in the profile to start the search ect earliest completion time duration duration of the core demand demand of the core infeasible pointer store if the corer cannot be inserted
Definition at line 7144 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().
◆ SCIPdigraphCreate()
SCIP_RETCODE SCIPdigraphCreate | ( | SCIP_DIGRAPH ** | digraph, |
BMS_BLKMEM * | blkmem, | ||
int | nnodes | ||
) |
creates directed graph structure
- Parameters
-
digraph pointer to store the created directed graph blkmem block memory to store the data nnodes number of nodes
Definition at line 7289 of file misc.c.
References BMSallocBlockMemory, BMSallocClearBlockMemoryArray, FALSE, nnodes, NULL, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPcreateDigraph().
◆ SCIPdigraphCopy()
SCIP_RETCODE SCIPdigraphCopy | ( | SCIP_DIGRAPH ** | targetdigraph, |
SCIP_DIGRAPH * | sourcedigraph, | ||
BMS_BLKMEM * | targetblkmem | ||
) |
copies directed graph structure
- Note
- The data in nodedata is copied verbatim. This possibly has to be adapted by the user.
- Parameters
-
targetdigraph pointer to store the copied directed graph sourcedigraph source directed graph targetblkmem block memory to store the target block memory, or NULL to use the same the same block memory as used for the sourcedigraph
Definition at line 7366 of file misc.c.
References SCIP_Digraph::arcdata, SCIP_Digraph::articulations, SCIP_Digraph::articulationscheck, SCIP_Digraph::blkmem, BMSallocBlockMemory, BMSallocClearBlockMemoryArray, BMSduplicateBlockMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, FALSE, SCIP_Digraph::narticulations, SCIP_Digraph::ncomponents, nnodes, SCIP_Digraph::nnodes, SCIP_Digraph::nodedata, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_OKAY, SCIP_Digraph::successors, and TRUE.
Referenced by SCIPcopyDigraph().
◆ ensureSuccessorsSize()
|