0

In a project, Ipopt is used to solve a problem. I am wondering if I can add a new constraint to the problem, but I am not very deep into the topic. Basically, a variable should be greater than a certain value, or it can be zero. The latter could be a problem since the target range is not contiguous.

I was thinking of using binary variables, but as far as I can see, the Ipopt solver does not support them. Is there any way to implement my condition?

1 Answers1

0

While it would be possible to formulate this condition with a nonconvex nonlinear constraint, I would also suggest that you look for a solver for MINLP and use a binary or semicontinuous variable.

Sometimes you have to change the tool when your problem changes.

stefan
  • 799
  • 4
  • 9