You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The version of MathOptFormat that this schema validates against.",
10
10
"type": "object",
11
11
"required": ["minor", "major"],
12
12
"properties": {
13
13
"minor": {
14
-
"const": 3
14
+
"const": 4
15
15
},
16
16
"major": {
17
17
"const": 0
@@ -48,21 +48,30 @@
48
48
},
49
49
"uniqueItems": true
50
50
},
51
-
"objectives": {
52
-
"description": "An array of objectives in the model.",
53
-
"type": "array",
54
-
"items": {
55
-
"type": "object",
56
-
"required": ["sense", "function"],
51
+
"objective": {
52
+
"description": "The objective of the model.",
53
+
"type": "object",
54
+
"required": ["sense"],
55
+
"oneOf": [{
57
56
"properties": {
58
57
"sense": {
59
58
"enum": ["min", "max"]
60
59
},
61
60
"function": {
62
-
"$ref": "#/definitions/scalar_functions"
61
+
"oneOf": [{
62
+
"$ref": "#/definitions/scalar_functions"
63
+
}, {
64
+
"$ref": "#/definitions/vector_functions"
65
+
}]
63
66
}
64
67
}
65
-
}
68
+
}, {
69
+
"properties": {
70
+
"sense": {
71
+
"const": "feasibility"
72
+
}
73
+
}
74
+
}]
66
75
},
67
76
"constraints": {
68
77
"description": "An array of constraints in the model. Scalar-valued functions can only be paired with scalar-sets, and the same applies for vector-valued functions and sets.",
0 commit comments