Skip to content

Commit

Permalink
Specify if symbols are real.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Apr 3, 2024
1 parent 674b749 commit df5dc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion andes/core/symprocessor.py
Expand Up @@ -126,7 +126,7 @@ def generate_symbols(self):
if self.parent.services[var].vtype == complex:
is_real = False

self.inputs_dict[var] = sp.Symbol(var)
self.inputs_dict[var] = sp.Symbol(var, real=is_real)

for var in self.cache.all_vars_names:
tmp = sp.Symbol(var, real=True) # all DAE variables are real
Expand Down

0 comments on commit df5dc68

Please sign in to comment.