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

Refactor the SnoopPrecompile block and add nonlinear statements #3196

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

odow
Copy link
Member

@odow odow commented Jan 23, 2023

This takes the TTFX of Ipopt from 13 seconds to 4. We can attack the rest by adding a block to Ipopt.

@time using JuMP, Ipopt
@time @eval begin
  let
    model = Model(Ipopt.Optimizer)
    @variable(model, x >= 0)
    @variable(model, 0 <= y <= 3)
    @NLobjective(model, Min, (12x + 20y)^2)
    @constraint(model, c1, 6x + 8y >= 100)
    @constraint(model, c2, (7x + 12y)^2 <= 120)
    optimize!(model)
  end
end;

x-ref jump-dev/MathOptInterface.jl#2226

@odow odow added the Category: Nonlinear Related to nonlinear programming label Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Base: 98.06% // Head: 98.06% // No change to project coverage 👍

Coverage data is based on head (bb4c934) compared to base (ced2ccc).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    jump-dev/JuMP.jl#3196   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files          33       33           
  Lines        4600     4600           
=======================================
  Hits         4511     4511           
  Misses         89       89           
Impacted Files Coverage Δ
src/JuMP.jl 96.82% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@odow odow merged commit ac5c145 into master Jan 23, 2023
@odow odow deleted the od/more-precompile branch January 23, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Nonlinear Related to nonlinear programming
Development

Successfully merging this pull request may close these issues.

1 participant