scipopt / SCIP.jl

Julia interface to SCIP solver
MIT License
95 stars 24 forks source link

Get original variables from constraint #257

Closed matbesancon closed 1 year ago

matbesancon commented 1 year ago
⟩ ag "SCIPgetVarsLinear"                                                                                                                                                        (base) 17:57:15
src/MOI_wrapper/linear_constraints.jl
43:    vars = unsafe_wrap(Array{Ptr{SCIP_VAR}}, SCIPgetVarsLinear(o, c), nvars)

src/MOI_wrapper/indicator_constraints.jl
31:    vars = unsafe_wrap(Array{Ptr{SCIP_VAR}}, SCIPgetVarsLinear(o, linear_cons), nvars)

these should use SCIPgetOrigVar(v) for each of them