-
Notifications
You must be signed in to change notification settings - Fork 3
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
Print ocp #84
Comments
This part must be udpated: Line 18 in 8f661a2
Can you give the |
julia> t0 = 0
0
julia> @def o t ∈ [ t0, t0 + 4 ], time
Error showing value of type OptimalControlModel{Autonomous, Fixed}:
ERROR: AssertionError: ocp.model_expression.head == :block
Stacktrace:
[1] show(io::IOContext{Base.TTY}, #unused#::MIME{Symbol("text/plain")}, ocp::OptimalControlModel{Autonomous, Fixed})
@ CTBase ~/CTBase.jl/src/print.jl:23
[2] (::REPL.var"#43#44"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol("text/plain")}, Base.RefValue{Any}})(io::Any)
@ REPL ~/julia-1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:267
[3] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL ~/julia-1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:521
[4] display(d::REPL.REPLDisplay, mime::MIME{Symbol("text/plain")}, x::Any)
@ REPL ~/julia-1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:260
[5] display(d::REPL.REPLDisplay, x::Any)
@ REPL ~/julia-1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:272
[6] display(x::Any)
[...]
julia> o.model_expression
:((t ∈ [t0, t0 + 4], time))
julia> @dump :((t ∈ [t0, t0 + 4], time))
Expr
head: Symbol quote
args: Array{Any}((1,))
1: Expr
head: Symbol tuple
args: Array{Any}((2,))
1: Expr
head: Symbol call
args: Array{Any}((3,))
1: Symbol ∈
2: Symbol t
3: Expr
head: Symbol vect
args: Array{Any}((2,))
1: Symbol t0
2: Expr
2: Symbol time |
Fixed. |
Merged
@ocots thanks. I see that it has been merged in |
Yes and then develop into main. I have removed develop since it is not useful anymore. We can add it if we have a big update to make. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ocots for the record (there might no be a block)
The text was updated successfully, but these errors were encountered: