pyomo icon indicating copy to clipboard operation
pyomo copied to clipboard

Incorrect behavior with the relax_integrality solver option

Open ghackebeil opened this issue 8 years ago • 2 comments

The way this option is handled in the CPLEX solver plugin is to simply change the problem type to an LP. However, this produces incorrect behavior when the problem has any quadratic constraints or objective terms (they get ignored).

Also, this is technically not a solver option. It should probably be managed using a keyword to the solve command.

ghackebeil avatar Aug 20 '16 16:08 ghackebeil

@ghackebeil - I'm going through old bug reports. Do you know if this bug still exists in the current version of Pyomo?

mrmundt avatar Feb 22 '22 21:02 mrmundt

Yes. From CPLEX.py:

        if 'relax_integrality' in self.options:
            script += 'change problem lp\n'

ghackebeil avatar Mar 01 '22 19:03 ghackebeil