Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b25a65c
Limit search space to relevant techs (experimental)
tsmbland Mar 25, 2025
dbbd182
New test
tsmbland Mar 26, 2025
8557910
Attempt to fix failing test
tsmbland Mar 26, 2025
783f06d
Another attempt at keeping test happy
tsmbland Mar 26, 2025
3e4e985
Add inputs check, fix tests
tsmbland Mar 25, 2025
88f424a
Merge branch 'main' into search_space
tsmbland Mar 26, 2025
4a0d5aa
Refactor demand_share module to take demand directly
tsmbland Mar 24, 2025
d915db8
Split demands between subsectors
tsmbland Mar 24, 2025
be8b08f
Different method for selecting commodity demands
tsmbland Mar 24, 2025
e59d4a8
Remove unnecessary filtering
tsmbland Mar 24, 2025
e8caf92
Revert "Remove unnecessary filtering"
tsmbland Mar 24, 2025
87b2374
Undo change
tsmbland Mar 24, 2025
23cc31d
Shrink lp problem
tsmbland Mar 25, 2025
6d65655
Fix error with dimension name
tsmbland Mar 25, 2025
9cfc2f0
Simplify lp_costs
tsmbland Mar 25, 2025
0cdca86
Fix some of the tests
tsmbland Mar 26, 2025
44f3d29
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 26, 2025
a840748
Mandatory kwargs
tsmbland Mar 26, 2025
5e01d94
Merge branch 'search_space' into subsector_demand
tsmbland Mar 26, 2025
3cfff5e
Revert some changes
tsmbland Mar 26, 2025
7badec5
Merge branch 'main' into subsector_demand
tsmbland Mar 27, 2025
164d50f
Merge branch 'main' into subsector_demand
tsmbland Mar 27, 2025
f901686
Small changes
tsmbland Mar 27, 2025
e36bf11
Merge branch 'subsector_demand' of https://github.com/EnergySystemsMo…
tsmbland Mar 27, 2025
2405d7f
Fix msf mistake
tsmbland Mar 27, 2025
e441da5
Merge branch 'main' into subsector_demand
tsmbland Mar 27, 2025
c417a23
Fix some tests
tsmbland Mar 27, 2025
a233991
Suppress some tests
tsmbland Mar 27, 2025
86e5a9c
Inline comments and docstrings to clarify code
tsmbland Mar 28, 2025
1efae06
New lpcosts method
tsmbland Mar 28, 2025
a348024
Fix tests
tsmbland Mar 28, 2025
8824146
Restore test
tsmbland Mar 28, 2025
1255945
Delete doctests
tsmbland Mar 28, 2025
d7ed991
Apply suggested changes
tsmbland Apr 1, 2025
a7dc6db
Merge branch 'main' into subsector_demand
tsmbland Apr 1, 2025
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
6 changes: 6 additions & 0 deletions src/muse/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ def next(
.astype(int)
)

# Select technologies in the search space
technologies = technologies.sel(
technology=technologies.technology.isin(search_space.replacement)
)

# Skip forward if the search space is empty
if any(u == 0 for u in search_space.shape):
getLogger(__name__).critical("Search space is empty")
Expand Down Expand Up @@ -361,6 +366,7 @@ def next(
search=search[["search_space", "decision"]],
technologies=technologies,
constraints=constraints,
commodities=list(demand.commodity.values),
timeslice_level=self.timeslice_level,
)

Expand Down
Loading