Metadata
Title
General GAMSBAS Information – Bruce McCarl
Category
general
UUID
6bec599c81a042f296b5ef72a535c762
Source URL
https://agecoresearch.tamu.edu/mccarl/gams-related-information/general-gamsbas-i...
Parent URL
https://agecoresearch.tamu.edu/mccarl/
Crawl Time
2026-03-16T03:54:58+00:00
Rendered Raw Markdown
# General GAMSBAS Information – Bruce McCarl

**Source**: https://agecoresearch.tamu.edu/mccarl/gams-related-information/general-gamsbas-information/
**Parent**: https://agecoresearch.tamu.edu/mccarl/

\
[What are the basic functions of GAMSBAS?](#basic)\
\
[How is GAMSBAS used in a GAMS program?](#use)\
\
[How do I obtain GAMSBAS?](#obtain)\
\
[How can I get a copy of the latest writeup?](#writeup)\
\

**Basic Functions of GAMSBAS**\
\
GAMSBAS saves an advanced basis which a user may later use in subsequent solves by including the basis\
\
[Top of Document](#top)\

\
**How is GAMSBAS used in a GAMS program?**\
There are three elements to the use of GAMSBAS\

- Modification of the GAMS program
- - In the GAMS program you must make GAMSBAS the substiute solver by entering a line like\
    option lp=gamsbas; The rest of the program is like any other GAMS model.\
- Creation of the bas file
- - GAMSBAS creates the saved basis on a \*.bas file where the \* refers to the filename from the GAMS execution instruction. Thus if you are solving a model called trnsport you receive a file called trnsport.bas.\
- Usage of the bas file
  - The user can use the \*.bas file in future solves by inserting the command\
    $include \*.bas (with the appropriate file name)\
    in a subsequent GAMS program

[Top of Document](https://agecon2.tamu.edu/people/faculty/mccarl-bruce/gamsbas.htm#top)\
\

**How do I obtain GAMSBAS?**

GAMSBAS is a standard part of all GAMS releases. If you do not have it you need to update your system\
\
[Top of Document](https://agecon2.tamu.edu/people/faculty/mccarl-bruce/gamsbas.htm#top)\

**How can I get a copy of the latest writeup?**

GAMSBAS is now a standard part of all GAMS releases. The GAMSBAS manual is included in the Solver Manual Book. A writeup is also here. [GAMSBAS Documentation](http://agecon2.tamu.edu/people/faculty/mccarl-bruce/papers/550.pdf)