Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
佟礼
HYH.APSJ
Commits
a5817c7e
Commit
a5817c7e
authored
Jul 23, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bom
parent
60970636
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
218 additions
and
48 deletions
+218
-48
GeneticDecoder.java
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
+9
-4
GeneticDecoderBom.java
...ain/java/com/aps/service/Algorithm/GeneticDecoderBom.java
+206
-41
PlanResultService.java
src/main/java/com/aps/service/plan/PlanResultService.java
+1
-1
PlanResultServiceTest.java
src/test/java/com/aps/demo/PlanResultServiceTest.java
+2
-2
No files found.
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
View file @
a5817c7e
...
...
@@ -690,11 +690,11 @@ public class GeneticDecoder {
long
slowOpThresholdNs
=
500_000_000L
;
// 500ms
Map
<
Integer
,
Integer
>
targetGroupEnd
=
new
HashMap
<>();
for
(
int
groupId
:
chromosome
.
getOperationSequencing
())
{
int
scheduledCount
=
orderProcessCounter
.
get
(
groupId
);
if
(
groupId
==
1
)
if
(
groupId
==
1
5
||
groupId
==
16
)
{
int
i
=
0
;
}
...
...
@@ -723,7 +723,7 @@ public class GeneticDecoder {
orderAnchor
=
bom
.
computeHybridSemiAnchor
(
this
,
groupId
,
entrysBygroupId
,
opMachineKeyMap
,
chromosome
,
scheduleIndexById
,
machineTasksCache
,
machineIdMap
,
entryIndexById
,
reForwardFinishedOrderIds
,
_globalParam
,
order
);
reForwardFinishedOrderIds
,
_globalParam
,
order
,
targetGroupEnd
);
if
(
orderAnchor
<
0
)
{
orderIsJit
=
false
;
...
...
@@ -742,7 +742,7 @@ public class GeneticDecoder {
}
else
{
orderAnchor
=
bom
.
computeSemiFinishedAnchor
(
this
,
groupId
,
entrysBygroupId
,
opMachineKeyMap
,
chromosome
,
scheduleIndexById
,
machineTasksCache
,
machineIdMap
,
entryIndexById
,
_globalParam
.
isIsCheckMp
());
scheduleIndexById
,
machineTasksCache
,
machineIdMap
,
entryIndexById
,
_globalParam
.
isIsCheckMp
()
,
targetGroupEnd
);
if
(
orderAnchor
<
0
)
{
orderIsJit
=
false
;
orderSchedulingInfo
.
put
(
groupId
,
...
...
@@ -859,6 +859,11 @@ public class GeneticDecoder {
opCount
++;
if
(
currentOp
.
getId
()==
60
)
{
int
k
=
0
;
}
orderProcessCounter
.
put
(
groupId
,
orderProcessCounter
.
get
(
groupId
)
+
1
);
orderLastEndTime
.
put
(
groupId
,
actualEndTime
);
...
...
src/main/java/com/aps/service/Algorithm/GeneticDecoderBom.java
View file @
a5817c7e
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/service/plan/PlanResultService.java
View file @
a5817c7e
...
...
@@ -297,7 +297,7 @@ public class PlanResultService {
if
(!
saved
)
{
throw
new
BusinessException
(
"排产计算结果保存失败,请稍后重试或联系管理员"
);
}
//
WriteScheduleSummary(chromosome);
WriteScheduleSummary
(
chromosome
);
return
chromosome
;
...
...
src/test/java/com/aps/demo/PlanResultServiceTest.java
View file @
a5817c7e
...
...
@@ -43,9 +43,9 @@ public class PlanResultServiceTest {
// planResultService.execute2("64E64F6B68094AF38CEDC418630C3CC2");//2000
// planResultService.execute2("E1448B3C9C8743DEAB39708F2CFE348A");//倒排bomces
//
planResultService.execute2("85DA28EC5F4643449E65A51253D5F127"); //bom 多半成品
planResultService
.
execute2
(
"85DA28EC5F4643449E65A51253D5F127"
);
//bom 多半成品
planResultService
.
execute2
(
"FB14AF1623CB461D9BEDAFC35DBF0AFC"
);
//重叠
//
planResultService.execute2("FB14AF1623CB461D9BEDAFC35DBF0AFC"); //重叠
// planResultService.execute2("F8F147BD627C47B1A190399DD7A697F6");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment