Closed mayork closed 7 years ago
I will take a look at it now. Sorry, been AWOL for the last few days; they have been crazy since I just got back in town.
Btw, for some reason it says that there are ReqRng is a vector of length 4. Investigating...
Btw, for the multimission, the only thing you change is the range, right? Or are you modulating the number of passengers as well? And also, why can't we pass vector substitutions instead of doing the equality constraints?
So I got it to solve, by literally doing one modification:
ReqRng[0] == 3000 * units('nmi'),
#to
ReqRng[:Nmission] == 3000 * units('nmi'),
I don't see why this makes a difference, but when I do the following, I get some weeeeeiiird shit.
sol('ReqRng')
Out[10]: <Quantity([ 3000. 3000. 3000. 3000.], 'nautical_mile')>
sol('ReqRng')[:Nmission]
Out[12]: <Quantity([ 3000.], 'nautical_mile')>
Confusion? I think yes. Why are there 4 ReqRng values?
HAHAHA I figured it out... You have this on line 1232:
if multimission:
m = Mission(Nclimb, Ncruise, Nmission = 4)
Lol, you set Nmission in the loop, and don't pull it from outside... Will push fix.
With the latest code, I can't get the non multi-mission 737 to solve. Will push as soon as I get both working. It solves bounded, but not o/w.
Also, have you noticed that there is some weird g variable that pops up somehow from the Atmosphere model, although no such variable actually exists (to my knowledge? ). I'm so confused... I've been trying to track it down and just can't find it.
starting from the top:
let me know when you push that code
Got pushed. ReqRng bug fixed.
now working, resolved
@1ozturkbe i was wondering if you could take a look at https://github.com/hoburg/d8/commit/8383429a61694e043c320ee01d128458be8e506c. It's the mutli-mission formulation with Nmission set to 1 so it should be the same as a normal solve but it isn't working and I have no idea why.