用拉格朗日乘数法做http://baike.baidu.com/link?url=XCElWvXXDD4yuY974NtBAQK_3iQUzoBMv6JwpILUUqnHCxes0kvXdVoy1bljIrfiDnYyB9Ny1nozFF_vF-G1k_