Skip to content

multierlang.py -> input / output alignment #46

Open
@michaelmarzec

Description

Is your feature request related to a problem? Please describe.

  • Hi Rodrigo - I am curious if there's a method to print/generate the inputs with their corresponding outputs when running the MultiErlangC.required_positions? If not, I think this could be a useful feature.

Describe the solution you'd like

  • Add to the MultiErlangC : required_positions_grid dict output a key that indicates which input values the outputs correspond to. Using the repo's example, the position_requirements output is currently:

positions_requirements: [{'raw_positions': 13, 'positions': 19, 'service_level': 0.7955947884177831, 'occupancy': 0.7692307692307693, 'waiting_probability': 0.285270453036493}, {'raw_positions': 14, 'positions': 20, 'service_level': 0.8883500191794669, 'occupancy': 0.7142857142857143, 'waiting_probability': 0.1741319335950498}, {'raw_positions': 15, 'positions': 22, 'service_level': 0.9414528428690223, 'occupancy': 0.6666666666666666, 'waiting_probability': 0.10204236700798798}]

If you update the first entry, it could look something like ...
positions_requirements: [{"transactions": 100, "aht": 3, "interval": 30, "asa": .33, "shrinkage": 0.3, 'raw_positions': 13, 'positions': 19, 'service_level': 0.7955947884177831, 'occupancy': 0.7692307692307693, 'waiting_probability': 0.285270453036493} ...

Describe alternatives you've considered

  • I have not tested any new solutoins, but I understand that it's currently a systematically ordered output. If converted to a pandas dataframe, I am considering appending columns that represent the input.

Additional context

  • N/A -> thanks for the awesome solution!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions