Clarification about matching variables in MCP model

Hello everyone,

I have a question regarding the definition and matching of variables in an MCP model.

For instance, I have a variable named X defined over two different subsets (nes and nones). Therefore, the variable appears as X[nes,j] and X[nones,j]. Each subset (nes and nones) is associated with a specific equation, as follows:

Eq1:X[nones,j]
Eq2:X[nes,j]

But obviously this doesn’t work because the matching structure doesn’t include index.

Is there a straightforward method to link variables from each subset with their respective equations, or would it be necessary to define two separate variables, one for each subset (nes and nones)?

Thanks in advance!

Kind regards

Hi Marc,

Can you say more about the domains that Eq1 and Eq2 are over? I’d expect them to be over the [nones,j] and [nes,j]?

Best,
Adam

Thanks to your comment, I was able to solve my case.

Specifically, having a variable X[“Y”, j] the related equation was only defined over j, eq[j]. By simply changing it to eq[“Y”, j], the problem was solved.

Thanks a lot Adam

1 Like