Skip to contents

Parse a GAMS equation into an AST object.

Usage

parse_gams_equation(eqn_info, symbols)

Arguments

eqn_info

A GAMS-code snippet containing the equation information, including its name, GAMS body, domain, and description.

symbols

A list of symbols (sets, parameters, variables) used in the GAMS model, which will be used to resolve dimensions and expressions.

Value

An mm_equation object holding the parsed equation: its name, dimensions, left-hand side, right-hand side, relation, domain and description.