-
Notifications
You must be signed in to change notification settings - Fork 0
/
mionodeseltype_enum.go
35 lines (28 loc) · 1.28 KB
/
mionodeseltype_enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Automatically generated by github.com/fardream/gen-gmsk
// enum for MSKmionodeseltype_enum/MioNodeSelType
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// MioNodeSelType is MSKmionodeseltype_enum.
//
// Mixed-integer node selection types
type MioNodeSelType uint32
const (
MIO_NODE_SELECTION_FREE MioNodeSelType = C.MSK_MIO_NODE_SELECTION_FREE // The optimizer decides the node selection strategy.
MIO_NODE_SELECTION_FIRST MioNodeSelType = C.MSK_MIO_NODE_SELECTION_FIRST // The optimizer employs a depth first node selection strategy.
MIO_NODE_SELECTION_BEST MioNodeSelType = C.MSK_MIO_NODE_SELECTION_BEST // The optimizer employs a best bound node selection strategy.
MIO_NODE_SELECTION_PSEUDO MioNodeSelType = C.MSK_MIO_NODE_SELECTION_PSEUDO // The optimizer employs selects the node based on a pseudo cost estimate.
)
var _MioNodeSelType_map = map[MioNodeSelType]string{
MIO_NODE_SELECTION_FREE: "MIO_NODE_SELECTION_FREE",
MIO_NODE_SELECTION_FIRST: "MIO_NODE_SELECTION_FIRST",
MIO_NODE_SELECTION_BEST: "MIO_NODE_SELECTION_BEST",
MIO_NODE_SELECTION_PSEUDO: "MIO_NODE_SELECTION_PSEUDO",
}
func (e MioNodeSelType) String() string {
if v, ok := _MioNodeSelType_map[e]; ok {
return v
}
return "MioNodeSelType(" + strconv.FormatInt(int64(e), 10) + ")"
}