Does fmincon automatically normalis/scale the input vector according to the bounds?
조회 수: 10(최근 30일)
I'm doing a constrained optimisation using fmincon (interior-point solver). My initial vector elements range from 1E-3 to about 40 and I've set flat upper and lower bounds of 0 to 10.
However, I discovered that despite my initial guess being feasible, the first call to my cost function returns INF. I dug down and I saw that on the first run, fmincon was passing in some scaled version of my initial guess. I checked this by changing the bounds, which subsequently changed the initial vector.
I'm guessing there's an option to scale the input vector. How can I turn this option off?
John D'Errico 2016년 12월 21일
편집: John D'Errico 2016년 12월 21일
There appears to be a disconnect here. You have made some completely conflicting statements.
"My initial vector elements range from 1E-3 to about 40 and I've set flat upper and lower bounds of 0 to 10."
So if your upper bound is 10, and the start point has elements as high as 40, then your start point is NOT feasible. It fails to satisfy the constraints, ergo, not feasible.
Then you state: "despite my initial guess being feasible"
WRONG. As I pointed out, it is not feasible if it exceeds the bounds. The interior point algorithm seriously wants to start in the interior.. Otherwise, they might have called it the "We don't really care where you look algorithm". :)
I'd suggest either choosing more consistent bounds or a feasible initial point, or a different algorithm.