Setting start values for only some indicies of a BilevelJuMP variable

Perhaps you want

@variable(Lower(model), x[i=1:6])
for i in 1:6
    if !iszero(a[i])
        set_start_value(x[i], a[i])
    end
end
2 Likes