Any idea what might be causing this ? From the source code pinned below Ic is clearly a boolean and I would expect this to always be a boolean and thus for Line 33 (also pinned below) to always fail.
Also worrying to me is the fact that the error output has If = Ic - 1 on line 31 and not 33. I've updated my package with pip install mpc --upgrade and it claims it's up to date. Any help on this would be super appreciated.
Hi, I think I've fixed this in the latest version. I forgot to push to pypi earlier but just did. Can you try pulling the latest version and try again?
Hi I'm trying to run the following code
where
controller
is initialized asand I'm getting the following error output
Any idea what might be causing this ? From the source code pinned below
Ic
is clearly a boolean and I would expect this to always be a boolean and thus for Line 33 (also pinned below) to always fail.https://github.com/locuslab/mpc.pytorch/blob/dc6ae9f6e3858510a5df96592fac3a3a17590b2a/mpc/pnqp.py#L32
https://github.com/locuslab/mpc.pytorch/blob/dc6ae9f6e3858510a5df96592fac3a3a17590b2a/mpc/pnqp.py#L33
Also worrying to me is the fact that the error output has
If = Ic - 1
on line 31 and not 33. I've updated my package withpip install mpc --upgrade
and it claims it's up to date. Any help on this would be super appreciated.