I am trying to adapt the «launch» example to two-stage launch vehicle and have a problem with convergence. I have «maximum number of iteration exceeded» or «Converged to a
point of
local infeasibility». I don't understand what I am doing wrong. Everything seems ok in accordance to example for 4 stage launch vehicle problem. Energy of launch vehicle is enough to take a demanded orbit. I even have reduced event contraint from 5 to 3, and allow some error:
problem.phases(iphase).bounds.lower.events(1) = af-50000;
problem.phases(iphase).bounds.lower.events(2) = ef;
problem.phases(iphase).bounds.lower.events(3) = incf-0.2*pi/180;
problem.phases(iphase).bounds.upper.events(1) = af+500000;
problem.phases(iphase).bounds.upper.events(2) = ef+0.1;
problem.phases(iphase).bounds.upper.events(3) = incf+0.2*pi/180;
But still have no idea how to overcome it. I attached source file.
Could somebody help with it? Thanks.