参阅地址: https://www.jianshu.com/p/ae5157c26af9 代码实现: public class GA { private int ChrNum = 10; //染色体数量 private String[] ipop = new String[ChrNum]; //一个种群中染色体总数 private int generation = 0; //染色体代号 public static final int GENE = 46; //基因数 private double…
@Test public void testPaceController_multiThread() throws InterruptedException { final PaceController paceController = new PaceController(1000, 160d); final Node node = mock(Node.class); final AtomicInteger passcount = new AtomicInteger(); final Atom…