pyoptinterface.xpress package

class pyoptinterface.xpress.Env(*args, **kwargs)

Bases: object

close
class pyoptinterface.xpress.Model(env=None)

Bases: RawModel

add_exp_cone_constraint
add_linear_constraint(arg, *args, **kwargs)
add_m_linear_constraints(A, x, sense, b)

add constraints Ax <= / = / >= b

A is a 2-dimensional numpy array or scipy sparse matrix x is an iterable of variables sense is one of (poi.Leq, poi.Eq, poi.Geq) b is an iterable of values or a single scalar

add_m_variables(shape: Tuple[int, ...] | int, domain=None, lb=None, ub=None, name=None, start=None)
add_mip_start
add_nl_constraint(expr, *args, **kwargs)
add_nl_objective(expr)
add_quadratic_constraint(self, function: pyoptinterface._src.core_ext.ScalarQuadraticFunction, sense: pyoptinterface._src.core_ext.ConstraintSense, rhs: float, name: str = '') pyoptinterface._src.core_ext.ConstraintIndex
add_second_order_cone_constraint
add_sos_constraint
add_variable
add_variables(*coords: Collection, domain=None, lb=None, ub=None, name=None, start=None)
cb_add_lazy_constraint
cb_add_user_cut
cb_exit
cb_get_arguments
cb_get_incumbent
cb_get_relaxation
cb_get_solution
cb_set_solution
cb_submit_solution
close
computeIIS
delete_constraint
delete_variable
delete_variables
get_constraint_attribute(constraint, attribute: ConstraintAttribute)
get_constraint_dual
get_constraint_dual_ray
get_constraint_name
get_constraint_rhs
get_constraint_sense
get_constraint_slack
get_iis_sol_status
get_infinity = <nanobind.nb_func object>
get_lp_status
get_mip_status
get_model_attribute(attribute: ModelAttribute)
get_nlp_status
get_normalized_coefficient
get_normalized_rhs
get_objective_coefficient
get_optimize_type
get_problem_name
get_raw_attribute
get_raw_attribute_dbl
get_raw_attribute_dbl_by_id
get_raw_attribute_int
get_raw_attribute_int_by_id
get_raw_attribute_str
get_raw_attribute_str_by_id
get_raw_control
get_raw_control_dbl
get_raw_control_dbl_by_id
get_raw_control_int
get_raw_control_int_by_id
get_raw_control_str
get_raw_control_str_by_id
get_raw_model
get_sol_status
get_solve_status
get_value
get_variable_attribute(variable, attribute: VariableAttribute)
get_variable_lowerbound
get_variable_lowerbound_IIS
get_variable_name
get_variable_primal_ray
get_variable_rc
get_variable_type
get_variable_upperbound
get_variable_upperbound_IIS
get_variable_value
init
is_constraint_active
is_constraint_basic
is_constraint_in_IIS
is_constraint_nonbasic_lb
is_constraint_nonbasic_ub
is_constraint_superbasic
is_variable_active
is_variable_basic
is_variable_nonbasic_lb
is_variable_nonbasic_ub
is_variable_superbasic
number_of_constraints(type: ConstraintType)
number_of_variables()
optimize(self) None
pprint
set_callback(self, callback: collections.abc.Callable[[pyoptinterface._src.xpress_model_ext.RawModel, pyoptinterface._src.xpress_model_ext.XPRS.CB_CONTEXT], None], cbctx: int) None
set_constraint_attribute(constraint, attribute: ConstraintAttribute, value)
set_constraint_name
set_constraint_rhs
set_constraint_sense
set_model_attribute(attribute: ModelAttribute, value)
set_normalized_coefficient
set_normalized_rhs
set_objective
set_objective_coefficient
set_problem_name
set_raw_control
set_raw_control_dbl
set_raw_control_dbl_by_id
set_raw_control_int
set_raw_control_int_by_id
set_raw_control_str
set_raw_control_str_by_id
set_variable_attribute(variable, attribute: VariableAttribute, value)
set_variable_bounds
set_variable_lowerbound
set_variable_name
set_variable_type
set_variable_upperbound
static supports_constraint_attribute(attribute: ConstraintAttribute, settable=False)
static supports_model_attribute(attribute: ModelAttribute, settable=False)
static supports_variable_attribute(attribute: VariableAttribute, settable=False)
version_string
write
pyoptinterface.xpress.autoload_library()