Expand description
JSON export schema for example payloads.
Structs§
- Example
Db - Canonical exported database of model and rule examples.
- ModelDb
- Canonical exported database of model examples.
- Model
Example - A complete model example: instance + known optimal solution.
- Problem
Ref - Canonical structural identity for a problem node in the reduction graph.
- Problem
Side - One side (source or target) of a reduction.
- RuleDb
- Canonical exported database of rule examples.
- Rule
Example - A complete rule example: reduction + solutions in one file.
- Solution
Pair - One source↔target solution pair.
Functions§
- lookup_
overhead - Look up
ReductionOverheadfor a direct reduction usingReductionGraph::find_best_entry. - variant_
to_ map - Convert
Problem::variant()output to a stableBTreeMap. - write_
example_ db_ to - Write the canonical example database as a wrapped JSON object.
- write_
model_ db_ to - Write the canonical model database as a wrapped JSON object.
- write_
model_ example_ to - Write a model example JSON file to a target directory.
- write_
rule_ db_ to - Write the canonical rule database as a wrapped JSON object.
- write_
rule_ example_ to - Write a merged rule example JSON file.