Skip to content

AnatoliyS/SimulatedAnnealing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simulated Annealing

Class, that implements Simulated Annealing algorithm for finding global minimum of various function

  • CAnnealer - class of annealer;
  • IGoalFunction - interface represents function;
  • CTreeGoalFunction - realisation of IGoalFunction, that builds a tree of operations from string representation of function

Usage

See Main.cpp for details

CTreeGoalFunction f = CTreeGoalFunction("cos(x*cos(x))");
CTreeGoalFunction f = CTreeGoalFunction("2*x*x*x+x*y*y+5*x*x+y*y-1");

Annealer->setGoalFunction(&f);

Annealer->setCondition("x", -5, 10);

Annealer->minimize();

About

Simulated Annealing algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages