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
d16de264
Commit
d16de264
authored
Aug 14, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MP
parent
2275c355
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1807 additions
and
56247 deletions
+1807
-56247
model.lp
mp/lp/model.lp
+1664
-56206
optimization_result_1.json
mp/result/optimization_result_1.json
+1
-1
MacroPlannerDataConverter.java
.../com/aps/macroplanner/data/MacroPlannerDataConverter.java
+134
-40
SalesDemand.java
src/main/java/com/aps/macroplanner/data/SalesDemand.java
+8
-0
No files found.
mp/lp/model.lp
View file @
d16de264
This diff is collapsed.
Click to expand it.
mp/result/optimization_result_1.json
View file @
d16de264
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/macroplanner/data/MacroPlannerDataConverter.java
View file @
d16de264
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/macroplanner/data/SalesDemand.java
View file @
d16de264
...
...
@@ -10,14 +10,21 @@ public class SalesDemand {
private
final
Period
period
;
private
final
double
quantity
;
// 需求总量
private
final
double
priority
;
// 需求优先级
private
final
String
demandOrderId
;
// 来源订单ID (ApsDemandOrder.id), 可空
public
SalesDemand
(
Product
product
,
StockingPoint
stockingPoint
,
Period
period
,
double
quantity
,
double
priority
)
{
this
(
product
,
stockingPoint
,
period
,
quantity
,
priority
,
null
);
}
public
SalesDemand
(
Product
product
,
StockingPoint
stockingPoint
,
Period
period
,
double
quantity
,
double
priority
,
String
demandOrderId
)
{
this
.
product
=
product
;
this
.
stockingPoint
=
stockingPoint
;
this
.
period
=
period
;
this
.
quantity
=
quantity
;
this
.
priority
=
priority
;
this
.
demandOrderId
=
demandOrderId
;
}
public
Product
getProduct
()
{
return
product
;
}
...
...
@@ -25,6 +32,7 @@ public class SalesDemand {
public
Period
getPeriod
()
{
return
period
;
}
public
double
getQuantity
()
{
return
quantity
;
}
public
double
getPriority
()
{
return
priority
;
}
public
String
getDemandOrderId
()
{
return
demandOrderId
;
}
public
String
getKey
()
{
return
product
.
getId
()
+
"_"
+
stockingPoint
.
getId
()
+
"_"
+
period
.
getIndex
();
...
...
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