In GAMS, I am reading in two sets from data via $gdxIn and $load. But I want to do a…
- User
In GAMS, I am reading in two sets from data via load. But I want to do a one-to-one-mapping between the two sets. The two sets are actually supposed to be mapped to each other. For example "Port 1" and "1" are the same, where "Port 1" is in the first set and "1" is in the second set. In examples given the pairing
pair(i,j)is explicitly provided, but I would like to create the pairing without needing to write it out. How can I achieve this? Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.