Skip to content

Commit

Permalink
[README] update annotations with correct types (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 31, 2022
1 parent 6e7be8e commit 0ac4ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ function add_annotation(
if all_variables
@assert num_variables == JuMP.num_variables(model)
end
indices, annotations = Cint[], Clong[]
indices, annotations = CPXINT[], CPXLONG[]
for (key, value) in variable_classification
for variable_ref in value
push!(indices, variable_ref.index.value - 1)
push!(annotations, CPX_BENDERS_MASTERVALUE + key)
end
end
cplex = backend(model)
index_p = Ref{Cint}()
index_p = Ref{CPXINT}()
CPXnewlongannotation(
cplex.env,
cplex.lp,
Expand Down

0 comments on commit 0ac4ef4

Please sign in to comment.