Coder Social home page Coder Social logo

bharath2 / ilqr Goto Github PK

View Code? Open in Web Editor NEW
120.0 3.0 34.0 1.38 MB

iterative Linear Quadratic Regulator with constraints.

License: BSD 2-Clause "Simplified" License

Python 99.55% HTML 0.45%
mpc ilqr ilqg nonlinear-optimization trajectory-optimization ddp model-predictive-controller numba optimal-control mpc-control

ilqr's Introduction

๐Ÿ˜„ I'm Bharath Chandra

My GitHub Stats

ilqr's People

Contributors

bharath2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ilqr's Issues

Cannot determine Numba type of <class 'function'>

Hi,
I am using a python environment named Firedrake (PDE solver) together with another libraries called pygmsh to implement a dynamical system inside the function f(x,u). When I try to run the code, it appears that one of my utility functions has an incompatibility with Numba, even though it doesn't use Numba at all.

Is there any way to make Numba invoked by ilqr ignore my functions?

errors in numba version

Hi,
when i try to run the code, it comes out some errors as follows:
`Traceback (most recent call last):
File "/home/ykezvd/workspace/iLQR/original/iLQR/examples/vehicle_control.py", line 70, in
xs, us, cost_trace = controller.fit(x0, us_init, 100)
File "/home/ykezvd/workspace/iLQR/original/iLQR/examples/../ilqr/controller.py", line 34, in fit
return run_ilqr(self.dynamics.f, self.dynamics.f_prime, self.cost.L,
File "/home/ykezvd/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 482, in _compile_for_args
error_rewrite(e, 'typing')
File "/home/ykezvd/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 423, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function() found for signature:

array(array(float64, 1d, C))

There are 4 candidate implementations:

  • Of which 4 did not match due to:
    Overload in function '_OverloadWrapper._build..ol_generated': File: numba/core/overload_glue.py: Line 131.
    With argument(s): '(array(float64, 1d, C))':
    Rejected as the implementation raised a specific error:
    TypingError: Failed in nopython mode pipeline (step: nopython frontend)
    No implementation of function Function() found for signature:

    stub(array(float64, 1d, C))

There are 2 candidate implementations:
- Of which 2 did not match due to:
Intrinsic in function 'stub': File: numba/core/overload_glue.py: Line 35.
With argument(s): '(array(float64, 1d, C))':
Rejected as the implementation raised a specific error:
TypingError: array(float64, 1d, C) not allowed in a homogeneous sequence
raised from /home/ykezvd/anaconda3/lib/python3.9/site-packages/numba/core/typing/npydecl.py:487

`
It seems that there are some conflicts in numba version, and my version only support a homogeneous sequence, can you give a list of your python and numba version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.