package smtml
Install
dune-project
Dependency
Authors
-
JJoão Pereira <joaomhmpereira@tecnico.ulisboa.pt>
-
FFilipe Marques <filipe.s.marques@tecnico.ulisboa.pt>
-
HHichem Rami Ait El Hara <hra@ocamlpro.com>
-
Rredianthus <redopam@pm.me>
-
AArthur Carcano <arthur.carcano@ocamlpro.com>
-
PPierre Chambart <pierre.chambart@ocamlpro.com>
-
JJosé Fragoso Santos <jose.fragoso@tecnico.ulisboa.pt>
Maintainers
Sources
md5=9ef240b636d7059d48bb54e6b8f0a4c4
sha512=2c73a5baa2e4f8a496f575087597510edae58a4416959108e7a4b063fb9a35ae7461227c679868d82cd324865a563bd2a0df6da1fa3a88d416f76be32ea07809
doc/smtml/Smtml/Statistics/index.html
Module Smtml.StatisticsSource
Statistics Module. This module defines types and utilities for managing and manipulating solver statistics, including merging and pretty-printing.
Entry Types
The type entry represents a single statistic entry, which can be either an integer or a floating-point number.
Statistics Map
Map is a module for managing statistics as a map from string keys to statistic entries.
The type t represents a collection of statistics as a map from string keys to statistic entries.
Merging and Aggregation
sum_entries e1 e2 sums two statistic entries e1 and e2. If both entries are integers, the result is an integer. If either entry is a float, the result is a float.
merge t1 t2 merges two statistics maps t1 and t2. If a key exists in both maps, the corresponding entries are summed using sum_entries.
Pretty Printing
pp_entry fmt entry pretty-prints a single statistic entry entry using the formatter fmt.
to_json stats converts the statistics map stats into a JSON representation.