protocol
omt_protocol
Protocol for single-objective optimization modulo theories.
logtalk_load(omt(loader))staticPublic predicates
solve/2
Solves an OMT source with default options and returns one result per check.
staticsolve(Source,Results)solve(+compound,-list(compound)) - one_or_errorsolve/3
Solves with solver/1, executable/1, and time_limit/1 options. OptiMathSAT rejects nonzero time limits.
staticsolve(Source,Results,Options)solve(+compound,-list(compound),+list(compound)) - one_or_errordomain_error(optimathsat_time_limit,Seconds)omt_solver_error(Formal,Status,Diagnostics,SourceMap)program/1
Generates and prints a source without invoking a solver.
staticprogram(Source)program(+compound) - one_or_errorprogram/2
Generates source character codes without invoking a solver.
staticprogram(Source,Codes)program(+compound,-list(integer)) - one_or_errorprint_program/1
Prints source character codes.
staticprint_program(Codes)print_program(+list(integer)) - one_or_errorstatus/2
Returns the status of a result.
staticstatus(Result,Status)status(+compound,-atom) - one_or_errormodel_binding/2
Enumerates model bindings.
staticmodel_binding(Result,Binding)model_binding(+compound,-pair) - zero_or_moremodel_value/3
Returns a named model value.
staticmodel_value(Result,Name,Value)model_value(+compound,+atom,-term) - zero_or_oneunsat_core_name/2
Enumerates unsatisfiable core names.
staticunsat_core_name(Result,Name)unsat_core_name(+compound,-atom) - zero_or_moreresult_property/2
Enumerates result properties.
staticresult_property(Result,Property)result_property(+compound,?compound) - zero_or_moreprint_result/1
Prints a result and its objectives.
staticprint_result(Result)print_result(+compound) - one_or_errorprint_results/1
Prints a list of results.
staticprint_results(Results)print_results(+list(compound)) - one_or_errorcapability/2
Enumerates advisory solver capabilities.
staticcapability(Solver,Feature)capability(?atom,?atom) - zero_or_moreobjective/3
Enumerates objective expressions and exact solver-reported bounds from a get-objectives response.
staticobjective(Result,Expression,Bound)objective(+compound,-term,-term) - zero_or_moreProtected predicates
(none)
Private predicates
(none)
Operators
(none)