Skip to content

Commit

Permalink
feat: Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrover112 committed Sep 28, 2021
1 parent 1e33e79 commit f72285b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/example1.py
Expand Up @@ -39,11 +39,12 @@

read_file('flights.txt')
ic=IteratedChaining(rounds=5, n_obs=2, tol=90)
soln, cost, scores, nfe=ic.run('RandomSearch', 'HillClimb')
soln, cost, scores, nfe=ic.run('RandomSearch', 'HillClimb')
print_schedule(soln,'FCO')
#multiple_runs(ReverseGA, domain, fitness_function, record=False, n=2)


hc=HillClimb(seed_init=False,max_time=0.0000001)
# All domains defined with a single-tuple/or without a multiplier have n-dimensional Input Domain
soln, cost, scores, nfe, seed=hc.run(domain=domain['griewank']*5,fitness_function=griewank,seed=5)
plot_scores(scores,hc.get_name(),fname='griewank',save_fig=False)

0 comments on commit f72285b

Please sign in to comment.