Why does linprog generate a 7D optimal solution for 6D simplex problem
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
When running linprog with 6x18 constraint matrix (m=6,n=18) and 6x1 b vector, the "optimal" solution generated has 7 nonzero elements when it should only be 6. Why is this the case? I have my own implementation of simplex which comes up with a different solution (6 as apposed to 7 nonzero entries) but both have the same objective function value when evaluated at the solution point.
10 comentarios
Thomas Kirven
el 18 de Mzo. de 2019
Thomas Kirven
el 18 de Mzo. de 2019
Editada: Thomas Kirven
el 18 de Mzo. de 2019
Strange. The solution I get when I run your code is as below. What Matlab version are you running?
xlp =
0
0.1867
0.0367
0.1967
0.1014
0
0
0.1958
0
0
0
0
0
0
0.4833
0
0
0
Walter Roberson
el 18 de Mzo. de 2019
I get the same as Matt J
Thomas Kirven
el 19 de Mzo. de 2019
Actually upon second look the solutions have the same objective function value, but different soution values
Your solution with 7 non-zeros doesn't really even seem to be a solution. It doesn't satisfy the equlaity constraints very well. Are you sure it comes from the exact code that you have posted?
Mary Fenelon
el 20 de Mzo. de 2019
The default algorithm in R2016b is the interior-point-legacy solver; it was changed to dual-simplex in 17a. Simplex algorithms move from vertex to vertex of the feasible region but interior point algorithms move through the middle. When there are multiple optimal x vectors, the interior point algorithm may return a point in the middle. It will be a linear combination of some of the optimal vertex points.
Thomas Kirven
el 20 de Mzo. de 2019
Thomas Kirven
el 20 de Mzo. de 2019
Editada: Thomas Kirven
el 20 de Mzo. de 2019
Respuestas (1)
Thomas Kirven
el 20 de Mzo. de 2019
0 votos
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!