Struct faiss::SimulatedAnnealingOptimizer
-
struct SimulatedAnnealingOptimizer : public faiss::SimulatedAnnealingParameters
Simulated annealing optimization algorithm for permutations.
Public Functions
-
SimulatedAnnealingOptimizer(PermutationObjective *obj, const SimulatedAnnealingParameters &p)
logs values of the cost function
-
double optimize(int *perm)
-
double run_optimization(int *best_perm)
-
virtual ~SimulatedAnnealingOptimizer()
Public Members
-
PermutationObjective *obj
-
int n
size of the permutation
-
FILE *logfile
-
RandomGenerator *rnd
-
double init_cost
remember initial cost of optimization
-
double init_temperature = 0.7
-
double temperature_decay = 0.9997893011688015
-
int n_iter = 500000
-
int n_redo = 2
-
int seed = 123
-
int verbose = 0
-
bool only_bit_flips = false
-
bool init_random = false
-
SimulatedAnnealingOptimizer(PermutationObjective *obj, const SimulatedAnnealingParameters &p)