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

Sums with different sum indices don't get simplified #188

Open
andia89 opened this issue Dec 29, 2023 · 1 comment
Open

Sums with different sum indices don't get simplified #188

andia89 opened this issue Dec 29, 2023 · 1 comment

Comments

@andia89
Copy link

andia89 commented Dec 29, 2023

@cnumbers N
h = NLevelSpace(:atoms, 2)

i = Index(h,:i,N,h)
j = Index(h,:j,N,h)

sigma(i,j,k) = IndexedOperator(Transition(h,:σ,i,j),k)
sigmam(k) = sigma(1, 2, k)

SymbolicUtils.simplify(∑(sigmam(i), i)+∑(sigmam(j), j))

outputs

(Σ(i=1:N)σ12i+Σ(j=1:N)σ12j)

Even though it should

2(Σ(i=1:N)σ12i)
@andia89 andia89 changed the title Sums with different sum indices get not simplified Sums with different sum indices don't get simplified Dec 29, 2023
@ChristophHotter
Copy link
Member

We did not implement this simplification rule. However, this is not needed to create the correct equations. When the equations are scaled or evaluated the terms will be simplified.

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