Commit b1158b4f authored by Tong Li's avatar Tong Li

遗传算法-优化

parent 61b4aace
......@@ -151,7 +151,7 @@ Integer newMachineId1=newMachineId.intValue();
public void AddMaintenanceWindow(Chromosome chromosome,Long machineId, MaintenanceWindow maintenanceWindow,
GlobalParam globalParam) {
Machine machine= chromosome.getMachines().stream().filter(t->t.getId()==machineId)
Machine machine= chromosome.getInitMachines().stream().filter(t->t.getId()==machineId)
.findFirst().orElse(null);
if(machine!=null)
{
......@@ -202,7 +202,7 @@ Integer newMachineId1=newMachineId.intValue();
public void DelMaintenanceWindow(Chromosome chromosome,Long machineId,String maintenanceId,GlobalParam globalParam) {
Machine machine= chromosome.getMachines().stream().filter(t->t.getId()==machineId)
Machine machine= chromosome.getInitMachines().stream().filter(t->t.getId()==machineId)
.findFirst().orElse(null);
if(machine!=null)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment