Skip to content

Updating the Import Statement to Use GAMS new API #3624

Open
@AnhTran01

Description

@AnhTran01

Summary

Updating the attempt_import statement in pyomo\solvers\plugins\solvers\GAMS.py from gdxcc to gams.core.gdx to use GAMS new API.

Rationale

The attempt_import statement returns gdxcc_available as a boolean value that parses the solver result into a .gdx file if it is true or a .dat file if it is false. The data file format may affect parsing performance post-solved.

Description

gdxcc, gdxcc_available = attempt_import('gdxcc') # old interface
gdxcc, gdxcc_available = attempt_import('gams.core.gdx') # new interface

Additional information

We are currently comparing the data parsing time after solving between the .dat and .gdx data file formats. The model used for the test and the .pkl time data will be added below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions