Commit 22c58033 authored by Tong Li's avatar Tong Li

删除固定开始日期

parent 37065872
...@@ -144,6 +144,15 @@ Integer newMachineId1=newMachineId.intValue(); ...@@ -144,6 +144,15 @@ Integer newMachineId1=newMachineId.intValue();
redecode(chromosome, chromosome.getBaseTime(), globalParam); redecode(chromosome, chromosome.getBaseTime(), globalParam);
}
public void UnlockStartTime(Chromosome chromosome, int opId) {
GAScheduleResult targetResults = chromosome.getResult().stream()
.filter(r ->r.getOperationId() == opId).findFirst()
.orElseThrow(() -> new NoSuchElementException("Operation not found: " + opId));
targetResults.setLockStartTime(0);
targetResults.setDesignatedStartTime(0);
} }
/** /**
......
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