jijpresolve.evaluate_miplib

Manual MIPLIB presolve reduction evaluation.

Attributes

SCHEMA_VERSION

PRESET_ALL

PRESET_MIPLIB_BENCHMARK_SUITABLE

Functions

_utc_now_iso(→ str)

_tags(→ list[str])

_select_instances(→ list[str])

_stat(→ int)

_usage(→ int)

_constraints(→ int)

_reduced(→ dict[str, int | float | None])

_increased(→ dict[str, int])

_compute_reduction(→ dict[str, Any])

_write_json_atomic(→ None)

_options(→ dict[str, Any])

_result_record(→ dict[str, Any])

_run_worker(→ int)

_worker_command(→ list[str])

_run_instance(→ None)

_default_output_dir(→ pathlib.Path)

_build_parser(→ argparse.ArgumentParser)

main(→ int)

Module Contents

jijpresolve.evaluate_miplib.SCHEMA_VERSION = 1
jijpresolve.evaluate_miplib.PRESET_ALL = 'all'
jijpresolve.evaluate_miplib.PRESET_MIPLIB_BENCHMARK_SUITABLE = 'miplib-benchmark-suitable'
jijpresolve.evaluate_miplib._utc_now_iso() str
jijpresolve.evaluate_miplib._tags(annotations: dict[str, str]) list[str]
jijpresolve.evaluate_miplib._select_instances(selector: str, annotations: dict[str, dict[str, str]]) list[str]
jijpresolve.evaluate_miplib._stat(stats: dict[str, Any], *path: str) int
jijpresolve.evaluate_miplib._usage(stats: dict[str, Any], key: str) int
jijpresolve.evaluate_miplib._constraints(stats: dict[str, Any], key: str) int
jijpresolve.evaluate_miplib._reduced(before: int, after: int) dict[str, int | float | None]
jijpresolve.evaluate_miplib._increased(before: int, after: int) dict[str, int]
jijpresolve.evaluate_miplib._compute_reduction(original_stats: dict[str, Any], presolved_stats: dict[str, Any]) dict[str, Any]
jijpresolve.evaluate_miplib._write_json_atomic(path: pathlib.Path, data: dict[str, Any]) None
jijpresolve.evaluate_miplib._options(args: argparse.Namespace) dict[str, Any]
jijpresolve.evaluate_miplib._result_record(*, instance: str, status: str, started_at: str, options: dict[str, Any], elapsed_sec: float, error: str | None = None, miplib_status: str | None = None, miplib_tags: list[str] | None = None, original_stats: dict[str, Any] | None = None, presolved_stats: dict[str, Any] | None = None, reduction: dict[str, Any] | None = None, presolve_stats: dict[str, Any] | None = None, load_elapsed_sec: float | None = None, presolve_elapsed_sec: float | None = None) dict[str, Any]
jijpresolve.evaluate_miplib._run_worker(args: argparse.Namespace) int
jijpresolve.evaluate_miplib._worker_command(args: argparse.Namespace, instance: str, output: pathlib.Path) list[str]
jijpresolve.evaluate_miplib._run_instance(args: argparse.Namespace, instance: str) None
jijpresolve.evaluate_miplib._default_output_dir() pathlib.Path
jijpresolve.evaluate_miplib._build_parser() argparse.ArgumentParser
jijpresolve.evaluate_miplib.main() int