Skip to content

Problem to assign element content after stock-driven model #17

@TUBSAiPTL

Description

@TUBSAiPTL

Hi,

I am doing a stock-driven model for batteries "b" (8 types) but I am struggling to assign the element content "e" (9 elements) for the inflows and outflows afterwards.

I am able to calculate the model and also assign a vehicle "g" (6 types) market share afterwards. Then the outflow (t,g,b) looks as followed (inflow looks the same). The unit is number of batteries/vehicles.
Bildschirmfoto 2022-03-24 um 12 32 22
Bildschirmfoto 2022-03-24 um 12 34 26

Now I want to assign the element content to the flows depending on battery type and vehicle type. My parameter file is a list with the data structure "bge" and "kg" as a unit. However, after assign it, the total number of batteries (in this case shown for the inflow) rises as well:
Bildschirmfoto 2022-03-24 um 12 20 34

I feel like this has something to do with my array Einstein sum of the matrixes, but cannot figure it out. This is my code and I would be thankful if you could help me out.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions