MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
pbqp::Solution Struct Reference

A complete assignment of options to nodes. More...

#include <pbqp/solver.h>

Public Member Functions

bool feasible () const

Public Attributes

Choices choices
 choices[n] is the option chosen for node n.
Cost cost = 0
 Total cost of the assignment under the original graph.
fe::Bitset conflicts
 Nodes whose choice hits a Cost::inf entry, see conflicts; empty iff feasible.
Statistics statistics

Detailed Description

A complete assignment of options to nodes.

Definition at line 27 of file solver.h.

Member Function Documentation

◆ feasible()

bool pbqp::Solution::feasible ( ) const
inlinenodiscard

Definition at line 36 of file solver.h.

References cost.

Member Data Documentation

◆ choices

Choices pbqp::Solution::choices

choices[n] is the option chosen for node n.

Definition at line 29 of file solver.h.

◆ conflicts

fe::Bitset pbqp::Solution::conflicts

Nodes whose choice hits a Cost::inf entry, see conflicts; empty iff feasible.

Definition at line 33 of file solver.h.

◆ cost

Cost pbqp::Solution::cost = 0

Total cost of the assignment under the original graph.

Definition at line 31 of file solver.h.

Referenced by feasible(), and pbqp::solve_exhaustive().

◆ statistics

Statistics pbqp::Solution::statistics

Definition at line 34 of file solver.h.


The documentation for this struct was generated from the following file: