Lexicographic integer optimization

Input

{
  "smtlib2": "(set-info :source \"allocation\")(set-option :produce-models true)(declare-const x Int)(declare-const y Int)(assert (and (>= x 0) (<= x 10) (>= y 0) (<= y 10) (<= (+ x y) 12)))(maximize x)(minimize y)(check-sat)(get-objectives)"
}

Output

Build-time verified. stats.elapsed_ms normalized to 0.

{
  "model": {
    "x": 10,
    "y": 0
  },
  "objective_values": [
    10,
    0
  ],
  "stats": {
    "elapsed_ms": 0,
    "timed_out": false
  },
  "unsat_core": null,
  "verdict": "optimal",
  "verified": true
}

Request

curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-info :source \"allocation\")(set-option :produce-models true)(declare-const x Int)(declare-const y Int)(assert (and (>= x 0) (<= x 10) (>= y 0) (<= y 10) (<= (+ x y) 12)))(maximize x)(minimize y)(check-sat)(get-objectives)"}'