I have an optimization model to which I need to add the following piecewise function as a constraint:

C_{i,k} = { PR_{i} * HSE_{k} i∈Ω, k = 1,…,M ,

1 i∈Ω, k = 1,…,M (otherwise)

I read PR and HSE from excel cells

¿Is there a nice way to do this in Julia? I have not found any documentation of this in Julia