简体   繁体   中英

Creating a LP Constraint

Below I have summarized how my outputVar should behave with DecisionVar:

Entity EntityValue DecisionVar1 OutputVar1 DecisionVar2 OutputVar2
A        5           1           5(base)     1            5(base) 
B        2           1           5(=prev)    1            5(=prev)
C        3           1           5(=prev)    2            5(3+2)
D        4           2           9(4+3+2)    2            5(=prev)

Scenario 1 : Since A, B, C are all allotted 1, each outputVar is set to base(=5), while D is the sum of the rest of the values.

Scenario 2 : Since A and B are allotted 1. outputVar is set to base same as A, while for C, the value is the sum of the previous remaining values and since D is set same as C, its outputVar is set same as C.

Context : If certain entities are grouped together, we are trying to constraint the time allotted to process those entities. For group of entities(except the base) the time remaining is the time from the first of the previous group to the first of the current group.

一种更简单的方法是按照实体组重新定义问题,并将其建模为集合分区/集合覆盖问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM