Struct clingo::Backend [] [src]

pub struct Backend(_);

Handle to the backend to add directives in aspif format.

Methods

impl Backend
[src]

[src]

Add a rule to the program.

Arguments

  • choice determines if the head is a choice or a disjunction
  • head - the head atoms
  • body - the body literals

Errors

[src]

Add a weight rule to the program.

Attention: All weights and the lower bound must be positive.

Arguments

  • choice - determines if the head is a choice or a disjunction
  • head - the head atoms
  • lower_bound - the lower bound of the weight rule
  • body - the weighted body literals

Errors

[src]

Add a minimize constraint (or weak constraint) to the program.

Arguments

  • priority - the priority of the constraint
  • literals - the weighted literals whose sum to minimize

Errors

[src]

Add a projection directive.

Arguments

  • atoms - the atoms to project on

Errors

[src]

Add an external statement.

Arguments

  • atom - the external atom
  • type - the type of the external statement

Errors

[src]

Add an assumption directive.

Arguments

  • literals - the literals to assume (positive literals are true and negative literals false for the next solve call)

Errors

[src]

Add an heuristic directive.

Arguments

  • atom - the target atom
  • type - the type of the heuristic modification
  • bias - the heuristic bias
  • priority - the heuristic priority
  • condition - the condition under which to apply the heuristic modification

Errors

[src]

Add an edge directive.

Arguments

  • node_u - the start vertex of the edge
  • node_v - the end vertex of the edge
  • condition - the condition under which the edge is part of the graph

Errors

[src]

Get a fresh atom to be used in aspif directives.

Trait Implementations

impl Debug for Backend
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Backend
[src]

impl Clone for Backend
[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 Backend

impl Sync for Backend