model= Model(solver = CplexSolver())
@variable(model,y[1:m],Bin)
@variable(model, x[1:m,1:n],Bin)
############################
#add a bunch of constraints#
############################
####################################
#specify branching priorities, how?#
####################################
solve(model)
This is still a CPLEX-specific feature (as mentioned in the other thread). You’ll need to work with the CPLEX-level model object (internalmodel(model).solver
) and the “linear indices” of the variables (accessible as, e.g. linearindex(y[1])
).
-Joey
--
You received this message because you are subscribed to the Google Groups "julia-opt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/julia-opt.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+...@googlegroups.com.