|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Result of howard_minimum_mean_cycle().
More...
#include <Howard_Min_Mean_Cycle.H>
Public Attributes | |
| size_t | iterations = 0 |
| Policy improvements applied before the policy was optimal. | |
| bool | used_karp |
True if Karp's algorithm produced the answer: fallback_reason is not None. | |
| Howard_Fallback_Reason | fallback_reason = Howard_Fallback_Reason::None |
Why Karp's algorithm produced the answer, or None if it did not. | |
| Cycle_Numeric_Quality | numeric_quality = Cycle_Numeric_Quality::Exact |
Exact when the answer was decided with exact arithmetic: integral costs, or floating-point costs verified exactly (see the file documentation). | |
Public Attributes inherited from Aleph::Min_Mean_Cycle_Result< GT, Cost_Type > | |
| bool | has_cycle = false |
| True if at least one directed cycle exists. | |
| long double | minimum_mean = std::numeric_limits<long double>::infinity() |
| GT::Node * | witness_node |
| Vertex Karp's walk ends at (not necessarily on the cycle). | |
| Cost_Type | cycle_total_cost = Cost_Type{0} |
| Weight sum of witness cycle. | |
| size_t | cycle_length = 0 |
| Number of arcs in witness cycle. | |
| DynList< typename GT::Node * > | cycle_nodes |
| Witness simple cycle (first node repeated at end). | |
| DynList< typename GT::Arc * > | cycle_arcs |
Witness arcs aligned with cycle_nodes. | |
Result of howard_minimum_mean_cycle().
It is a Min_Mean_Cycle_Result (the same fields, so it can replace the result of karp_minimum_mean_cycle()) plus how the answer was obtained. cycle_nodes holds a simple cycle, the first node repeated at the end, also when used_karp is true: Karp's walk is then decomposed into simple cycles (see karp_minimum_mean_cycle()).
| GT | Graph type. |
| Cost_Type | Arc weight type returned by the distance accessor. |
Definition at line 227 of file Howard_Min_Mean_Cycle.H.
| Howard_Fallback_Reason Aleph::Howard_Mean_Cycle_Result< GT, Cost_Type >::fallback_reason = Howard_Fallback_Reason::None |
Why Karp's algorithm produced the answer, or None if it did not.
Definition at line 234 of file Howard_Min_Mean_Cycle.H.
| size_t Aleph::Howard_Mean_Cycle_Result< GT, Cost_Type >::iterations = 0 |
Policy improvements applied before the policy was optimal.
Definition at line 229 of file Howard_Min_Mean_Cycle.H.
| Cycle_Numeric_Quality Aleph::Howard_Mean_Cycle_Result< GT, Cost_Type >::numeric_quality = Cycle_Numeric_Quality::Exact |
Exact when the answer was decided with exact arithmetic: integral costs, or floating-point costs verified exactly (see the file documentation).
Rounded when floating-point weights span too many binary orders of magnitude to be verified, and whenever Karp, which compares means in long double, produced the answer.
Definition at line 241 of file Howard_Min_Mean_Cycle.H.
| bool Aleph::Howard_Mean_Cycle_Result< GT, Cost_Type >::used_karp |
True if Karp's algorithm produced the answer: fallback_reason is not None.
Definition at line 230 of file Howard_Min_Mean_Cycle.H.