Great! Thank you very much!
Your explanation is super and the solution is brilliant! It does exactly what I searched for.
PS: Just in case anybody else wants to use your solution, there is an order-typo with the '$', the correct syntax is: worker(t) = sum(w $(x.l(t,w)), w.val);
Search found 4 matches
- 3 years ago
- Forum: Syntax
- Topic: Define parameter with less indices than reference object
- Replies: 4
- Views: 2879
- 3 years ago
- Forum: GAMS MIRO
- Topic: Error loading R package
- Replies: 1
- Views: 5978
Error loading R package
Hello MIRO-experts, I just started to play around with GAMS MIRO and I currently try to build my own custom widget. Sadly, I'm not able to make the R package "sf" usable. As described in the documentation, I added the R package to the json file: "result": { "outType": &...
- 3 years ago
- Forum: Syntax
- Topic: Define parameter with less indices than reference object
- Replies: 4
- Views: 2879
Re: Define parameter with less indices than reference object
Hi Atharv, thanks a lot for your answer! I have completely overlooked that parameters have to be numbers, that's very good to know! Your suggestions with the redefined worker-parameter and/or the direct access to the binary x-variable work, thanks! To satisfy my curiosity and perhaps for future use:...
- 3 years ago
- Forum: Syntax
- Topic: Define parameter with less indices than reference object
- Replies: 4
- Views: 2879
Define parameter with less indices than reference object
Hello community, I'm a beginner in the usage of GAMS and I fail to define a parameter based on the solution of my model, because I struggle with the indices. I have an assignment problem, where my decision variables x(t,w) assign to every task t exactly one worker w. Thus, my x variables are SOS1-va...