Skip to content

Implement Vensim's ALLOCATE BY PRIORITY #792

@NiharikaHari

Description

@NiharikaHari

Add support for Allocate by Priority for generated C code.
This function distributes a limited quantity across multiple demands based on priority order. Higher-priority demands are satisfied first, and any remaining quantity is allocated to lower-priority demands.

Note: I have started working on this feature. Will raise a PR for it in a couple of weeks. I am only planning on adding support for C initially, but can work on the JS portion slowly too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions