Commit 992e95ae authored by Tong Li's avatar Tong Li

遗传算法-优化

parent dcf3cafd
...@@ -100,6 +100,7 @@ public class MaterialRequirementService { ...@@ -100,6 +100,7 @@ public class MaterialRequirementService {
List<Entry> _newEntrys = new ArrayList<>(); List<Entry> _newEntrys = new ArrayList<>();
List<Machine> _newMachines = new ArrayList<>(); List<Machine> _newMachines = new ArrayList<>();
List<Integer> routingIds = _allOperations.stream() List<Integer> routingIds = _allOperations.stream()
.filter(t->t.getRoutingId()!=null)
.map(Entry::getRoutingId) .map(Entry::getRoutingId)
.distinct() .distinct()
.collect(Collectors.toList()); .collect(Collectors.toList());
......
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
redis: redis:
host: 39.100.88.40 host: 39.100.88.40
port: 6379 port: 6379
timeout: 10000 timeout: 120000
database: 10 database: 10
password: redis@228! password: redis@228!
# Swagger 配置 # Swagger 配置
......
...@@ -26,7 +26,7 @@ public class PlanResultServiceTest { ...@@ -26,7 +26,7 @@ public class PlanResultServiceTest {
@Test @Test
public void testExecute() { public void testExecute() {
planResultService.execute2("1D233450774C420B9165A6AE6E616F67"); planResultService.execute2("6DB2311203C44FABBAE966A42D0A5C8E");
// LocalDateTime t= LocalDateTime.of(2025, 11, 15, 6, 51, 11); // LocalDateTime t= LocalDateTime.of(2025, 11, 15, 6, 51, 11);
// List<Integer> opids=new ArrayList<>(); // List<Integer> opids=new ArrayList<>();
......
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