-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiocontsoltype_enum.go
35 lines (28 loc) · 1.14 KB
/
miocontsoltype_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 MSKmiocontsoltype_enum/MioContSolType
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// MioContSolType is MSKmiocontsoltype_enum.
//
// Continuous mixed-integer solution type
type MioContSolType uint32
const (
MIO_CONT_SOL_NONE MioContSolType = C.MSK_MIO_CONT_SOL_NONE // No interior-point or basic solution.
MIO_CONT_SOL_ROOT MioContSolType = C.MSK_MIO_CONT_SOL_ROOT // Solutions to the root node problem.
MIO_CONT_SOL_ITG MioContSolType = C.MSK_MIO_CONT_SOL_ITG // A feasible primal solution.
MIO_CONT_SOL_ITG_REL MioContSolType = C.MSK_MIO_CONT_SOL_ITG_REL // A feasible primal solution or a root node solution if the problem is infeasible.
)
var _MioContSolType_map = map[MioContSolType]string{
MIO_CONT_SOL_NONE: "MIO_CONT_SOL_NONE",
MIO_CONT_SOL_ROOT: "MIO_CONT_SOL_ROOT",
MIO_CONT_SOL_ITG: "MIO_CONT_SOL_ITG",
MIO_CONT_SOL_ITG_REL: "MIO_CONT_SOL_ITG_REL",
}
func (e MioContSolType) String() string {
if v, ok := _MioContSolType_map[e]; ok {
return v
}
return "MioContSolType(" + strconv.FormatInt(int64(e), 10) + ")"
}