-
Notifications
You must be signed in to change notification settings - Fork 7
Add comprehensive allocation technical reference documentation #2479
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: jarsarasty <[email protected]>
Co-authored-by: jarsarasty <[email protected]>
Hi @simulutions, In #2479, you are nicely updating the allocation documentation and make it more accessible to users. Copilot created this pull request to update and relocate the technical developer documentation on allocation. I updated the automatically generated PR description, which was inaccurate. These changes should complement what you are currently doing in #2479. |
…n-documentation branch
d^{p_{\text{fd}}} \text{ if } p = p_{\text{fd}} | ||
\end{cases} | ||
$$ | ||
for all $i \in FD_S$. Here $d^{p_{\text{fd}}}$ is given by the original flow demand minus the flows through node $i$ at all priorities $p < p_{\text{fd}}$. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please explain what the subscripts fd and df mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a callout note explaining that the subscript "fd" stands for "flow demand", indicating the specific priority level associated with flow demand nodes in the subnetwork. Fixed in commit a07fe2c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @copilot
**Implementation:** | ||
```julia | ||
get_subnetwork_ids(graph::MetaGraph, node_type::NodeType.T, subnetwork_id::Int32) = | ||
filter(node_id -> node_id.type == node_type, graph[].node_ids[subnetwork_id]) | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not. visible in the generated docs, can you fix that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the code block visibility by using proper Quarto syntax with {.julia}
language specification and ensuring proper spacing. The implementation code should now render correctly in the generated documentation. Fixed in commit a07fe2c.
… visibility Co-authored-by: simulutions <[email protected]>
Motivation:
The overhaul of the allocation documentation (PR #2462) improved the accessibility of the user documentation. Now, developer documentation can be updated and expanded.
Solution
This PR creates comprehensive technical documentation that bridges the gap between mathematical formulation and code implementation:
📚 New Technical Reference Document
docs/dev/allocation-technical-reference.qmd
- a complete developer guide🔗 Bridged Math-Code Gap
F_ij ≤ (C_S)_ij
→JuMP.@constraint(problem, flow[link] <= capacity[link])
♻️ Relocate technical content
🔧 Enhanced Code Documentation
S_end - S_start = Δt × (forcing + inflow - outflow)
minimize ∑(F_ij / source_priority_i)
🧭 Improved Navigation
Visual Result
The new documentation provides:
Files Changed
docs/dev/allocation-technical-reference.qmd
- Complete technical referencedocs/concept/allocation.qmd
- Recovered commented content with cross-referencesdocs/dev/allocation.qmd
- Added technical reference linksdocs/_quarto.yml
- Added new doc to navigationcore/src/allocation_init.jl
- Added mathematical context commentsTesting
This resolves the Mathematical-Code Disconnect and Lost Technical Content issues, enabling developers to effectively understand, debug, and extend the allocation system.
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.