Please read the first post of Please read: make it easier to help you - #11 to learn how to format your code.
In addition, please update to Julia 1.X and the latest version of JuMP. Then you can use value(cosT)
. Here is the relevant documentation: Query Solutions · JuMP.