Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Casadi v2.3.0 binary: 'explicitRK' is not defined #2

Open
adowling2 opened this issue Aug 24, 2015 · 3 comments
Open

Error with Casadi v2.3.0 binary: 'explicitRK' is not defined #2

adowling2 opened this issue Aug 24, 2015 · 3 comments

Comments

@adowling2
Copy link

When I run the dynamic optimization example in the REAME file, I get the following error:

NameError Traceback (most recent call last)
in ()
----> 1 ocp(T,[u>=-1,u<=1,q.start==0,x.start==1,y.start==0,x.end==0,y.end==0],T=T,N=20)

/usr/local/lib/python2.7/dist-packages/optoy/dynamic.pyc in ocp(f, gl, regularize, verbose, N, T, periodic, integration_intervals, exact_hessian)
303
304 # Create the integrator
--> 305 intg = explicitRK(ode, 1, 4, integration_intervals)
306 intg = try_expand(intg)
307

NameError: global name 'explicitRK' is not defined

I am using the Linux binary of Casadi (python27-numpy1.9.1-v2.3.0) and I installed optoy with the pip command recommended in the documentation. Before calling "from optoy import *", I add the Casadi directory using sys.path.append("casadi_install_directory").

@adowling2
Copy link
Author

I should add when I quit Ipython, I also get the following message:
CasADi warning: "Reference counting failure. Possible cause: Circular dependency in user code." (assertion "count==0" on line 125 of file "/home/travis/build/casadi/binaries/casadi/casadi/core/shared_object.cpp" failed.)

@jgillis
Copy link
Member

jgillis commented Aug 24, 2015

Hi there,

I've had a long code sprint with casadi over the summer, and was not updating optoy.
I guess it makes sense to revive it for our upcoming 2.4.0 release.

Out of curiosity, what are you planning to do with optoy?

@adowling2
Copy link
Author

I’m evaluating a few options for an upcoming dynamic optimization project involving energy systems and heat exchanger networks. I don’t know if I’ll using “vanilla” CasADi, optoy, JModelicahttp://JModelica.org or something else.

Nevertheless, optoy looks like a very nice package, even if it is restricted to small systems/applications. I figured I’d report the bug, even if I don’t using optoy in the long run.

Alex

On Aug 24, 2015, at 2:37 PM, jgillis <[email protected]mailto:[email protected]> wrote:

Hi there,

I've had a long code sprint with casadi over the summer, and was not updating optoy.
I guess it makes sense to revive it for our upcoming 2.4.0 release.

Out of curiosity, what are you planning to do with optoy?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-134350615.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants