At one point, the input syntax for linprog was
x=linprog(f,A,b,Aeq,beq,lb,ub,x0,options)
but now (R2023b) I see that it has changed to,
In what release was the support for the first syntax discontinued?

댓글 수: 1

Walter Roberson
Walter Roberson 2024년 8월 22일
Before R2019a -- at least the x0 is not documented in R2019a.

댓글을 달려면 로그인하십시오.

 채택된 답변

Naga
Naga 2024년 8월 22일

1 개 추천

Hello Matt,
I had the same question and was trying to achieve the same functionality. After some investigation, I discovered that the support for the initial point x0 in the linprog function was removed starting with MATLAB R2023a.

댓글 수: 4

Matt J
Matt J 2024년 8월 22일
Can you say how you discovered this? As @Walter Roberson says, the online documentation says it has been gone since R2019.
Naga
Naga 2024년 8월 22일
I tried to use the command in MATLAB R2022b and it was working fine and when I used the same command in MATLAB R2023a it was throwing an error.
Matt J
Matt J 2024년 8월 23일
편집: Matt J 2024년 8월 23일
Were you actually using the intial point x0? By 2022b, the only linear programming algorithms available were interior-point, interior-point-legacy, and dual-simplex, neither of which make use of an initial point.
Matt J
Matt J 2024년 9월 3일
I just got confirmation from Tech Support that " the "x0" input to "linprog" was removed in R2023a."
Thanks a lot.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2024년 8월 23일

0 개 추천

R2018b documents
X = linprog(f,A,b,Aeq,beq,LB,UB,X0) sets the starting point to X0. This
option is only available with the active-set algorithm. The default
interior point algorithm will ignore any non-empty starting point.
As of R2019a, active-set is not a recognized algorithm

카테고리

도움말 센터File Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2024년 8월 22일

댓글:

2024년 9월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by