Saving Data from intlinprog Custom Output/Plot Functions
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
James Usevitch
am 10 Okt. 2018
Bearbeitet: Matt J
am 10 Okt. 2018
I'd like to create a custom output/plot function for an optimization problem solved using intlinprog. Specifically, I'd like to save data on particular events in the optimization routine in the base workspace. However, the custom function syntax specifies that my custom function can only have a boolean output which is accessible only to the solver.
The built-in output function savemilpsolutions uses both evalin and assignin. I'm aware though that using global variables, evalin, and assignin are usually a bad idea. Are there any "safe" options that I can use to keep my custom function's data after the optimization routine is complete?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!