SyTen

◆ SA_reorder()

template<typename Size , typename FunctionEval , typename TemperatureFunction >
auto syten::BasisTransformation::SimulatedAnnealing::SA_reorder ( Size  size,
FunctionEval const &  func,
TemperatureFunction const &  temp_func,
Vec< Index > const &  types = {},
Index const &  num_steps = 1.e6 
)

Basic simulated annealing algorithm.

Template Parameters
FunctionEvalfunction evaluation type, takes a Vector and returns a cost.
Temperaturefunction, has to be lowered during the SA
Parameters
orderinitial ordering.
funcfunction object used to evaluate the function at a specific point.
temp_functemperature function, returns the current temperature, scales with the step_count.
num_stepsnumber of permutations per temperature.
Returns
a tuple of the final ordering and associated cost.

References syten::BasisTransformation::SimulatedAnnealing::SA_reorder().

Referenced by syten::BasisTransformation::SimulatedAnnealing::SA_reorder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: