From 0b5fbcc44225810ec4fab1647dbd0e9ee3e0b96a Mon Sep 17 00:00:00 2001 From: Ruizhi Yu Date: Sat, 28 Dec 2024 20:06:36 +0800 Subject: [PATCH] fix: make indexed symbol real --- Solverz/sym_algebra/symbols.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Solverz/sym_algebra/symbols.py b/Solverz/sym_algebra/symbols.py index 0dcba08..645b800 100644 --- a/Solverz/sym_algebra/symbols.py +++ b/Solverz/sym_algebra/symbols.py @@ -101,6 +101,7 @@ class IdxSymBasic(Symbol): """ Basic class for Solverz indexed Symbols """ + is_real = True def __new__(cls, symbol, index, dim): if not isinstance(index, (int, np.integer, list, idx, IdxSymBasic, Expr, slice, tuple)):