I would like to make some experiments in Python
with constraint satisfaction problems from this database: all of the examples there are given in both the AMPL
and GAMS
file format. Is there a tool to convert these equations to simple python functions that looks like
def quadratic(X):
return (X[0]**2 - X[1]**2, 2*X[0]*X[1])
and similar?
I have started reading this manual but am not sure if that's the right direction. (I'm not very strong at programming.) I will be grateful for possible hints.