# Some Mathematical Algorithms and Problems in GAMS Technology

## Abstract

In this chapter we present some mathematical problems expressed and solved using the GAMS technology. The applications include computing the inverse of a matrix, the determinant, and the rank of real or complex matrices, solving algebraic systems of real or complex linear equations, determining the polygon of maximal area among all polygons with a given number of sides and diameter less than or equal to one, computing the smallest circle that contains a given number of points, maximizing the area of a hexagon in which the diameter must be less than or equal to one, solving minimal surface problems, generating and prime numbers. The purpose of this chapter is to illustrate the power of the GAMS language with an emphasis on the use of loops, while and dynamic definition of sets.

### References

- Andrei, N. (2001).
*Numerical examples solved with SPENBAR – Modified penalty barrier method for large-scale nonlinear programming problems*(ICI Technical Report No. 1/2001, Feb 2001).Google Scholar - Andrei, N. (2003).
*Models, test problems and applications for mathematical programming*. Bucharest: Technical Press.Google Scholar - Dolan, E. D., Moré, J. J., & Munson, T. S. (2004).
*Benchmarking optimization software with COPS 3.0.*Preprint ANL/MCS-TM-273. Argonne: Argonne National Laboratory, Feb 2004.Google Scholar - Graham, R. L. (1975). The largest small hexagon.
*Journal of Combinatorial Theory, (A), 18*, 165–170.MATHCrossRefGoogle Scholar - Himmelblau, D. M. (1972).
*Applied nonlinear programming*. New York: McGraw-Hill. Problem 16, pp. 415.Google Scholar - Kalvelagen, E. (2001).
*Nonlinear programming models 1: A collection of simple models*. GAMS Development Corp., 1 Aug 2001.Google Scholar - Kalvelagen, E. (2002).
*Solving systems of linear equations with GAMS*(GAMS Technical Report, 12 Nov 2002).Google Scholar - Pearson, J. D. (1968).
*On variable metric methods of minimization*(Research Analysis Corporation Report, RAC-TP-302). McLean: Research Analysis Corp.Google Scholar