-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderingtype_enum.go
39 lines (32 loc) · 1.67 KB
/
orderingtype_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
36
37
38
39
// Automatically generated by github.com/fardream/gen-gmsk
// enum for MSKorderingtype_enum/OrderingType
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// OrderingType is MSKorderingtype_enum.
//
// Ordering strategies
type OrderingType uint32
const (
ORDER_METHOD_FREE OrderingType = C.MSK_ORDER_METHOD_FREE // The ordering method is chosen automatically.
ORDER_METHOD_APPMINLOC OrderingType = C.MSK_ORDER_METHOD_APPMINLOC // Approximate minimum local fill-in ordering is employed.
ORDER_METHOD_EXPERIMENTAL OrderingType = C.MSK_ORDER_METHOD_EXPERIMENTAL // This option should not be used.
ORDER_METHOD_TRY_GRAPHPAR OrderingType = C.MSK_ORDER_METHOD_TRY_GRAPHPAR // Always try the graph partitioning based ordering.
ORDER_METHOD_FORCE_GRAPHPAR OrderingType = C.MSK_ORDER_METHOD_FORCE_GRAPHPAR // Always use the graph partitioning based ordering even if it is worse than the approximate minimum local fill ordering.
ORDER_METHOD_NONE OrderingType = C.MSK_ORDER_METHOD_NONE // No ordering is used. Note using this value almost always leads to a significantly slow down.
)
var _OrderingType_map = map[OrderingType]string{
ORDER_METHOD_FREE: "ORDER_METHOD_FREE",
ORDER_METHOD_APPMINLOC: "ORDER_METHOD_APPMINLOC",
ORDER_METHOD_EXPERIMENTAL: "ORDER_METHOD_EXPERIMENTAL",
ORDER_METHOD_TRY_GRAPHPAR: "ORDER_METHOD_TRY_GRAPHPAR",
ORDER_METHOD_FORCE_GRAPHPAR: "ORDER_METHOD_FORCE_GRAPHPAR",
ORDER_METHOD_NONE: "ORDER_METHOD_NONE",
}
func (e OrderingType) String() string {
if v, ok := _OrderingType_map[e]; ok {
return v
}
return "OrderingType(" + strconv.FormatInt(int64(e), 10) + ")"
}