Skip to content

Commit

Permalink
to get to array
Browse files Browse the repository at this point in the history
  • Loading branch information
jrising committed Sep 3, 2019
1 parent de14052 commit 6b06c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makeroom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end

function grad_component(m::Model, component::Symbol, variable::Symbol, parameter::Symbol)
fdf = unaryobjective(m, [component], [parameter], m -> vec(m[component, variable]))
A = ForwardDiff.jacobian(fdf, convert(Vector{Float64}, vec(m.md.external_params[parameter].values)))
A = ForwardDiff.jacobian(fdf, convert(Vector{Float64}, vec(m.md.external_params[parameter].values.data)))
LinearProgrammingRoom(component, variable, component, parameter, sparse(A))
end

Expand Down

0 comments on commit 6b06c06

Please sign in to comment.