Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Aug 12, 2025

Blocked by

Basic

  • version field of Project.toml has been updated
    - If a breaking change, increment the MAJOR field and reset others to 0
    - If adding new features, increment the MINOR field and reset PATCH to 0
    - If adding bug fixes or documentation changes, increment the PATCH field

Documentation

  • Add a new entry to docs/src/changelog.md, following existing style

Tests

@odow
Copy link
Member Author

odow commented Aug 13, 2025

So Pajarito is still failing. It looks related. I need to take a closer look

@odow
Copy link
Member Author

odow commented Aug 17, 2025

julia> import MathOptInterface as MOI

julia> import Pajarito, SCS, HiGHS

julia> solver = MOI.OptimizerWithAttributes(
           Pajarito.Optimizer,
           "oa_solver" => MOI.OptimizerWithAttributes(HiGHS.Optimizer),
           "conic_solver" => MOI.OptimizerWithAttributes(SCS.Optimizer),
       );

julia> model = MOI.instantiate(solver; with_bridge_type = Float64);

julia> x, _ = MOI.add_constrained_variable(model, MOI.Interval(0.0, 1.0));

julia> MOI.delete(model, x)
ERROR: The index MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables, MathOptInterface.HyperRectangle{Float64}}(-1) is invalid. Note that an index becomes invalid after it has been deleted.
Stacktrace:
  [1] throw_if_not_valid
    @ ~/.julia/dev/MathOptInterface/src/indextypes.jl:116 [inlined]
  [2] delete(b::MathOptInterface.Bridges.LazyBridgeOptimizer{…}, ci::MathOptInterface.ConstraintIndex{…})
    @ MathOptInterface.Bridges ~/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:668
  [3] delete
    @ ~/.julia/dev/MathOptInterface/src/Bridges/Constraint/bridges/IntervalToHyperRectangleBridge.jl:98 [inlined]
  [4] #11
    @ ~/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:690 [inlined]
  [5] call_in_context(map::MathOptInterface.Bridges.Variable.Map, bridge_index::Int64, f::MathOptInterface.Bridges.var"#11#12"{})
    @ MathOptInterface.Bridges.Variable ~/.julia/dev/MathOptInterface/src/Bridges/Variable/map.jl:621
  [6] call_in_context(map::MathOptInterface.Bridges.Variable.Map, ci::MathOptInterface.ConstraintIndex{…}, f::Function)
    @ MathOptInterface.Bridges.Variable ~/.julia/dev/MathOptInterface/src/Bridges/Variable/map.jl:652
  [7] delete(b::MathOptInterface.Bridges.LazyBridgeOptimizer{…}, ci::MathOptInterface.ConstraintIndex{…})
    @ MathOptInterface.Bridges ~/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:687
  [8] _delete_variables_in_variables_constraints(b::MathOptInterface.Bridges.LazyBridgeOptimizer{…}, vis::Vector{…})
    @ MathOptInterface.Bridges ~/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:531
  [9] delete(b::MathOptInterface.Bridges.LazyBridgeOptimizer{…}, vi::MathOptInterface.VariableIndex)
    @ MathOptInterface.Bridges ~/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:636
 [10] top-level scope
    @ REPL[240]:1
Some type information was truncated. Use `show(err)` to see complete types.

@odow
Copy link
Member Author

odow commented Aug 17, 2025

Blocked by #2817

@odow
Copy link
Member Author

odow commented Aug 19, 2025

Should be good to merge and tag once https://github.com/jump-dev/MathOptInterface.jl/actions/runs/17079072856 finishes

@odow odow merged commit 6479b1f into master Aug 21, 2025
31 checks passed
@odow odow deleted the od/v1.43.0 branch August 21, 2025 03:34
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.

Legacy and standard constraint/objective macros represent ^2 differently in nonlinear expressions
1 participant