Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
682 changes: 661 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
name = "StateSelection"
uuid = "64909d44-ed92-46a8-bbd9-f047dfbdc84b"
version = "0.2.1"
authors = ["JuliaHub", "Inc. and other contributors"]
version = "1.0.0"

[deps]
BipartiteGraphs = "caf10ac8-0290-4205-88aa-f15908547e8d"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
FindFirstFunctions = "64ca27bc-2ba2-4a57-88aa-44e436879224"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[weakdeps]
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"

[extensions]
StateSelectionDeepDiffsExt = "DeepDiffs"

[compat]
BipartiteGraphs = "0.1.2"
DocStringExtensions = "0.9.3"
FindFirstFunctions = "1.2.0"
Graphs = "1.10.0"
LinearAlgebra = "1.11.0"
OrderedCollections = "1"
Setfield = "1.1.1"
SparseArrays = "1.11.0"
UnPack = "1.0.2"
julia = "1.9"

[weakdeps]
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"

[extensions]
StateSelectionDeepDiffsExt = "DeepDiffs"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Expand Down
6 changes: 2 additions & 4 deletions ext/StateSelectionDeepDiffsExt.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module StateSelectionDeepDiffsExt

using DeepDiffs
using StateSelection.BipartiteGraphs: Label,
BipartiteAdjacencyList, unassigned,
HighlightInt
using BipartiteGraphs: Label, BipartiteAdjacencyList, unassigned, HighlightInt
using StateSelection: SystemStructure,
MatchedSystemStructure,
SystemStructurePrintMatrix
Expand Down Expand Up @@ -187,4 +185,4 @@ function DeepDiffs.deepdiff(old::Union{MatchedSystemStructure, SystemStructure},
Base.print_matrix(stdout, SystemStructureDiffPrintMatrix(new_sspm, old_sspm))
end

end
end
12 changes: 7 additions & 5 deletions src/StateSelection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ using DocStringExtensions
using Setfield: @set!, @set
using UnPack: @unpack
using Graphs
import SparseArrays
import OrderedCollections: OrderedSet

# Graph Types
function invview end
function complete end
include("graph/bipartite.jl")
using BipartiteGraphs
include("graph/diff.jl")
using .BipartiteGraphs

# Math library
include("math/bareiss.jl")
Expand All @@ -23,12 +22,15 @@ include("interface.jl")
# Structural transformation passes
include("singularity_removal.jl")
include("pantelides.jl")
include("modia_tearing.jl")
include("tearing.jl")
include("modia_tearing.jl")
include("partial_state_selection.jl")

# Utilities
include("debug.jl")
include("utils.jl")

export DiffGraph, bareiss, CLIL, find_eq_solvables!, SelectedState
export TearingAlgorithm, TearingResult, ModiaTearing, DummyDerivativeTearing

end
73 changes: 0 additions & 73 deletions src/StructuralTransformations.jl

This file was deleted.

3 changes: 1 addition & 2 deletions src/debug.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

using .BipartiteGraphs: Label, BipartiteAdjacencyList
using BipartiteGraphs: Label, BipartiteAdjacencyList

struct SSAUses{T}
eqs::Vector{T} # equation uses
Expand Down
Loading
Loading