pyoptinterface.mosek package¶
- class pyoptinterface.mosek.Model(env=None)¶
Bases:
RawModel
- add_exp_cone_constraint¶
- add_linear_constraint¶
- 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_quadratic_constraint¶
- add_second_order_cone_constraint¶
- add_variable¶
- add_variables(*coords: Collection, domain=None, lb=None, ub=None, name=None, start=None)¶
- delete_constraint¶
- delete_variable¶
- delete_variables¶
- disable_log¶
- enable_log¶
- get_constraint_attribute(constraint, attribute: ConstraintAttribute)¶
- get_constraint_dual¶
- get_constraint_name¶
- get_constraint_primal¶
- get_model_attribute(attribute: ModelAttribute)¶
- get_normalized_coefficient¶
- get_normalized_rhs¶
- get_obj_sense¶
- get_objective_coefficient¶
- get_raw_information(param_name: str)¶
- get_raw_information_double¶
- get_raw_information_int¶
- get_raw_model¶
- get_raw_parameter(param_name: str)¶
- get_raw_parameter_double¶
- get_raw_parameter_int¶
- get_raw_parameter_string¶
- get_value¶
- get_variable_attribute(variable, attribute: VariableAttribute)¶
- get_variable_lower_bound¶
- get_variable_name¶
- get_variable_type¶
- get_variable_upper_bound¶
- getdualobj¶
- getnumcon¶
- getnumvar¶
- getprimalobj¶
- getprosta¶
- getsolsta¶
- init¶
- is_constraint_active¶
- is_variable_active¶
- number_of_constraints(type: ConstraintType)¶
- number_of_variables()¶
- optimize(self) int ¶
- pprint¶
- raw_parameter_type¶
- set_constraint_attribute(constraint, attribute: ConstraintAttribute, value)¶
- set_constraint_name¶
- set_model_attribute(attribute: ModelAttribute, value)¶
- set_normalized_coefficient¶
- set_normalized_rhs¶
- set_obj_sense¶
- set_objective¶
- set_objective_coefficient¶
- set_raw_parameter(param_name: str, value)¶
- set_raw_parameter_double¶
- set_raw_parameter_int¶
- set_raw_parameter_string¶
- set_variable_attribute(variable, attribute: VariableAttribute, value)¶
- set_variable_bounds¶
- set_variable_lower_bound¶
- set_variable_name¶
- set_variable_primal¶
- set_variable_type¶
- set_variable_upper_bound¶
- 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.mosek.autoload_library()¶