First, the full stack trace for that exception would help greatly in debugging things. You can get that by specifying the “--traceback” option to runef.
I am going to go out on a limb and guess the following: you are using NumPy data types, either internally or by initializing immutable Params with NumPy data. There is a particularly subtle conflict between NumPy’s operator overloading and Pyomo’s object model where NumPy tries to treat Pyomo scalars as if they were indexed. See https://github.com/Pyomo/pyomo/issues/31 for the gory discussion.
If we can identify *where* that exception is being raised, we can probably exploit Option 4 from the discussion to avoid the exception.
john
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.