-
Notifications
You must be signed in to change notification settings - Fork 6
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
byproduct not returned #70
Comments
EDIT: Disregard, this is all wrong
Out of curiosity, do you see yourself using the byproduct functionality or are you just trying to get it out of the way? |
I plan on using it because within the forward he checks if he found a solution. passing it on as a byproduct saves time and space. right now I recheck if the solution is correct after having it calculated... as to your second comment: my reading is that what you wrote and this is equivalent: block_solver_AD(parameters_and_solved_vars::Vector{<: Real},
n_block::Int,
ss_solve_blocks::Function,
guess::Vector{Float64},
lbs::Vector{Float64},
ubs::Vector{Float64};
tol::AbstractFloat = eps(Float64),
verbose::Bool = false) = ImplicitFunction(x -> block_solver(x,
n_block,
ss_solve_blocks,
guess,
lbs,
ubs;
tol = tol,
verbose = verbose),
(x,y,z) -> ss_solve_blocks(x,y), Val(true))
block_solver_RD = block_solver_AD([alp, bet, psi, del, m, ➕₂, ➕₃, ➕₄, ➕₅], 1, 𝓂.ss_solve_blocks[1], inits, lbs, ubs, verbose = true)
solution = block_solver_RD([alp, bet, psi, del, m, ➕₂, ➕₃, ➕₄, ➕₅], Val(true)) but I get an error that he doesn't know what to do with the ERROR: LoadError: MethodError: no method matching (::ImplicitDifferentiation.ImplicitFunction{MacroModelling.var"#332#334"{Float64, Vector{Float64}, Bool, Int64, RuntimeGeneratedFunctions.RuntimeGeneratedFunction{(:parameters_and_solved_vars, :guess), MacroModelling.var"#_RGF_ModTag", MacroModelling.var"#_RGF_ModTag", (0x800d89dd, 0x66b27669, 0x8bd26506, 0xa251d768, 0x8bb2d3a2), Expr}, Vector{Float64}, Vector{Float64}, Vector{Float64}}, MacroModelling.var"#333#335"{RuntimeGeneratedFunctions.RuntimeGeneratedFunction{(:parameters_and_solved_vars, :guess), MacroModelling.var"#_RGF_ModTag", MacroModelling.var"#_RGF_ModTag", (0x800d89dd, 0x66b27669, 0x8bd26506, 0xa251d768, 0x8bb2d3a2), Expr}}, Val{true}})(::Vector{Float64}, ::Val{true}) |
My bad, I was confusing v0.4.4 with what we are working on right now, cause it's been a while! |
So I don't understand the behavior of your code, maybe we can have a quick call to debug |
Hi
here is some code which works with v0.3.0 but is missing the byproducts and below is another implementation using v0.4.4 (same on master branch) trying and failing to get the byproducts. Any help to get them is much appreciated.
when I try to get the byproduct using the below formulation and v0.4.4 it does not return the byproduct:
sry for not providing a mwe. the whole code is a bit involved in parts unrelated to implicitDifferentiation. I hope the point comes across nonetheless.
The text was updated successfully, but these errors were encountered: