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

Use Bridges.runtests in bridges tests #820

Closed
33 tasks done
blegat opened this issue Aug 7, 2019 · 2 comments
Closed
33 tasks done

Use Bridges.runtests in bridges tests #820

blegat opened this issue Aug 7, 2019 · 2 comments
Labels
Submodule: Bridges About the Bridges submodule
Milestone

Comments

@blegat
Copy link
Member

blegat commented Aug 7, 2019

See #819 (comment)

Variables:

Constraint

Objective

  • functionize.jl
  • slack.jl
@chriscoey chriscoey added the Submodule: Bridges About the Bridges submodule label Aug 14, 2019
@odow odow mentioned this issue Jul 14, 2021
22 tasks
@odow odow added this to the v1.x milestone Nov 11, 2021
@odow
Copy link
Member

odow commented Jun 8, 2022

This is greatly improved by

function test_runtests()
MOI.Bridges.runtests(
MOI.Bridges.Constraint.SOCtoNonConvexQuadBridge,
"""
variables: t, x, y
[t, x, y] in SecondOrderCone(3)
""",
"""
variables: t, x, y
1.0 * x * x + 1.0 * y * y + -1.0 * t * t <= 0.0
1.0 * t >= 0.0
""",
)
MOI.Bridges.runtests(
MOI.Bridges.Constraint.RSOCtoNonConvexQuadBridge,
"""
variables: t, u, x
[t, u, x] in RotatedSecondOrderCone(3)
""",
"""
variables: t, u, x
1.0 * x * x + -2.0 * t * u <= 0.0
1.0 * t >= 0.0
1.0 * u >= 0.0
""",
)
return
.

But we still need a solution for variable bridges.

@odow odow changed the title Use test_models_equal in bridges tests Use Bridges.runtests in bridges tests Jun 8, 2022
@odow
Copy link
Member

odow commented Jun 10, 2022

Closing this as done. I've gone through every bridge, tidied them up, added docstrings, and added more tests. They're in a much better state now!

@odow odow closed this as completed Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: Bridges About the Bridges submodule
Development

No branches or pull requests

3 participants