Exporting "optimresults" after running linprog
Mostrar comentarios más antiguos
Does anyone know the code for exporting optimresults structure after running linprog. I have the rest of the code to work with that structure, just want to automate it a little.
Thank You
Respuestas (1)
Alan Weiss
el 8 de Abr. de 2015
In your output function, check the value of the state of the algorithm. When it is 'done' you can save the optimValues structure to the workspace using the assignin command:
assignin('base','optimValues',optimValues);
I didn't try this, but I believe that it should work.
Alan Weiss
MATLAB mathematical toolbox documentation
2 comentarios
Bob Sieger
el 8 de Abr. de 2015
Alan Weiss
el 9 de Abr. de 2015
Please show us your output function code, and the result (if any) in the workspace.
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Linear Programming and Mixed-Integer Linear Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!