Is it possible and how to assign values to POSITION[R,C] matrix in the indicator constraint
@variable(premex, ROLNA[R in keys(_ROWS), C in keys(_COLS), i_k in keys(_IMAGES_ALL)], Bin)
@variable(premex, POSITION[R in keys(_ROWS), C in keys(_COLS)], Bin)
@constraint(
premex,
SOMETHING[R in _ROWS, C in _COLS, i_k in keys(_IMAGES_ALL)],
ROLNA[R, C, i_k] => {
POSITION[R1 + R - 1, C1 + C - 1]
# for R1 in collect(UnitRange(1, _IMAGES_ALL[i_k]["ROWS"])), C1 in collect(UnitRange(1, _IMAGES_ALL[i_k]["COLS"]))
# if (R1 + R - 1 <= length(_ROWS))
# for C1 in collect(UnitRange(1, _IMAGES_ALL[i_k]["COLS"]))
# if (C1 + C - 1 <= length(_ROWS))
== 1
}
)
My goal is to assign 1 to some values in POSITION matrix when ROLNA[R, C, i_k] = 1