-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpsformat_enum.go
35 lines (28 loc) · 1.2 KB
/
mpsformat_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 MSKmpsformat_enum/MPSFormat
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// MPSFormat is MSKmpsformat_enum.
//
// MPS file format type
type MPSFormat uint32
const (
MPS_FORMAT_STRICT MPSFormat = C.MSK_MPS_FORMAT_STRICT // It is assumed that the input file satisfies the MPS format strictly.
MPS_FORMAT_RELAXED MPSFormat = C.MSK_MPS_FORMAT_RELAXED // It is assumed that the input file satisfies a slightly relaxed version of the MPS format.
MPS_FORMAT_FREE MPSFormat = C.MSK_MPS_FORMAT_FREE // It is assumed that the input file satisfies the free MPS format. This implies that spaces are not allowed in names. Otherwise the format is free.
MPS_FORMAT_CPLEX MPSFormat = C.MSK_MPS_FORMAT_CPLEX // The CPLEX compatible version of the MPS format is employed.
)
var _MPSFormat_map = map[MPSFormat]string{
MPS_FORMAT_STRICT: "MPS_FORMAT_STRICT",
MPS_FORMAT_RELAXED: "MPS_FORMAT_RELAXED",
MPS_FORMAT_FREE: "MPS_FORMAT_FREE",
MPS_FORMAT_CPLEX: "MPS_FORMAT_CPLEX",
}
func (e MPSFormat) String() string {
if v, ok := _MPSFormat_map[e]; ok {
return v
}
return "MPSFormat(" + strconv.FormatInt(int64(e), 10) + ")"
}