×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Ward Steemans
Added: Jun 6, 2022 9:20 PM
Modified: Jun 6, 2022 9:48 PM
Views: 10
Tags: no tags
  1. from simanneal import Annealer
  2.  
  3.  
  4. class Probleem(Annealer):
  5.     def move(self):
  6.  
  7.     def energy(self):
  8.  
  9. init_sol =
  10. sa = Probleem(init_sol)
  11. solution, best = sa.anneal()
  12.  
  13. print('solution = ', solution)
  14. print('best = ', best)