Skip to content

Commit d138167

Browse files
authored
Merge pull request #8 from odow/od/cones
Add new cones
2 parents 99ed037 + 0ce33af commit d138167

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# MathOptFormat
22

3-
_WARNING: this file format is under active development. Things may change!_
4-
53
This repository describes a file-format for mathematical optimization problems
64
called _MathOptFormat_ with the file extension `.mof.json`.
75

@@ -232,6 +230,9 @@ Here is a summary of the sets defined by MathOptFormat.
232230
| `"PowerCone"` | [x, y, z] ∈ {R³: x^{exponent} y^{1-exponent} ≥ \|z\|; x, y ≥ 0} | {"head": "PowerCone", "exponent": 2.0} |
233231
| `"DualPowerCone"` | [u, v, w] ∈ {R³: (u / exponent)^{exponent} (v / (1-exponent))^{1-exponent} ≥ \|w\|; u, v ≥ 0} | {"head": "DualPowerCone", "exponent": 2.0} |
234232
| `"IndicatorSet"` | If `activate_on=one`: (y, x) ∈ {0,1}×Rᴺ: y = 0 ⟹ x ∈ S, otherwise when `activate_on=zero`: (y, x) ∈ {0,1}×Rᴺ: y = 1 ⟹ x ∈ S. | {"head": "IndicatorSet", "set": {"head": "LessThan", "upper": 2.0}, "activate_on": "one"} |
233+
| `"NormOneCone"` | (t, x) ∈ {R^{dimension}: t ≥ Σᵢ\|xᵢ\|} | {"head": "NormOneCone", "dimension": 2} |
234+
| `"NormInfinityCone"` | (t, x) ∈ {R^{dimension}: t ≥ maxᵢ\|xᵢ\|} | {"head": "NormInfinityCone", "dimension": 2} |
235+
235236

236237
### Nonlinear functions
237238

mof.schema.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,32 @@
768768
"enum": ["one", "zero"]
769769
}
770770
}
771+
}, {
772+
"description": "(t, x) ∈ {R^{dimension}: t ≥ Σᵢ|xᵢ|}",
773+
"examples": ["{\"head\": \"NormOneCone\", \"dimension\": 2}"],
774+
"required": ["dimension"],
775+
"properties": {
776+
"head": {
777+
"const": "NormOneCone"
778+
},
779+
"dimension": {
780+
"type": "integer",
781+
"minimum": 2
782+
}
783+
}
784+
}, {
785+
"description": "(t, x) ∈ {R^{dimension}: t ≥ maxᵢ|xᵢ|}",
786+
"examples": ["{\"head\": \"NormInfinityCone\", \"dimension\": 2}"],
787+
"required": ["dimension"],
788+
"properties": {
789+
"head": {
790+
"const": "NormInfinityCone"
791+
},
792+
"dimension": {
793+
"type": "integer",
794+
"minimum": 2
795+
}
796+
}
771797
}]
772798
}
773799
}

0 commit comments

Comments
 (0)