Assinging values within a table to a parameter

questions about GAMS' tools
Post Reply
Luxebi
User
User
Posts: 1
Joined: 3 weeks ago

Assinging values within a table to a parameter

Post by Luxebi »

Hello,

I am fairly new to GAMS and coding in general so I´m very sorry if this question might be a little bit stupid.

Im currently working on a tour scheduling problem. The goal is to solve it with Excel data converted into a gdx file so far so good.

My gdx. file has a two-dimensional data set with e employees and q skills. The data within the table is supposed to be the value for parameter g(e,q). But how do I tell GAMS that? I´ve read through many parts of the documentation but nothing seems to be working...

Help is very appreciated, the code and gdx. file is down below. Thanks in advance!
Attachments
inputs.gdx
(74.33 KiB) Downloaded 79 times
Bachelorarbeit.gms
(4.74 KiB) Downloaded 87 times
User avatar
bussieck
Moderator
Moderator
Posts: 1048
Joined: 7 years ago

Re: Assinging values within a table to a parameter

Post by bussieck »

The documentation about $load (see https://www.gams.com/latest/docs/UG_Dol ... DOLLARload) should help. In your case you need to load Data1 as g:

Code: Select all

$GDXIN inputs.gdx
$LOAD g=Data1
$gdxIn
-Michael
Post Reply