Coder Social home page Coder Social logo

Comments (7)

huckl3b3rry87 avatar huckl3b3rry87 commented on June 1, 2024

from nloptcontrol.jl.

roiholtzman avatar roiholtzman commented on June 1, 2024

Thanks. I tried, but the checkout does not work. (I am not an expert in Julia - so please forgive me if I am asking stupid questions).

julia> Pkg.checkout("ReverseDiffSparse")
ERROR: ReverseDiffSparse is not a git repo
Stacktrace:
 [1] checkout(::String, ::String, ::Bool, ::Bool) at ./pkg/entry.jl:224
 [2] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#checkout,Tuple{String,String,Bool,Bool}})() at ./pkg/dir.jl:36
 [3] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#checkout,Tuple{String,String,Bool,Bool}}, ::String) at ./file.jl:70
 [4] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} where N) at ./pkg/dir.jl:36
 [5] #checkout#1(::Bool, ::Bool, ::Function, ::String, ::String) at ./pkg/pkg.jl:188
 [6] checkout(::String) at ./pkg/pkg.jl:188

from nloptcontrol.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on June 1, 2024

from nloptcontrol.jl.

roiholtzman avatar roiholtzman commented on June 1, 2024

It seems to work now, thanks!

But I have another issue, which might be related. I tried to follow the tutorial https://github.com/JuliaMPC/NLOptControl.jl/blob/master/examples/tutorial.ipynb, but I get the following error:

n=define(de;numStates=3,numControls=1,X0=X0,XF=XF);

MethodError: no method matching define(::Array{Expr,1}; numStates=3, numControls=1, X0=[0.0, 0.0, 0.0], XF=[2.0, -2.0, NaN])
Closest candidates are:
  define(; numStates, numControls, X0, XF, XL, XU, CL, CU, XS, CS) at /Users/roi/.julia/v0.6/NLOptControl/src/setup.jl:25

Stacktrace:
 [1] include_string(::String, ::String) at ./loading.jl:522

Do you know if there is a problem in the installation, or is it something else?

from nloptcontrol.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on June 1, 2024

from nloptcontrol.jl.

roiholtzman avatar roiholtzman commented on June 1, 2024

Thanks. I was able to run the examples.

I have another question: my differential equations have also explicit time dependence. E.g. x2[j] * sin(t). Is there a way to use the actual time value?

from nloptcontrol.jl.

huckl3b3rry87 avatar huckl3b3rry87 commented on June 1, 2024

from nloptcontrol.jl.

Related Issues (20)

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.