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
|`"ScalarAffineFunction"`| The function `a'x + b`, where `a` is a sparse vector specified by a list of `ScalarAffineTerm`s in `terms` and `b` is the scalar in `constant`. Duplicate variables in `terms` are accepted, and the corresponding coefficients are summed together. | {"head": "ScalarAffineFunction", "constant": 1.0, "terms": [{"coefficient": 2.5, "variable": "x"}]} |
49
-
|`"ScalarQuadraticFunction"`| The function `0.5x'Qx + a'x + b`, where `a` is a sparse vector of `ScalarAffineTerm`s in `affine_terms`, `b` is the scalar `constant`, and `Q` is a symmetric matrix specified by a list of `ScalarQuadraticTerm`s in `quadratic_terms`. Duplicate indices in `affine_terms` and `quadratic` are accepted, and the corresponding coefficients are summed together. Mirrored indices in `quadratic_terms` (i.e., `(i,j)` and `(j, i)`) are considered duplicates; only one need to be specified. | {"head": "ScalarAffineFunction", "constant": 1.0, "affine_terms": [{"coefficient": 2.5, "variable": "x"}], "quadratic_terms": [{"coefficient": 2.0, "variable_1": "x", "variable_2": "y"}]} |
50
-
|`"Nonlinear"`| An expression graph representing a scalar function. ||
51
-
52
-
#### Vector Functions
53
-
54
-
| Name | Description | Example |
55
-
| ---- | ----------- | ------- |
56
-
|`"VectorOfVariables"`| An ordered list of variables. | {"head": "VectorOfVariables", "variables": ["x", "y"]} |
57
-
|`"VectorAffineFunction"`| The function `Ax + b`, where `A` is a sparse matrix specified by a list of `VectorAffineTerm`s in `terms` and `b` is a dense vector specified by `constants`. | {"head": "VectorAffineFunction", "constants": [1.0], "terms": [{"output_index": 1, "scalar_term": {"coefficient": 2.5, "variable": "x"}}]} |
58
-
|`"VectorQuadraticFunction"`| The vector-valued quadratic function `q(x) + Ax + b`, where `q(x)` is specified by a list of `VectorQuadraticTerm`s in `quadratic_terms`, `A` is a sparse matrix specified by a list of `VectorAffineTerm`s in `affine_terms` and `b` is a dense vector specified by `constants`. ||
59
-
60
-
### List of supported sets
61
-
62
-
The list of sets supported by MathOptFormat are contained in the
63
-
`#/definitions/scalar_sets` and `#/definitions/vector_sets` fields of the
64
-
schema. Scalar sets are sets for which `Mj=1`, while vector sets are sets for
65
-
which `Mj≥1`.
66
-
67
-
Here is a summary of the sets defined by MathOptFormat.
|`"ScalarAffineFunction"`| The function `a'x + b`, where `a` is a sparse vector specified by a list of `ScalarAffineTerm`s in `terms` and `b` is the scalar in `constant`. Duplicate variables in `terms` are accepted, and the corresponding coefficients are summed together. | {"head": "ScalarAffineFunction", "constant": 1.0, "terms": [{"coefficient": 2.5, "variable": "x"}]} |
172
+
|`"ScalarQuadraticFunction"`| The function `0.5x'Qx + a'x + b`, where `a` is a sparse vector of `ScalarAffineTerm`s in `affine_terms`, `b` is the scalar `constant`, and `Q` is a symmetric matrix specified by a list of `ScalarQuadraticTerm`s in `quadratic_terms`. Duplicate indices in `affine_terms` and `quadratic` are accepted, and the corresponding coefficients are summed together. Mirrored indices in `quadratic_terms` (i.e., `(i,j)` and `(j, i)`) are considered duplicates; only one need to be specified. | {"head": "ScalarAffineFunction", "constant": 1.0, "affine_terms": [{"coefficient": 2.5, "variable": "x"}], "quadratic_terms": [{"coefficient": 2.0, "variable_1": "x", "variable_2": "y"}]} |
173
+
|`"Nonlinear"`| An expression graph representing a scalar function. ||
174
+
175
+
#### Vector Functions
176
+
177
+
| Name | Description | Example |
178
+
| ---- | ----------- | ------- |
179
+
|`"VectorOfVariables"`| An ordered list of variables. | {"head": "VectorOfVariables", "variables": ["x", "y"]} |
180
+
|`"VectorAffineFunction"`| The function `Ax + b`, where `A` is a sparse matrix specified by a list of `VectorAffineTerm`s in `terms` and `b` is a dense vector specified by `constants`. | {"head": "VectorAffineFunction", "constants": [1.0], "terms": [{"output_index": 1, "scalar_term": {"coefficient": 2.5, "variable": "x"}}]} |
181
+
|`"VectorQuadraticFunction"`| The vector-valued quadratic function `q(x) + Ax + b`, where `q(x)` is specified by a list of `VectorQuadraticTerm`s in `quadratic_terms`, `A` is a sparse matrix specified by a list of `VectorAffineTerm`s in `affine_terms` and `b` is a dense vector specified by `constants`. ||
182
+
183
+
### List of supported sets
184
+
185
+
The list of sets supported by MathOptFormat are contained in the
186
+
`#/definitions/scalar_sets` and `#/definitions/vector_sets` fields of the
187
+
schema. Scalar sets are sets for which `Mj=1`, while vector sets are sets for
188
+
which `Mj≥1`.
189
+
190
+
Here is a summary of the sets defined by MathOptFormat.
0 commit comments