Skip to content

policy shortest-queue-available not selecting shortest queue #196

@thigger

Description

@thigger

The policy "shortest-queue" seems to include server count
as well as queue size when deciding what's shorter.

eg
ward A - 20 patients being served (capacity 20), queue of 4
ward B - 30 patients being served (capacity 30), queue of 1

The policy chooses ward A despite the queue in ward B being shorter.

Enclosed a test scenario.

From simmer/inst/include/simmer/activity/resource_internal.h :

if (!selected || res->get_server_count() + res->get_queue_count() <
selected->get_server_count() + selected->get_queue_count())
selected = res;

policy queue test - Copy.R.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions