-
I'm getting an error while using ipopt to solve a model that contains constraints on the tanh function. The error log is as follows:
I don't know what the problem is that's causing this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The "Error evaluating ..." line seems to come from the AMPL solver library (ASL) code when handling a defined variable. The derivative of tanh is essentially 0 at this point, but I guess while computing it, it tries to evaluate exp(1152), which runs into a floating-point overflow. The AMPL developers should know better what is happening there. You may want to revise your starting point or model to avoid that tanh' needs to be evaluated at such a large value. |
Beta Was this translation helpful? Give feedback.
The "Error evaluating ..." line seems to come from the AMPL solver library (ASL) code when handling a defined variable. The derivative of tanh is essentially 0 at this point, but I guess while computing it, it tries to evaluate exp(1152), which runs into a floating-point overflow. The AMPL developers should know better what is happening there.
You may want to revise your starting point or model to avoid that tanh' needs to be evaluated at such a large value.