answered 2017-02-13 15:38:28 -0600
Ok, now I figured out
only one adding one line:
cop = OpenStudio::OptionalDouble.new(arr[1].to_f)
to transfer Float to OpenStudio::OptionalDouble
then:
coil.setRatedCOP(cop)