using System; namespace aima.search.informed { /// /// Ported to .NET by Kris Noesgaard /// from the Java implementation by Ravi Mohan /// public class Scheduler { private int k, limit; private double lam; public Scheduler(int k, double lam, int limit) { this.k = k; this.lam = lam; this.limit = limit; } public Scheduler() { this.k = 20; this.lam = 0.005; this.limit = 100; } public double getTemp(int t) { if (t < limit) { double res = k * Math.Exp((-1) * lam * t); return res; } else { return 0.0; } } } }