fix: resolve compilation errors in optimiz-r

- Remove unused Uniform import in shade.rs
- Prefix unused variables with underscore in shade.rs and timeseries_utils.rs
- Make PyO3 bindings conditional with feature gates in rust_objectives.rs
- Simplify rust_objectives.rs with compact implementations
- All benchmarks (Sphere, Rosenbrock, Rastrigin, Ackley, Griewank) now compile without python-bindings feature
- Resolves: unused imports, unused variables, unresolved PyO3 crate errors
This commit is contained in:
Melvin Alvarez
2026-01-04 13:25:12 +01:00
parent 75660d0bf7
commit 5ec5dff6ab
3 changed files with 57 additions and 211 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ mod tests {
#[test]
fn test_return_statistics() {
let returns = vec![0.01, -0.02, 0.015, 0.005, -0.01];
let (mean, std, skew, kurt, sharpe) = return_statistics(&returns);
let (mean, std, _skew, _kurt, _sharpe) = return_statistics(&returns);
assert!((mean).abs() < 0.1); // Small mean
assert!(std > 0.0); // Non-zero volatility