P.S. I have tried passing ieqcons, eqcons either both Python lists or both numpy arrays, it doesn't work as well (same error I have mentioned) (in the code I sent 1st is Python lists, 2nd is array) Regards, D.