gtopt/lp_fingerprint.hpp file

LP structural fingerprint for formulation integrity verification.

Provides a structural "fingerprint" of an LP formulation that captures which types of variables and constraints exist (class, name, context type) without depending on element counts. Two systems with 100 generators or 20 generators produce the same structural template.

The fingerprint has two sections:

  • structural: sorted, deduplicated template entries + SHA-256 hash (used for regression comparison)
  • stats: per-class column/row counts (informational only)

Namespaces

namespace gtopt

Classes

struct gtopt::FingerprintEntry
struct gtopt::FingerprintStats
Per-class column/row count statistics (informational, not compared).
struct gtopt::LpFingerprint
Complete LP fingerprint for one LP phase.