Search found 2 matches

by Raghav
3 years ago
Forum: API
Topic: Using Embedded Python through API
Replies: 3
Views: 6076

Re: Using Embedded Python through API

GAMS Code: ..... Parameter X Table Delta ..... Embedded Code Python: Y = list(gams.get('X')) -----------------> Python Code to prepare data1 based on Y values <---------------- gams.set('Delta', data1) EndEmbedded Code Delta ....... Model Test The above model is called from Python API and with a mod...
by Raghav
3 years ago
Forum: API
Topic: Using Embedded Python through API
Replies: 3
Views: 6076

Using Embedded Python through API

Hi, I have an embedded python code in GAMS model that assigns value to table Y based on the input parameter X. When I try to run the gams model as a job through python API and use Modifier for X, I am unable to get any update on the table Y. Will embedded python code work if the model job is run thr...