protocol

omt_protocol

Protocol for single-objective optimization modulo theories.

Availability:
logtalk_load(omt(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-11-14
Compilation flags:
static
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)

Public predicates

solve/2

Solves an OMT source with default options and returns one result per check.

Compilation flags:
static
Template:
solve(Source,Results)
Mode and number of proofs:
solve(+compound,-list(compound)) - one_or_error

solve/3

Solves with solver/1, executable/1, and time_limit/1 options. OptiMathSAT rejects nonzero time limits.

Compilation flags:
static
Template:
solve(Source,Results,Options)
Mode and number of proofs:
solve(+compound,-list(compound),+list(compound)) - one_or_error
Exceptions:
An OptiMathSAT time limit is nonzero:
domain_error(optimathsat_time_limit,Seconds)
Solver output or process status is invalid:
omt_solver_error(Formal,Status,Diagnostics,SourceMap)

program/1

Generates and prints a source without invoking a solver.

Compilation flags:
static
Template:
program(Source)
Mode and number of proofs:
program(+compound) - one_or_error

program/2

Generates source character codes without invoking a solver.

Compilation flags:
static
Template:
program(Source,Codes)
Mode and number of proofs:
program(+compound,-list(integer)) - one_or_error

status/2

Returns the status of a result.

Compilation flags:
static
Template:
status(Result,Status)
Mode and number of proofs:
status(+compound,-atom) - one_or_error

model_binding/2

Enumerates model bindings.

Compilation flags:
static
Template:
model_binding(Result,Binding)
Mode and number of proofs:
model_binding(+compound,-pair) - zero_or_more

model_value/3

Returns a named model value.

Compilation flags:
static
Template:
model_value(Result,Name,Value)
Mode and number of proofs:
model_value(+compound,+atom,-term) - zero_or_one

unsat_core_name/2

Enumerates unsatisfiable core names.

Compilation flags:
static
Template:
unsat_core_name(Result,Name)
Mode and number of proofs:
unsat_core_name(+compound,-atom) - zero_or_more

result_property/2

Enumerates result properties.

Compilation flags:
static
Template:
result_property(Result,Property)
Mode and number of proofs:
result_property(+compound,?compound) - zero_or_more

capability/2

Enumerates advisory solver capabilities.

Compilation flags:
static
Template:
capability(Solver,Feature)
Mode and number of proofs:
capability(?atom,?atom) - zero_or_more

objective/3

Enumerates objective expressions and exact solver-reported bounds from a get-objectives response.

Compilation flags:
static
Template:
objective(Result,Expression,Bound)
Mode and number of proofs:
objective(+compound,-term,-term) - zero_or_more

Protected predicates

(none)

Private predicates

(none)

Operators

(none)