Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trigger SCIPsolveConcurrent? #238

Closed
freemin7 opened this issue Aug 1, 2022 · 3 comments
Closed

How to trigger SCIPsolveConcurrent? #238

freemin7 opened this issue Aug 1, 2022 · 3 comments

Comments

@freemin7
Copy link

freemin7 commented Aug 1, 2022

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

@matbesancon
Copy link
Member

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
Copy link
Member

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

@matbesancon
Copy link
Member

I'll close this one for #242 which is similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants