-
Notifications
You must be signed in to change notification settings - Fork 0
/
simseltype_enum.go
39 lines (32 loc) · 1.39 KB
/
simseltype_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 MSKsimseltype_enum/SimSelType
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// SimSelType is MSKsimseltype_enum.
//
// Simplex selection strategy
type SimSelType uint32
const (
SIM_SELECTION_FREE SimSelType = C.MSK_SIM_SELECTION_FREE // The optimizer chooses the pricing strategy.
SIM_SELECTION_FULL SimSelType = C.MSK_SIM_SELECTION_FULL // The optimizer uses full pricing.
SIM_SELECTION_ASE SimSelType = C.MSK_SIM_SELECTION_ASE // The optimizer uses approximate steepest-edge pricing.
SIM_SELECTION_DEVEX SimSelType = C.MSK_SIM_SELECTION_DEVEX // The optimizer uses devex steepest-edge pricing.
SIM_SELECTION_SE SimSelType = C.MSK_SIM_SELECTION_SE // The optimizer uses steepest-edge selection.
SIM_SELECTION_PARTIAL SimSelType = C.MSK_SIM_SELECTION_PARTIAL // The optimizer uses a partial selection approach.
)
var _SimSelType_map = map[SimSelType]string{
SIM_SELECTION_FREE: "SIM_SELECTION_FREE",
SIM_SELECTION_FULL: "SIM_SELECTION_FULL",
SIM_SELECTION_ASE: "SIM_SELECTION_ASE",
SIM_SELECTION_DEVEX: "SIM_SELECTION_DEVEX",
SIM_SELECTION_SE: "SIM_SELECTION_SE",
SIM_SELECTION_PARTIAL: "SIM_SELECTION_PARTIAL",
}
func (e SimSelType) String() string {
if v, ok := _SimSelType_map[e]; ok {
return v
}
return "SimSelType(" + strconv.FormatInt(int64(e), 10) + ")"
}