Skip to content

Stock and Flow with Auxiliary Variables#546

Closed
quffaro wants to merge 15 commits intomainfrom
cm/stockflow-dynvar
Closed

Stock and Flow with Auxiliary Variables#546
quffaro wants to merge 15 commits intomainfrom
cm/stockflow-dynvar

Conversation

@quffaro
Copy link
Copy Markdown
Collaborator

@quffaro quffaro commented Jun 26, 2025

This PR introduces an extension of Stock and Flow with auxiliary variables, an object which acts as a functions of quantities of stocks connected to it by variable links. The auxiliary variable acts on flows by a flow link. This effort implements the theory and frontend partially completed in #537, whereas the simulation work will be punted to a new PR.

@quffaro quffaro requested a review from epatters June 26, 2025 16:30
@quffaro quffaro force-pushed the cm/stockflow-dynvar branch from 4914bbd to 71cc0ea Compare June 30, 2025 22:14
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 30, 2025

@quffaro quffaro marked this pull request as ready for review July 1, 2025 04:12
Comment thread packages/catlog-wasm/src/theories.rs Outdated

/// Simulates the mass-action system derived from a model.
#[wasm_bindgen(js_name = "mass_action")]
pub fn mass_action(
Copy link
Copy Markdown
Member

@epatters epatters Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove for now until we have an idea about semantics for system structure diagrams with auxiliary variables: the existing mass action semantics will not use the auxiliary variables at all.

Comment thread packages/catlog/src/stdlib/theories.rs Outdated
ustr("Outflow"),
TabObType::Basic(x),
th.tabulator(th.hom_type(TabObType::Basic(x))),
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed today, these "inflows" and "outflows" are actually new kinds of links. We decided to punt on inflows/outflows until our theories can be souped up to handle terminal objects.

@epatters epatters added the enhancement New feature or request label Mar 3, 2026
@epatters
Copy link
Copy Markdown
Member

epatters commented Mar 3, 2026

Closing due to staleness. I still think this would be a nice logic to have, even if we're not sure about the quantitative semantics for system structure diagrams with auxiliary variables.

@epatters epatters closed this Mar 3, 2026
@epatters epatters deleted the cm/stockflow-dynvar branch March 3, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants