AmplInterface

(类来自 pyomo.contrib.pynumero.asl)

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

基础类:object

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

方法

__init__([文件名, nl缓冲区])

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)

属性

ASLib

asl_date

interface_version

libname

成员文档