pub struct Dds {
pub r: f64,
pub seed: u64,
}Expand description
DDS configuration.
Fields§
§r: f64Neighborhood perturbation size, as a fraction of each variable’s range.
The paper’s robust default is 0.2.
seed: u64RNG seed; same seed + same problem + same budget ⇒ same result.
Implementations§
Source§impl Dds
impl Dds
Sourcepub fn optimize_from(
&self,
problem: &dyn Problem,
term: &Termination,
init: Option<&[f64]>,
) -> Report
pub fn optimize_from( &self, problem: &dyn Problem, term: &Termination, init: Option<&[f64]>, ) -> Report
Like optimize but with an explicit starting
point.
§Panics
If the problem is invalid (see crate::problem::validate) or init
has the wrong length — a shape mismatch is a caller bug that must not
be silently papered over with a random start.
Trait Implementations§
impl Copy for Dds
Auto Trait Implementations§
impl Freeze for Dds
impl RefUnwindSafe for Dds
impl Send for Dds
impl Sync for Dds
impl Unpin for Dds
impl UnsafeUnpin for Dds
impl UnwindSafe for Dds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more