Model.subs always removes elements close to zero
I have a Model
which has elements smaller than 1e-8
that are totally valid. However, when I try to substitute a variable using Model.subs
the elements close to zero get removed.
This is caused by Model.transform_symbolic
(that is used by Model.subs
) setting normalize=True
for the new model construction. When normalize=True
, elements that are np.allclose
to zero are removed. It doesn't like there is a way to pass arguments such that this normalize
is not passed to the new model.