using System; using System.Collections.Generic; using SlabHandle; namespace MES.Interface { public class UseAlgorithm { //外部调用方法 public Solution solution(List list, GP_SLAB plate) { Instance instance = new Instance(); instance.squareList = list; //instance.plate_no = plate.PLATE_NO; instance.l = Convert.ToDouble(plate.LEN); instance.w = Convert.ToDouble(plate.WID); Search model = new Search(instance); //Solution solution = model.search(); Solution solution = model.search1(); return solution; } } }