How to add priority constraint for optimize total production problem CP-SAT

103 views
Skip to first unread message

dante

unread,
Jul 31, 2024, 5:25:18 AM7/31/24
to or-tools-discuss
hi everyone,

I've designed a program using CP-SAT. It gets operation and employee data and maximizes the total production. It uses available time, efficiency, and minimum pieces to create constraints. It is currently maximizing the total pieces produced by each operation.

The problem is that now I have to create a constraint for priority for each operation done by a single employee. Higher priority must produce more. I do not know how to add this constraint. Any help would be appreciated.

Thanks.

JGL

unread,
Aug 12, 2024, 2:38:37 PM8/12/24
to or-tools-discuss
If time-dependent, could you add a penalty to the start-time of a priority job?
This way, they are scheduled earlier.

If the problem is purely output numbers, the costs of not producing a priority job should exceed the costs of not producing a non-priority job

Op woensdag 31 juli 2024 om 11:25:18 UTC+2 schreef dante:
Reply all
Reply to author
Forward
0 new messages