Re: [optaplanner-dev] Call center example

67 views
Skip to first unread message

Radovan Synek

unread,
Dec 8, 2022, 9:43:54 AM12/8/22
to optapla...@googlegroups.com
Hello Patrick,

your observation is right, although it's difficult to spot it, as the waiting time is updated by the ResponseTimeUpdatingVariableListener [1] whenever a call is added, removed, or assigned to a different Agent. However, updating the Call.duration field, which is not a PlanningVariable, itself does not trigger the listener.

The right solution would be implementing the same logic from the listener in the ProlongCallByMinuteProblemChange.

On Thu, Dec 8, 2022 at 11:39 AM Patrick Ondreovici <ondre...@gmail.com> wrote:
Hi i have a question about the call center example.
The prolongcall method is not updating the next call estimated time waiting. It is possible to update also the estimated time waiting when appears a change in call duration ?

--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/0c986c48-e215-4acb-9023-a7d45f6d1a2fn%40googlegroups.com.


--

Radovan Synek

Principal Software Engineer, Business Automation

Red Hat EMEA

Brno, Czech Republic

Patrick Ondreovici

unread,
Dec 8, 2022, 10:01:36 AM12/8/22
to OptaPlanner development
But in the ProlongCallByMinuteProblemChange doChange method, we don't have the ScoreDirector.
How it should be done ?

Radovan Synek

unread,
Dec 9, 2022, 6:56:29 AM12/9/22
to optapla...@googlegroups.com
On Thu, Dec 8, 2022 at 4:01 PM Patrick Ondreovici <patrick.o...@rodeapps.com> wrote:
But in the ProlongCallByMinuteProblemChange doChange method, we don't have the ScoreDirector.
How it should be done ?

The ProblemChange uses a ProblemChangeDirector, which is a simplified version of ScoreDirector.

The ProlongCallByMinuteProblemChange updates the Call in question via the ProblemChangeDirector; use that API to implement the same loop from the ResponseTimeUpdatingVariableListener, which updates also all the following calls.
 
Reply all
Reply to author
Forward
0 new messages