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

[Bridges] add ExponentialConeToScalarNonlinearFunctionBridge #2587

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

odow
Copy link
Member

@odow odow commented Dec 4, 2024

This would enable:

julia> using JuMP, Ipopt

julia> begin
           model = Model(Ipopt.Optimizer)
           set_silent(model)
           @variable(model, x == 1.5)
           @variable(model, z)
           @objective(model, Min, z)
           @constraint(model, [x, 1, z] in MOI.ExponentialCone())
           optimize!(model)
           @assert is_solved_and_feasible(model)
           value(z), exp(1.5)
       end
(4.4816890628439685, 4.4816890703380645)

Now, it's an open question whether we should do this, but it comes up from time to time.

Latest is https://discourse.julialang.org/t/lazybridgeoptimizer-not-working-with-copy-to/123366

cc @thibault-vignon

@odow odow force-pushed the od/ExponentialConeToScalarNonlinearFunction branch from 5fc3076 to ac93de6 Compare December 4, 2024 00:35
@blegat
Copy link
Member

blegat commented Dec 5, 2024

I think it's fine to do by default

@odow odow merged commit 86d17e3 into master Dec 10, 2024
16 checks passed
@odow odow deleted the od/ExponentialConeToScalarNonlinearFunction branch December 10, 2024 03:58
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.

2 participants