Warning: If you intend to use initial guesses, you must use a fifth output as [sol,problem,~,~,P] = P(p) #1236
-
Dear Forum and dear Professor Löfberg, Today I want to ask why am I getting the warning: "Warning: If you intend to use initial guesses, you must use a fifth output as [sol,problem, I am optimizing several times a mathematical problem and changing just a few parameters in it at every iteration, so I am using an optimizer to do this. As explained in this thread at Google Groups, I can indeed "turn on warm start but [I] will not be able to pick the initial guess [...]". Given that my problem is so similar, and want to save some time searching through the BnB tree, I added in my optimizer settings the option for warm start (...,'usex0',1,...). However, I am getting the warning mentioned there. My interpretation is that I should write: Thank you in advance for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
With optimizer object, the call will not be warm-started the first time you use it (i.e. any assignment using assign is redundant), but the idea is that when optimizer makes a call to its solver, the solution is saved, and reused. However, for it to be saved, it has to output it self from the call, with the warm-start info appended. |
Beta Was this translation helpful? Give feedback.
With optimizer object, the call will not be warm-started the first time you use it (i.e. any assignment using assign is redundant), but the idea is that when optimizer makes a call to its solver, the solution is saved, and reused. However, for it to be saved, it has to output it self from the call, with the warm-start info appended.