-
Notifications
You must be signed in to change notification settings - Fork 24
Write Solution to a .SOL File #302
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
Comments
Not directly, but you can use SCIPprintBestSol on the SCIP.Optimizer
See
https://stackoverflow.com/questions/43399199/how-can-i-store-the-results-into-a-text-file
for the SCIP function API.
As an alternative, you can extract the values from JuMP and produce the SOL
file yourself, for example looping over all variables and adding the name
and value to your file.
…On Tue, Feb 25, 2025, 18:54 stumarcus314 ***@***.***> wrote:
Is it possible to have SCIP.jl write the solution to a .SOL file by
setting an optimizer attribute?
m = JuMP.Model()
[...]
JuMP.set_optimizer(m, SCIP.Optimizer)
JuMP.set_optimizer_attribute(m, "SolutionFile", "result.sol")
JuMP.optimize!(m)
—
Reply to this email directly, view it on GitHub
<#302>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2FDMQ4VZMM6JDTURZNVJT2RSU57AVCNFSM6AAAAABX3IWSBGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA3TSMJWGU2TGMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: stumarcus314]*stumarcus314* created an issue (scipopt/SCIP.jl#302)
<#302>
Is it possible to have SCIP.jl write the solution to a .SOL file by
setting an optimizer attribute?
m = JuMP.Model()
[...]
JuMP.set_optimizer(m, SCIP.Optimizer)
JuMP.set_optimizer_attribute(m, "SolutionFile", "result.sol")
JuMP.optimize!(m)
—
Reply to this email directly, view it on GitHub
<#302>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2FDMQ4VZMM6JDTURZNVJT2RSU57AVCNFSM6AAAAABX3IWSBGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA3TSMJWGU2TGMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Can you provide an example using JuMP how to call SCIPprintBestSol on the SCIP.Optimizer? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to have SCIP.jl write the solution to a .SOL file by setting an optimizer attribute?
The text was updated successfully, but these errors were encountered: