Wed, 29 Jul 2026 00:08:14 -0500
Add regularisation term to merge fitness for scaling heuristic to be justified
| Cargo.lock | file | annotate | diff | comparison | revisions | |
| Cargo.toml | file | annotate | diff | comparison | revisions | |
| src/fb.rs | file | annotate | diff | comparison | revisions | |
| src/forward_pdps.rs | file | annotate | diff | comparison | revisions | |
| src/sliding_fb.rs | file | annotate | diff | comparison | revisions | |
| src/sliding_pdps.rs | file | annotate | diff | comparison | revisions |
--- a/Cargo.lock Tue Jul 28 22:00:55 2026 -0500 +++ b/Cargo.lock Wed Jul 29 00:08:14 2026 -0500 @@ -816,7 +816,7 @@ [[package]] name = "pointsource_algs" -version = "3.1.0-dev" +version = "3.1.1" dependencies = [ "GSL", "alg_tools",
--- a/Cargo.toml Tue Jul 28 22:00:55 2026 -0500 +++ b/Cargo.toml Wed Jul 29 00:08:14 2026 -0500 @@ -1,6 +1,6 @@ [package] name = "pointsource_algs" -version = "3.1.0" +version = "3.1.1" edition = "2021" rust-version = "1.85" authors = ["Tuomo Valkonen <tuomov@iki.fi>"]
--- a/src/fb.rs Tue Jul 28 22:00:55 2026 -0500 +++ b/src/fb.rs Wed Jul 29 00:08:14 2026 -0500 @@ -210,7 +210,7 @@ ε, ins, ®, - Some(|μ̃: &RNDM<N, F>| f.apply(μ̃)), + Some(|μ̃: &RNDM<N, F>| f.apply(μ̃) + reg.apply(μ̃)), ) }); }
--- a/src/forward_pdps.rs Tue Jul 28 22:00:55 2026 -0500 +++ b/src/forward_pdps.rs Wed Jul 29 00:08:14 2026 -0500 @@ -249,7 +249,7 @@ ε, ins, ®, - Some(|μ̃: &RNDM<N, F>| f.apply(Pair(μ̃, &z))), + Some(|μ̃: &RNDM<N, F>| f.apply(Pair(μ̃, &z))+ reg.apply(μ̃)), ); });
--- a/src/sliding_fb.rs Tue Jul 28 22:00:55 2026 -0500 +++ b/src/sliding_fb.rs Wed Jul 29 00:08:14 2026 -0500 @@ -1101,7 +1101,7 @@ ε, ins, ®, - Some(|μ̃: &RNDM<N, F>| f.apply(μ̃)), + Some(|μ̃: &RNDM<N, F>| f.apply(μ̃) + reg.apply(μ̃) ), ); //if m > 0 { stats.merged += m;
--- a/src/sliding_pdps.rs Tue Jul 28 22:00:55 2026 -0500 +++ b/src/sliding_pdps.rs Wed Jul 29 00:08:14 2026 -0500 @@ -14,6 +14,7 @@ use crate::types::*; use alg_tools::bounds::MinMaxMapping; use alg_tools::convex::{Conjugable, Prox, Zero}; +use alg_tools::norms::L2; use alg_tools::direct_product::Pair; use alg_tools::error::DynResult; use alg_tools::euclidean::ClosedEuclidean; @@ -23,7 +24,6 @@ }; use alg_tools::mapping::{DifferentiableMapping, DifferentiableRealMapping, Instance}; use alg_tools::nalgebra_support::ToNalgebraRealField; -use alg_tools::norms::L2; use anyhow::ensure; use numeric_literals::replace_float_literals; use serde::{Deserialize, Serialize}; @@ -312,7 +312,7 @@ ε, ins, ®, - Some(|μ̃: &RNDM<N, F>| f.apply(Pair(μ̃, &z))), + Some(|μ̃: &RNDM<N, F>| f.apply(Pair(μ̃, &z)) + reg.apply(μ̃)), ); if m > 0 { stats.merged += m;