math-test-functions 0.5.2

A collection of non linear functions for testing optimisation algorithms
Documentation
1
2
3
4
5
6
7
8
//! Binh Korn Weighted test function

use ndarray::Array1;

/// Binh-Korn weighted objective function
pub fn binh_korn_weighted(x: &Array1<f64>) -> f64 {
    4.0 * x[0].powi(2) + 4.0 * x[1].powi(2)
}