AmplModel
(class from pyomo.opt.problem.ampl)
- class pyomo.opt.problem.ampl.AmplModel(modfile, datfile=None)[source]
Bases:
objectA class that provides a wrapper for AMPL models.
Methods
__init__(modfile[, datfile])The constructor.
This method allows the pyomo.opt convert function to work with an AmplModel object.
write(filename[, format, solver_capability])Write the model to a file, with a given format.
Member Documentation