chenming86 请教大家 我在调用optim函数进行模型优化时,出现这个错误: cannot coerce type 'closure' to vector of type 'double'。 这个是什么意思啊?google 了下还是不知道怎么解决,谢谢大家了!