函数改用linprog()试试,按教程来:https://blog.csdn.net/qq_25990967/article/details/121211474https://ww2.mathworks.cn/help/optim/ug/linprog.html