Ejemplo n.º 1
0
 public TSPSolution solve(TSPInput input)
 {
     SASPlan.Domain dom = input.exportToPlanningDomain();
     createEngine(dom);
     engine.search();
     return(convertPlan(engine.getSolution(), dom, input));
 }
Ejemplo n.º 2
0
        public override List <int> runSimulation(Plan p, int maxSimulationLength)
        {
            this.d.initialState = p.currentState;
            engine.search(true);
            var sol = engine.getSolution();

            foreach (var item in sol)
            {
                p.addAction(d.operators[item]);
            }
            return(sol);
        }