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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摑 Improve doc of optimize! #1560

Merged
merged 3 commits into from Oct 26, 2018
Merged

馃摑 Improve doc of optimize! #1560

merged 3 commits into from Oct 26, 2018

Conversation

blegat
Copy link
Member

@blegat blegat commented Oct 25, 2018

Closes #1559

@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

Merging #1560 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1560   +/-   ##
=======================================
  Coverage   89.49%   89.49%           
=======================================
  Files          27       27           
  Lines        3626     3626           
=======================================
  Hits         3245     3245           
  Misses        381      381
Impacted Files Coverage 螖
src/optimizer_interface.jl 73.91% <酶> (酶) 猬嗭笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update d2ff318...bc0d657. Read the comment docs.

# ...fill model with variables, constraints and objectives...
# Solve the model with GLPK
JuMP.optimize!(model, with_optimizer(GLPK.Optimizer))
# Solve the model with Clp
Copy link
Member

Choose a reason for hiding this comment

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

Why is the same model solved twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it won't work, it will throw "An optimizer factory cannot both be provided in the Modelconstructor and at theoptimize call." at the second call

@blegat blegat merged commit 8c36bf2 into master Oct 26, 2018
@blegat blegat deleted the bl/optimizedoc branch December 12, 2018 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants