status = 5?

1 view
Skip to first unread message

victor.chubukov

unread,
May 21, 2007, 9:46:44 PM5/21/07
to KNITRO Nonlinear Optimization Solver
Hi,

I'm using knitro in a C program using reverse communication mode. It
seems to finish with the problem, but then returns a status code of 5,
which is not listed as a possible return value in the documentation.
Can someone suggest what's going on?

Thanks.

Todd Plantenga

unread,
May 21, 2007, 10:13:08 PM5/21/07
to KNITRO Nonlinear Optimization Solver
Hi Victor,

Return code 5 is "FINISHED". I guess it's not in the User Manual,
but it is in the knitro.h header file. Not sure why you are getting
it. One possibility is that KNITRO completed, giving you a normal
status, and then you called KTR_solve() again (unnecessarily); in this
case KNITRO returns "FINISHED" because there is nothing for it to do.

-- Todd


On May 21, 8:46 pm, "victor.chubukov" <victor.chubu...@gmail.com>
wrote:

victor.chubukov

unread,
May 21, 2007, 10:28:28 PM5/21/07
to KNITRO Nonlinear Optimization Solver
Thanks, that's exactly what I realized also. I was migrating from
version 4.x and using KTR_solve to solve the same problem repeatedly
(with different objective functions). I didn't notice that I had to
call KTR_restart (obviously makes sense that I would have to reset
internal state).

V.

Reply all
Reply to author
Forward
0 new messages