Struct clingo::Model [] [src]

pub struct Model(_);

Represents a model.

Methods

impl Model
[src]

[src]

Get the type of the model.

[src]

Get the running number of the model.

[src]

Get the symbols of the selected types in the model.

Note: CSP assignments are represented using functions with name "$" where the first argument is the name of the CSP variable and the second one its value.

Arguments

  • show - which symbols to select

Errors

[src]

Constant time lookup to test whether an atom is in a model.

Arguments

  • atom - the atom to lookup

[src]

Check whether a program literal is true in a model.

Arguments

  • literal - the literal to lookup

[src]

Get the cost vector of a model.

Errors

See: Model::optimality_proven()

[src]

Whether the optimality of a model has been proven.

See: Model::cost()

[src]

Get the id of the solver thread that found the model.

[src]

Get the associated solve control object of a model.

This object allows for adding clauses during model enumeration.

Trait Implementations

impl Debug for Model
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Model
[src]

impl Clone for Model
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Model

impl Sync for Model