Julia 0.7 and JuMP: ERROR: cosd is not defined for type Variable

For JuMP, you probably want

pkg> add JuMP#release-0.18
pkg> add ReverseDiffSparse#master

unless you also want the backend changes and API changes (e.g., solver kwarg will become optimizer) that will be present in JuMP 0.19.

That said, I still get the same error minus the depwarns.