Specify initial condition for linprog?
显示 更早的评论
Hello there,
I am using `linprog` to solve a linear program. The solution to the program are mostly zeros. Also, I have a version of the problem with zero cost, i.e., constraint satisfaction problem, again, with mostly zeros solution. It takes 7 and 16 seconds, respectively, to solve those two problems. I figured I would set the initial condition for `linprog` to zeros as it may speed up convergence. However, it appears that for new versions of MATLAB, `linprog` stopped supporting the initial condition argument. When I pass an initial condition argument following this old api, I get the following warning:
The dual-simplex algorithm uses a built-in starting point; ignoring supplied X0.
Is there a way to set the initial condition for the `linprog` solver in another way?
Kind regards, and I look forward to hearing from you soon.
回答(2 个)
Walter Roberson
2022-8-10
编辑:Walter Roberson
2022-8-11
1 个投票
Use the options to set the Algorithm to interior-point
3 个评论
Ahmad Abuaish
2022-8-11
Walter Roberson
2022-8-11
I just checked the code, and there is no work-around (sort of editing the code.)
Ahmad Abuaish
2022-8-11
You can try adding the inequality constraint f.'*x<=f.'*x0.
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!