|
206 | 206 | } |
207 | 207 | }, { |
208 | 208 | "description": "A real-valued numeric constant", |
209 | | - "example": "{\"head\": \"real\", \"value\": 1.0}", |
| 209 | + "examples": ["{\"head\": \"real\", \"value\": 1.0}"], |
210 | 210 | "required": ["value"], |
211 | 211 | "properties": { |
212 | 212 | "head": { |
|
218 | 218 | } |
219 | 219 | }, { |
220 | 220 | "description": "A complex-valued numeric constant", |
221 | | - "example": "{\"head\": \"complex\", \"real\": 1.0, \"imag\": 2.0}", |
| 221 | + "examples": ["{\"head\": \"complex\", \"real\": 1.0, \"imag\": 2.0}"], |
222 | 222 | "required": ["real", "imag"], |
223 | 223 | "properties": { |
224 | 224 | "head": { |
|
233 | 233 | } |
234 | 234 | }, { |
235 | 235 | "description": "A reference to an optimization variable", |
236 | | - "example": "{\"head\": \"variable\", \"name\": \"x\"}", |
| 236 | + "examples": ["{\"head\": \"variable\", \"name\": \"x\"}"], |
237 | 237 | "required": ["name"], |
238 | 238 | "properties": { |
239 | 239 | "head": { |
|
245 | 245 | } |
246 | 246 | }, { |
247 | 247 | "description": "A pointer to a (1-indexed) element in the `node_list` field in a nonlinear function", |
248 | | - "example": "{\"head\": \"node\", \"index\": 2}", |
| 248 | + "examples": ["{\"head\": \"node\", \"index\": 2}"], |
249 | 249 | "required": ["index"], |
250 | 250 | "properties": { |
251 | 251 | "head": { |
|
264 | 264 | "required": ["head"], |
265 | 265 | "oneOf": [{ |
266 | 266 | "description": "The scalar variable `variable`.", |
267 | | - "example": "{\"head\": \"SingleVariable\", \"variable\": \"x\"}", |
| 267 | + "examples": ["{\"head\": \"SingleVariable\", \"variable\": \"x\"}"], |
268 | 268 | "required": ["variable"], |
269 | 269 | "properties": { |
270 | 270 | "head": { |
|
276 | 276 | } |
277 | 277 | }, { |
278 | 278 | "description": "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.", |
279 | | - "example": "{\"head\": \"ScalarAffineFunction\", \"constant\": 1.0, \"terms\": [{\"coefficient\": 2.5, \"variable\": \"x\"}]}", |
| 279 | + "examples": ["{\"head\": \"ScalarAffineFunction\", \"constant\": 1.0, \"terms\": [{\"coefficient\": 2.5, \"variable\": \"x\"}]}"], |
280 | 280 | "required": ["constant", "terms"], |
281 | 281 | "properties": { |
282 | 282 | "head": { |
|
294 | 294 | } |
295 | 295 | }, { |
296 | 296 | "description": "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.", |
297 | | - "example": "{\"head\": \"ScalarAffineFunction\", \"constant\": 1.0, \"affine_terms\": [{\"coefficient\": 2.5, \"variable\": \"x\"}], \"quadratic_terms\": [{\"coefficient\": 2.0, \"variable_1\": \"x\", \"variable_2\": \"y\"}]}", |
| 297 | + "examples": ["{\"head\": \"ScalarAffineFunction\", \"constant\": 1.0, \"affine_terms\": [{\"coefficient\": 2.5, \"variable\": \"x\"}], \"quadratic_terms\": [{\"coefficient\": 2.0, \"variable_1\": \"x\", \"variable_2\": \"y\"}]}"], |
298 | 298 | "required": ["constant", "affine_terms", "quadratic_terms"], |
299 | 299 | "properties": { |
300 | 300 | "head": { |
|
341 | 341 | "required": ["head"], |
342 | 342 | "oneOf": [{ |
343 | 343 | "description": "An ordered list of variables.", |
344 | | - "example": "{\"head\": \"VectorOfVariables\", \"variables\": [\"x\", \"y\"]}", |
| 344 | + "examples": ["{\"head\": \"VectorOfVariables\", \"variables\": [\"x\", \"y\"]}"], |
345 | 345 | "required": ["variables"], |
346 | 346 | "properties": { |
347 | 347 | "head": { |
|
356 | 356 | } |
357 | 357 | }, { |
358 | 358 | "description": "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`.", |
359 | | - "example": "{\"head\": \"VectorAffineFunction\", \"constants\": [1.0], \"terms\": [{\"output_index\": 1, \"scalar_term\": {\"coefficient\": 2.5, \"variable\": \"x\"}}]}", |
| 359 | + "examples": ["{\"head\": \"VectorAffineFunction\", \"constants\": [1.0], \"terms\": [{\"output_index\": 1, \"scalar_term\": {\"coefficient\": 2.5, \"variable\": \"x\"}}]}"], |
360 | 360 | "required": ["constants", "terms"], |
361 | 361 | "properties": { |
362 | 362 | "head": { |
|
409 | 409 | "required": ["head"], |
410 | 410 | "oneOf": [{ |
411 | 411 | "description": "(-∞, upper]", |
412 | | - "example": "{\"head\": \"LessThan\", \"upper\": 2.1}", |
| 412 | + "examples": ["{\"head\": \"LessThan\", \"upper\": 2.1}"], |
413 | 413 | "required": ["upper"], |
414 | 414 | "properties": { |
415 | 415 | "head": { |
|
421 | 421 | } |
422 | 422 | }, { |
423 | 423 | "description": "[lower, ∞)", |
424 | | - "example": "{\"head\": \"GreaterThan\", \"lower\": 2.1}", |
| 424 | + "examples": ["{\"head\": \"GreaterThan\", \"lower\": 2.1}"], |
425 | 425 | "required": ["lower"], |
426 | 426 | "properties": { |
427 | 427 | "head": { |
|
433 | 433 | } |
434 | 434 | }, { |
435 | 435 | "description": "{value}", |
436 | | - "example": "{\"head\": \"EqualTo\", \"value\": 2.1}", |
| 436 | + "examples": ["{\"head\": \"EqualTo\", \"value\": 2.1}"], |
437 | 437 | "required": ["value"], |
438 | 438 | "properties": { |
439 | 439 | "head": { |
|
445 | 445 | } |
446 | 446 | }, { |
447 | 447 | "description": "[lower, upper]", |
448 | | - "example": "{\"head\": \"Interval\", \"lower\": 2.1, \"upper\": 3.4}", |
| 448 | + "examples": ["{\"head\": \"Interval\", \"lower\": 2.1, \"upper\": 3.4}"], |
449 | 449 | "required": ["lower", "upper"], |
450 | 450 | "properties": { |
451 | 451 | "head": { |
|
460 | 460 | } |
461 | 461 | }, { |
462 | 462 | "description": "{0} ∪ {lower, lower + 1, ..., upper}", |
463 | | - "example": "{\"head\": \"Semiinteger\", \"lower\": 2, \"upper\": 4}", |
| 463 | + "examples": ["{\"head\": \"Semiinteger\", \"lower\": 2, \"upper\": 4}"], |
464 | 464 | "required": ["lower", "upper"], |
465 | 465 | "properties": { |
466 | 466 | "head": { |
|
475 | 475 | } |
476 | 476 | }, { |
477 | 477 | "description": "{0} ∪ [lower, upper]", |
478 | | - "example": "{\"head\": \"Semicontinuous\", \"lower\": 2.1, \"upper\": 3.4}", |
| 478 | + "examples": ["{\"head\": \"Semicontinuous\", \"lower\": 2.1, \"upper\": 3.4}"], |
479 | 479 | "required": ["lower", "upper"], |
480 | 480 | "properties": { |
481 | 481 | "head": { |
|
490 | 490 | } |
491 | 491 | }, { |
492 | 492 | "description": "{0, 1}", |
493 | | - "example": "{\"head\": \"ZeroOne\"}", |
| 493 | + "examples": ["{\"head\": \"ZeroOne\"}"], |
494 | 494 | "properties": { |
495 | 495 | "head": { |
496 | 496 | "const": "ZeroOne" |
497 | 497 | } |
498 | 498 | } |
499 | 499 | }, { |
500 | 500 | "description": "ℤ", |
501 | | - "example": "{\"head\": \"Integer\"}", |
| 501 | + "examples": ["{\"head\": \"Integer\"}"], |
502 | 502 | "properties": { |
503 | 503 | "head": { |
504 | 504 | "const": "Integer" |
|
512 | 512 | "required": ["head"], |
513 | 513 | "oneOf": [{ |
514 | 514 | "description": "[x, y, z] ∈ {R³: y * exp(x / y) ≤ z, y ≥ 0}", |
515 | | - "example": "{\"head\": \"ExponentialCone\"}", |
| 515 | + "examples": ["{\"head\": \"ExponentialCone\"}"], |
516 | 516 | "properties": { |
517 | 517 | "head": { |
518 | 518 | "const": "ExponentialCone" |
519 | 519 | } |
520 | 520 | } |
521 | 521 | }, { |
522 | 522 | "description": "[u, v, w] ∈ {R³: -u * exp(v / u) ≤ exp(1) * w, u < 0}", |
523 | | - "example": "{\"head\": \"DualExponentialCone\"}", |
| 523 | + "examples": ["{\"head\": \"DualExponentialCone\"}"], |
524 | 524 | "properties": { |
525 | 525 | "head": { |
526 | 526 | "const": "DualExponentialCone" |
527 | 527 | } |
528 | 528 | } |
529 | 529 | }, { |
530 | 530 | "description": "A special ordered set of type I.", |
531 | | - "example": "{\"head\": \"SOS1\", \"weights\": [1, 3, 2]}", |
| 531 | + "examples": ["{\"head\": \"SOS1\", \"weights\": [1, 3, 2]}"], |
532 | 532 | "required": ["weights"], |
533 | 533 | "properties": { |
534 | 534 | "head": { |
|
543 | 543 | } |
544 | 544 | }, { |
545 | 545 | "description": "A special ordered set of type II.", |
546 | | - "example": "{\"head\": \"SOS2\", \"weights\": [1, 3, 2]}", |
| 546 | + "examples": ["{\"head\": \"SOS2\", \"weights\": [1, 3, 2]}"], |
547 | 547 | "required": ["weights"], |
548 | 548 | "properties": { |
549 | 549 | "head": { |
|
558 | 558 | } |
559 | 559 | }, { |
560 | 560 | "description": "[t, x] ∈ {R^{dimension}: t ≤ (Πxᵢ)^{1 / (dimension-1)}}", |
561 | | - "example": "{\"head\": \"GeometricMeanCone\", \"dimension\": 3}", |
| 561 | + "examples": ["{\"head\": \"GeometricMeanCone\", \"dimension\": 3}"], |
562 | 562 | "required": ["dimension"], |
563 | 563 | "properties": { |
564 | 564 | "head": { |
|
571 | 571 | } |
572 | 572 | }, { |
573 | 573 | "description": "[t, x] ∈ {R^{dimension} : t ≥ ||x||₂", |
574 | | - "example": "{\"head\": \"SecondOrderCone\", \"dimension\": 3}", |
| 574 | + "examples": ["{\"head\": \"SecondOrderCone\", \"dimension\": 3}"], |
575 | 575 | "required": ["dimension"], |
576 | 576 | "properties": { |
577 | 577 | "head": { |
|
584 | 584 | } |
585 | 585 | }, { |
586 | 586 | "description": "[t, u, x] ∈ {R^{dimension} : 2tu ≥ (||x||₂)²; t, u ≥ 0}", |
587 | | - "example": "{\"head\": \"RotatedSecondOrderCone\", \"dimension\": 3}", |
| 587 | + "examples": ["{\"head\": \"RotatedSecondOrderCone\", \"dimension\": 3}"], |
588 | 588 | "required": ["dimension"], |
589 | 589 | "properties": { |
590 | 590 | "head": { |
|
597 | 597 | } |
598 | 598 | }, { |
599 | 599 | "description": "{0}^{dimension}", |
600 | | - "example": "{\"head\": \"Zeros\", \"dimension\": 3}", |
| 600 | + "examples": ["{\"head\": \"Zeros\", \"dimension\": 3}"], |
601 | 601 | "required": ["dimension"], |
602 | 602 | "properties": { |
603 | 603 | "head": { |
|
610 | 610 | } |
611 | 611 | }, { |
612 | 612 | "description": "R^{dimension}", |
613 | | - "example": "{\"head\": \"Reals\", \"dimension\": 3}", |
| 613 | + "examples": ["{\"head\": \"Reals\", \"dimension\": 3}"], |
614 | 614 | "required": ["dimension"], |
615 | 615 | "properties": { |
616 | 616 | "head": { |
|
623 | 623 | } |
624 | 624 | }, { |
625 | 625 | "description": "R₋^{dimension}", |
626 | | - "example": "{\"head\": \"Nonpositives\", \"dimension\": 3}", |
| 626 | + "examples": ["{\"head\": \"Nonpositives\", \"dimension\": 3}"], |
627 | 627 | "required": ["dimension"], |
628 | 628 | "properties": { |
629 | 629 | "head": { |
|
636 | 636 | } |
637 | 637 | }, { |
638 | 638 | "description": "R₊^{dimension}", |
639 | | - "example": "{\"head\": \"Nonnegatives\", \"dimension\": 3}", |
| 639 | + "examples": ["{\"head\": \"Nonnegatives\", \"dimension\": 3}"], |
640 | 640 | "required": ["dimension"], |
641 | 641 | "properties": { |
642 | 642 | "head": { |
|
665 | 665 | } |
666 | 666 | }, { |
667 | 667 | "description": "[x, y, z] ∈ {R³: x^{exponent} y^{1-exponent} ≥ |z|; x, y ≥ 0}", |
668 | | - "example": "{\"head\": \"PowerCone\", \"exponent\": 2.0}", |
| 668 | + "examples": ["{\"head\": \"PowerCone\", \"exponent\": 2.0}"], |
669 | 669 | "required": ["exponent"], |
670 | 670 | "properties": { |
671 | 671 | "head": { |
|
677 | 677 | } |
678 | 678 | }, { |
679 | 679 | "description": "[u, v, w] ∈ {R³: (u / exponent)^{exponent} (v / (1-exponent))^{1-exponent} ≥ |w|; u, v ≥ 0}", |
680 | | - "example": "{\"head\": \"DualPowerCone\", \"exponent\": 2.0}", |
| 680 | + "examples": ["{\"head\": \"DualPowerCone\", \"exponent\": 2.0}"], |
681 | 681 | "required": ["exponent"], |
682 | 682 | "properties": { |
683 | 683 | "head": { |
|
0 commit comments