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
abbd34a4
Commit
abbd34a4
authored
Apr 16, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禁用配套
parent
6d63a60c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
GeneticDecoder.java
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
+4
-3
HillClimbing.java
src/main/java/com/aps/service/Algorithm/HillClimbing.java
+1
-0
HybridAlgorithm.java
src/main/java/com/aps/service/Algorithm/HybridAlgorithm.java
+1
-1
RoutingDataService.java
...in/java/com/aps/service/Algorithm/RoutingDataService.java
+4
-1
PlanResultServiceTest.java
src/test/java/com/aps/demo/PlanResultServiceTest.java
+2
-1
No files found.
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
View file @
abbd34a4
...
...
@@ -58,7 +58,7 @@ public class GeneticDecoder {
private
DiscreteParameterMatrixService
discreteParameterMatrixService
;
private
String
sceneId
;
private
boolean
rebuildStructureForCurrentDecode
=
tru
e
;
private
boolean
rebuildStructureForCurrentDecode
=
fals
e
;
...
...
@@ -402,11 +402,12 @@ public class GeneticDecoder {
public
void
serialDecode
(
Chromosome
chromosome
)
{
chromosome
.
setScenarioID
(
sceneId
);
if
(
rebuildStructureForCurrentDecode
)
{
materialRequirementService
.
buildMultiLevelRequirementNetwork
(
chromosome
,
sceneId
,
baseTime
,
_globalParam
);
}
chromosome
.
setScenarioID
(
sceneId
);
if
(
rebuildStructureForCurrentDecode
&&
_globalParam
.
isIsCheckSf
())
{
int
isnew
=
generateGlobalOpList
(
chromosome
);
...
...
@@ -1091,7 +1092,7 @@ public class GeneticDecoder {
int
setupTime
=
0
;
long
machineId
=
machine
.
getId
();
boolean
needMaterialCheck
=
(
operation
.
getMaterialRequirements
()!=
null
&&
operation
.
getTargetFinishedOperationId
()==
null
)||
calbom
;
boolean
needMaterialCheck
=
false
;
// (operation.getMaterialRequirements()!=null&&operation.getMaterialRequirements().size()>0
&&operation.getTargetFinishedOperationId()==null)||calbom;
boolean
commitMaterialCheck
=
needMaterialCheck
;
int
baseEarliestStartTime
=
earliestStartTime
;
int
candidateStartTime
=
earliestStartTime
;
...
...
src/main/java/com/aps/service/Algorithm/HillClimbing.java
View file @
abbd34a4
...
...
@@ -532,6 +532,7 @@ public class HillClimbing {
// 检查是否所有工序都只有一个设备选项
boolean
allSingleMachine
=
ops
.
stream
()
.
filter
(
t
->
t
.
getMachineOptions
()!=
null
)
.
allMatch
(
op
->
op
.
getMachineOptions
().
size
()
<=
1
);
// 检查是否只有一个GroupId
...
...
src/main/java/com/aps/service/Algorithm/HybridAlgorithm.java
View file @
abbd34a4
...
...
@@ -456,7 +456,7 @@ int opcount=allOperations.size();
FileHelper
.
writeLogFile
(
"解码---------------"
+
population
.
size
()
);
GeneticDecoder
decoder
=
new
GeneticDecoder
(
_GlobalParam
,
param
.
getBaseTime
(),
machines
,
orders
,
materials
,
machineScheduler
,
materialRequirementService
,
sceneId
);
boolean
ismore
=
tru
e
;
boolean
ismore
=
fals
e
;
if
(
ismore
)
{
CompletableFuture
.
allOf
(
population
.
stream
()
.
map
(
chromosome
->
CompletableFuture
.
runAsync
(()
->
decode
(
decoder
,
chromosome
,
param
,
allOperations
,
globalOpList
),
decodeExecutor
))
...
...
src/main/java/com/aps/service/Algorithm/RoutingDataService.java
View file @
abbd34a4
...
...
@@ -275,8 +275,11 @@ public class RoutingDataService {
entry
.
setMachineOptions
(
mos
);
}
}
if
(
entry
.
getMachineOptions
()!=
null
)
{
entrys
.
add
(
entry
);
}
}
...
...
src/test/java/com/aps/demo/PlanResultServiceTest.java
View file @
abbd34a4
...
...
@@ -40,7 +40,8 @@ public class PlanResultServiceTest {
// sortService.test1();
// nsgaiiUtils.Test();
planResultService
.
execute2
(
"E29F2B3ADA8149F6B916B5119296A92B"
);
//2000
// planResultService.execute2("E29F2B3ADA8149F6B916B5119296A92B");//2000
planResultService
.
execute2
(
"E2CD1FC6FF9B4B19A59FEC7F846D4952"
);
//600
// planResultService.execute2("08B1D87FE1B84ECDBAC2E546DDB6FB81");//2000
// planResultService.execute2("0428340BB4F540938F1FB5599F03E8A4");//5000
...
...
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