Function hercules::python_interopt::gls_from_file

source ·
pub fn gls_from_file(
    filename: String,
    x_0: Vec<usize>,
    max_steps: usize
) -> PyResult<(Vec<usize>, f64)>
Expand description

This reads in the QUBO from a file, and solves the QUBO using gain guided local search, returns the best solution found.

Example

import hercules

# read in the QUBO from a file
x_soln = hercules.gls_from_file("file.qubo", 0, 10)

§Errors

if the file does not exist, then it will abort