1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Dataset for mathematical programming problems distributed as OMMX Artifact.
//!
//! # MIPLIB 2017
//!
//! MIPLIB 2017 is a collection of mixed-integer programming (MIP) instances.
//!
//! ```rust
//! use ommx::dataset::miplib2017;
//!
//! // Get an instance and its annotations
//! let (instance, annotation) = miplib2017::load("air05").unwrap();
//!
//! // Metadata of the MIPLIB 2017 instance is stored in the annotation
//! assert_eq!(annotation.title().unwrap(), "air05");
//! assert_eq!(annotation.authors().unwrap().next(), Some("G. Astfalk"));
//! assert_eq!(annotation.license().unwrap(), "CC-BY-SA-4.0");
//! assert_eq!(annotation.dataset().unwrap(), "MIPLIB2017");
//! ```
//!
//! # QPLIB
//!
//! QPLIB is a collection of quadratic programming (QP) instances.
//!
//! ```
//! use ommx::dataset::qplib;
//!
//! // Get metadata for all QPLIB instances
//! let annotations = qplib::instance_annotations();
//! let annotation = annotations.get("0018").unwrap();
//!
//! // Metadata is stored in the annotation
//! assert_eq!(annotation.title().unwrap(), "QPLIB_0018");
//! assert_eq!(annotation.dataset().unwrap(), "QPLIB");
//! assert_eq!(annotation.get("org.ommx.qplib.nvars").unwrap(), "50");
//! ```