Replies: 3 comments 2 replies
-
Look like it is not implemented yet. The direct (and probably suboptimal) approach will be to create a listener? triggered by job assignment, which will recalculate daily resource reminders. After that you can penalise for each day with resources below zero. |
Beta Was this translation helpful? Give feedback.
-
In the food packaging quickstarts, there's Job.readyDateTime and dueDateTime to limit the time window of a job. In the project job scheduling example, there is the concept of renewable and nonRenawable resources: I advise to start from the food packaging quickstart and look at the project job scheduling for inspiration. |
Beta Was this translation helpful? Give feedback.
-
Thank you, Geoffrey. I know that in the FPS example, you can use job.readyDateTime to determine the start time of a job, and then set the material's arrival time as job.readyDateTime. But my scenario may be a little more complicated. The arrival time of the material is not the condition for the start time of the job, but the So, my method is to add a method for Material (which I define the material as a type of resource), which can calculate the daily available quantity of materials. The material's available quantity for a day is the sum of the remaining quantity from the previous day and the received quantity for that day. Then a capacity constraint similar to resources in the PJS sample which used to ensure that the sum of material requirements for jobs on that day is less than the available quantity. |
Beta Was this translation helpful? Give feedback.
-
Hi there
In the Planning Mode - Food packaging, there is a constraint "Material Availability" is quite similar to my scene:
But I can't find the implementation of this constraint in the code, has it been implemented yet?
In my scenario, there is a slight difference from this constraint. I define materials as non-renewable resources (i.e. non-renewable resources in the Project Job Scheduling example), and then the daily available amount of resources is the sum of the remaining amount from the previous day and the received amount. Today's tasks can only begin when the available resources are greater than or equal to today's task requirements.
So how to achieve such this case in ConstraintStream?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions