Minimal conflicting constraint set
Input
{
"constraints": [
{
"target_var": "a",
"type": "abs",
"var": "x"
},
{
"op": "==",
"rhs": -3,
"terms": [
{
"coeff": 1,
"var": "x"
}
],
"type": "linear"
},
{
"op": "==",
"rhs": 2,
"terms": [
{
"coeff": 1,
"var": "a"
}
],
"type": "linear"
},
{
"op": "<=",
"rhs": 4,
"terms": [
{
"coeff": 1,
"var": "x"
}
],
"type": "linear"
}
],
"produce_unsat_core": true,
"variables": [
{
"max": 4,
"min": -4,
"name": "x"
},
{
"max": 4,
"min": 0,
"name": "a"
}
]
}Output
Build-time verified. stats.elapsed_ms normalized to 0.
{
"best_bound": null,
"objective_value": null,
"solution": null,
"stats": {
"elapsed_ms": 0,
"timed_out": false
},
"unsat_core": [
0,
1,
2
],
"verdict": "infeasible",
"verified": true
}Request
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"x","min":-4,"max":4},{"name":"a","min":0,"max":4}],"constraints":[{"type":"abs","var":"x","target_var":"a"},{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"==","rhs":-3},{"type":"linear","terms":[{"var":"a","coeff":1}],"op":"==","rhs":2},{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"<=","rhs":4}],"produce_unsat_core":true}'