Skip to content

Commit

Permalink
Added note to Eggholder Hessian docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Feb 7, 2024
1 parent 3df3fe1 commit e312df1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/argmin-testfunctions/src/eggholder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ where
}

/// Hessian of Eggholder test function
///
/// This function can return NaN elements under the following conditions:
///
/// * |x1 - x2 - 47| <= EPS && x1 != 0
/// * |x2 - x1 + 47| <= EPS && x1 != 0
/// * |x1/2 + x2 + 47| <= EPS && |x2 + 47| != 0
pub fn eggholder_hessian<T>(param: &[T; 2]) -> [[T; 2]; 2]
where
T: Float + FromPrimitive,
Expand Down

0 comments on commit e312df1

Please sign in to comment.