Module hercules::python_interopt

source ·
Expand description

Acts as the interface to rust code from python. Currently only supports reading the QUBO from a file, and running one of the search algorithms.

Functions§

  • This function converts the QUBO to a convex symmetric form and returns the QUBO in vec form
  • This function generates the rule 1.1 for the QUBO from the glover paper and returns the rules in vec form
  • This function generates the rule 2.1 for the QUBO from the glover paper and returns the rules in vec form
  • This function computes the persistence of the QUBO, e.g. an initial set of variables that can be fixed to reduce the size of the problem.
  • This reads in the QUBO from a file, and solves the QUBO using gain guided local search, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using gain guided local search, returns the best solution found.
  • This function solves the QUBO using the k-opt algorithm and returns the best solution found.
  • This solves the QUBO using mixed local search, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using mixed local search, returns the best solution found.
  • This solves the QUBO using multi-start local search, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using multi-start local search, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using particle swarm optimization, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using particle swarm optimization, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using random search, returns the best solution found.
  • This reads in the QUBO from a file, and solves the QUBO using random search, returns the best solution found.
  • This reads in the QUBO from a .qubo file
  • Solves the QUBO using branch and bound, returns the best solution found.
  • This reads in the QUBO from a .qubo file