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

How to trigger SCIPsolveConcurrent?

Open freemin7 opened this issue 3 years ago • 2 comments

SCIP provides concurrent solving https://www.scipopt.org/doc-5.0.1/html/CONCSCIP.php. How would i go about triggering it?

freemin7 avatar Aug 01 '22 19:08 freemin7

First thing would be to compile SCIP with the suitable options.

Second would be to modify slightly the optimize! function to call SCIPsolveConcurrent instead of SCIPsolve here:

function MOI.optimize!(o::Optimizer)
    set_start_values(o)
    if o.objective_sense == MOI.FEASIBILITY_SENSE
        MOI.set(o, MOI.ObjectiveFunction{SAF}(), SAF([], 0.0))
    end
    @SCIP_CALL SCIPsolve(o)
    return nothing
end

matbesancon avatar Aug 01 '22 20:08 matbesancon

PS: up to date documentation page is here: https://www.scipopt.org/doc-8.0.1/html/CONCSCIP.php

matbesancon avatar Aug 01 '22 20:08 matbesancon

I'll close this one for https://github.com/scipopt/SCIP.jl/issues/242 which is similar.

matbesancon avatar Sep 29 '22 11:09 matbesancon