北京天演融智软件有限公司(科学软件网)前身是北京世纪天演科技有限公司,成立于2001年,专注为国内高校、科研院所和以研发为主的企事业单位提供科研软件和服务的国家。
Model Library
When architects begin to design a new building, they develop the new structure by using ideas and techniques that have been
tested in previous structures. The same is true in other fields: design elements from previous projects serve as sources of
ideas for new developments.
From the early stages of the development of GAMS we have collected models to be used in a library of examples. Many of
these are standard textbook examples and can be used in classes on problem formulation or to illustrate points about GAMS.
Others are models that have been used in policy or sector analysis and are interesting for both the methods and the data they
use. All the substantive models in the library are described in the open literature. A collection of models is now included
with all GAMS systems, along with a database to help users locate examples that cover countries, sectors, or topics of interest
to them.
The syntax used to introduce features in the various chapters are presented using the Backus-Naur form (BNF) notation
where:
Portability
The GAMS system is designed so that models can be solved on different types of computers with no change. A model
developed on a small personal computer can later be solved on a large mainframe. One person can develop a model that is
later used by others, who may be physically distant from the original developer. In contrast to previous approaches, only one
document need be moved — the GAMS statement of the model. It contains all the data and logical specifications needed to
solve the model.
GAMS允许用户在某种程度上,用跟数学描述非常相似的方式来制定数学模型。看一下这些例子就能说明GAMS模型
的基本结构和特征以及与数学表达式的关系。GAMS让用户专注建模,通过要求简洁和的实体和关系规范,鼓励良好
的建模习惯。GAMS语言与通用编程语言形式相似,因此对于有编程经验的人来说是熟悉的。由于模型的制定方式在某种
程度上与它的数学描述类似,所以不仅是程序员,实际领域的也能理解和维护。GAMS专注于建模并且允许做所有相
关的事。
Note that set elements are stored as character strings, so the elements of t are not numbers.
Another convenient feature is the alias statement, which is used to give another name to a previously declared set. In the
following example:
Alias (t,tp);
the name tp is like a t0 in mathematical notation. It is useful in models that are concerned with the interactions of elements
within the same set.
The sets i, j, t, and m in the statements above are examples of static sets, i.e., they are assigned their members directly by the
user and do not change. GAMS has several capabilities for creating dynamic sets, which acquire their members through the
execution of set-theoretic and logical operations. Dynamic sets are discussed in Chapter Dynamic Sets. Another valuable
advanced feature is multidimensional sets, which are discussed in Section Multi-dimensional Sets.
科学软件网为全国大多数高校提供过产品或服务,销售和售后团队,确保您售后**!