Elements#

gana is an object oriented algebraic modeling language (AML) for multiscale modeling and optimization.

The basic operational element sets are:

  1. variable (V)

  2. parameter (P)

  3. parametric variable (T).

Optionally, these can be indexed (I).

Operating with elements generates function sets (F), which can be constrained ©.

A block of constraints forms a mathematical program (Prg)

Import Statements#

The program block and elements can be imported as shown below1can also use from gana import *

from gana import Prg, I, V, P, T

Declaring a Program#

p = Prg()

By default, all elements are immutable in gana. Setting mutable = True allows updating the elements in sets, which is useful when a more dynamic modeling purview is required. Be careful when using mutable sets as it allows overwriting in the program!