Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document table names in TheoryStockFlow #92

Open
jpfairbanks opened this issue Sep 28, 2023 · 9 comments
Open

Document table names in TheoryStockFlow #92

jpfairbanks opened this issue Sep 28, 2023 · 9 comments

Comments

@jpfairbanks
Copy link
Member

@Xiaoyan-Li, could you list out what all the table names and homs stand for in the schema? I tried to come up with good names and got confused on things like LSV.

@neonWhiteout
Copy link
Collaborator

This is the schema for StockAndFlowF. It doesn't contain the morphism names, though.
Name/Op/Position aren't objects, from what I understand, they're additional datatypes for an ACSet. Symbol, Symbol, Int respectively.

S is stock, F is flow, SV is sum variables, P is parameters, V is variables. The others are all links between them.

LS is link stock, (links stocks and sum variables), LSV is link sum variable (links sum variables and variables), LV is link variable (links stocks and variables), LVV is link variable variables, LPV is link parameter variables. I is inflows and O is outflows.

image

@jpfairbanks
Copy link
Member Author

Thanks!

@jpfairbanks
Copy link
Member Author

Why are inflows and outflows, when in the primitive schema we just had flows between a pair of stocks?

@neonWhiteout
Copy link
Collaborator

Inflows and Outflows allow for flows into and out of a model (to or from CLOUD), as opposed to needing a stock on both sides. Each complete flow will have both an inflow or outflow.

@jpfairbanks
Copy link
Member Author

Exactly 1 inflow and 1 outflow? Or can you reuse the same flow with different stocks as the I and O?

@neonWhiteout
Copy link
Collaborator

The intention is 0 or 1 inflow and 0 or 1 outflow; I'm unsure if it's currently enforced. @Saityi

@jpfairbanks
Copy link
Member Author

Interesting. The full-fledges stock flow diagram is more complex than I thought. I might stick to StockFlowp for now.

@jpfairbanks
Copy link
Member Author

We might could use a variation on half-edge graph for this. https://blog.algebraicjulia.org/post/2020/09/cset-graphs-2/#half-edge-graphs

By using half-edges, you can encode systems where an edge is allowed to be dangling. It is specific to undirected graphs, but that could be generalized.

@neonWhiteout
Copy link
Collaborator

Here is the schema with the morphism names.

I think there was also some talk about applications of flows with no inflows and outflows, but Nicholas/Xiaoyan would know more about that.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants