@iyulab/u-metaheur 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -66,7 +66,7 @@ impl SaProblem for Parabola {
66
66
  x + rng.random_range(-0.5..0.5)
67
67
  }
68
68
  }
69
- let result = SaRunner::run(&Parabola, &SaConfig::default().with_seed(7));
69
+ let result = SaRunner::run(&Parabola, &SaConfig::default().with_seed(7)).expect("valid config");
70
70
  assert!((result.best - 3.0).abs() < 0.1);
71
71
  ```
72
72
 
@@ -78,10 +78,10 @@ assert!((result.best - 3.0).abs() < 0.1);
78
78
 
79
79
  ```toml
80
80
  [dependencies]
81
- u-metaheur = "0.4"
81
+ u-metaheur = "0.6"
82
82
 
83
83
  # with serde support
84
- u-metaheur = { version = "0.4", features = ["serde"] }
84
+ u-metaheur = { version = "0.6", features = ["serde"] }
85
85
  ```
86
86
 
87
87
  ## Build & Test
@@ -161,6 +161,7 @@ try {
161
161
  |---|---|---|
162
162
  | `insufficient_data` | `parameter` (`"nodes"`), `min`, `got` | Fewer than 2 nodes |
163
163
  | `parameter_out_of_range` | `parameter`, `min`, `max` (or `null`), `got` | `population_size < 2`, `generations` or `iterations` of 0, `initial_temp ≤ 0`, or `cooling_rate` outside (0, 1) — the message says whether a bound is included |
164
+ | `value_not_finite` | `parameter`, `index` | A NaN or ±Infinity anywhere in an argument — `parameter` is the path to it (`config.nodes[1]`), `index` its position in that array, or `null` |
164
165
  | `malformed_input` | `parameter` | An argument of the wrong shape or type (a missing or unknown key), or a JSON string |
165
166
 
166
167
  ### TypeScript
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "iyulab"
6
6
  ],
7
7
  "description": "Domain-agnostic metaheuristic optimization framework: GA, BRKGA, SA, ALNS.",
8
- "version": "0.5.0",
8
+ "version": "0.6.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
Binary file