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

Edits related to the reoptimization feature #258

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbolusani
Copy link
Member

Work-in-progress! I will update here when it is ready for review.

for v in values(o.inner.vars)
@SCIP_CALL SCIPchgVarObj(o, v[], 0.0)
end
if haskey(o.params, "reoptimization/enable") && o.params["reoptimization/enable"] == 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in Julia you can also do

    if get(o.params, "reoptimization/enable", 0) == 1

to get an element with a default value (here 0)

Comment on lines +18 to +19
@SCIP_CALL SCIPchgReoptObjective(o, scip_obj_sense, vars,
obj_coefs, length(vars))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@SCIP_CALL SCIPchgReoptObjective(o, scip_obj_sense, vars,
obj_coefs, length(vars))
@SCIP_CALL SCIPchgReoptObjective(
o, scip_obj_sense, vars,
obj_coefs, length(vars),
)

clearer indentation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @sbolusani

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

Successfully merging this pull request may close these issues.

None yet

2 participants