Function hercules::initial_points::generate_central_starting_points
source · pub fn generate_central_starting_points(qubo: &Qubo) -> Array1<f64>
Expand description
Generates a starting point of exactly 0.5 for each variable.
Example:
use hercules::qubo::Qubo;
use smolprng::{PRNG, JsfLarge};
use hercules::initial_points;
let mut prng = PRNG {
generator: JsfLarge::default(),
};
let p = Qubo::make_random_qubo(10, &mut prng, 0.5);
let x_0 = initial_points::generate_central_starting_points(&p);