SCIP.jl icon indicating copy to clipboard operation
SCIP.jl copied to clipboard

How to get ConstraintDual?

Open Klaixiya opened this issue 2 years ago • 2 comments

The column generation algorithm performs well in the HiGHS Optimizer, but when I switched to the SCIP Optimizer, it returns the following error:

MathOptInterface.GetAttributeNotAllowed{MathOptInterface.ConstraintDual}: Getting attribute MathOptInterface.ConstraintDual(1) cannot be performed: SCIP.Optimizer does not support getting the attribute MathOptInterface.ConstraintDual(1). You may want to use a `CachingOptimizer` in `AUTOMATIC` mode or you may need to call `reset_optimizer` before doing this operation if the `CachingOptimizer` is in `MANUAL` mode.

How can I solve this?

Klaixiya avatar Feb 04 '24 13:02 Klaixiya

Hi,

Yes indeed, SCIP is not an LP solver and as such, cannot easily return the duals to users even when the problem is linear. To stay in a Julia-based CG algorithm indeed an LP solver like HiGHs will be more suited.

If you want to do column generation within SCIP, there is a part of the documentation on implementing pricers.

On Sun, Feb 4, 2024, 14:26 Klaixiya @.***> wrote:

The column generation algorithm performs well in the HiGHS Optimizer, but when I switched to the SCIP Optimizer, it returns the following error:

MathOptInterface.GetAttributeNotAllowed{MathOptInterface.ConstraintDual}: Getting attribute MathOptInterface.ConstraintDual(1) cannot be performed: SCIP.Optimizer does not support getting the attribute MathOptInterface.ConstraintDual(1). You may want to use a CachingOptimizer in AUTOMATIC mode or you may need to call reset_optimizer before doing this operation if the CachingOptimizer is in MANUAL mode.

How can I solve this?

— Reply to this email directly, view it on GitHub https://github.com/scipopt/SCIP.jl/issues/284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2FDMRL625B4FBQI22YNVLYR6D7FAVCNFSM6AAAAABCY3YEZCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTOMBZGY2TONY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

matbesancon avatar Feb 04 '24 13:02 matbesancon

OK, thanks for your enthusiastic reply!

Klaixiya avatar Feb 04 '24 14:02 Klaixiya