打开solver中的options选项 找到options中的General Solver 3.找到Dual Computations一栏,将状态调整为Prices&Ranges点击OK。 4.写好代码以后,按Ctrl+r即可