How to selectively assign element output to different parts of a vector?

Comments

2 comments

  • Avatar
    Page Weil

    Solved! I was looking for the "Vector Constructor" function described here:

    https://help.goldsim.com/Content/GS/expressionelements.htm

    vector(Array Label Set, Value1, Value2, …)
    1
    Comment actions Permalink
  • Avatar
    Jason

    Page,

    Thanks for writing in the forum! Yes that is the answer I would have provided as well. Note that you can also use a Data element with the Type set to the Array Label Set you are using. This probably isn't what you need for this particular problem, but in the future, if you have to reference a large set of outputs, then you can use =CONCATENATE() in Excel to quickly generate a list of outputs then copy and paste these names into the Data array table. In the example below, I am grabbing the outputs for all the reservoirs within a model and referencing their names of the outputs. For long lists of outputs, the concatenate function in Excel is helpful to quickly generate that list. Just put the list in 1 column then the concatenate function can be used to fill in the other parts of the names (i.e. ".Volume" in this case). I know this likely isn't what you need right now but in case your list is long, this could be used.

     

    -Jason

    0
    Comment actions Permalink

Please sign in to leave a comment.