AmplInterface

(class from pyomo.contrib.pynumero.asl)

class pyomo.contrib.pynumero.asl.AmplInterface(filename=None, nl_buffer=None)[source]

Bases: object

__init__(filename=None, nl_buffer=None)[source]

Methods

__init__([filename, nl_buffer])

available()

eval_deriv_f(x, df)

eval_f(x)

eval_g(x, g)

eval_hes_lag(x, lam, hes_lag[, obj_factor])

eval_jac_g(x, jac_g_values)

finalize_solution(ampl_solve_status_num, ...)

get_bounds_info(xl, xu, gl, gu)

get_g_lower_bounds(invec)

get_g_upper_bounds(invec)

get_init_multipliers(invec)

get_init_x(invec)

get_n_constraints()

get_n_vars()

get_nnz_hessian_lag()

get_nnz_jac_g()

get_x_lower_bounds(invec)

get_x_upper_bounds(invec)

struct_hes_lag(irow, jcol)

struct_jac_g(irow, jcol)

Attributes

ASLib

asl_date

interface_version

libname

Member Documentation