8.3. Python 接口函数¶
本节提供了 MindOpt Python API 的参考,具体内容如下:
- 8.3.1. MdoCol
- 8.3.2. MdoCons
- 8.3.3. MdoEnv
- 8.3.4. MdoException
- 8.3.5. MdoExpr
- 8.3.6. MdoExprLinear
mindoptpy.MdoExprLinear
mindoptpy.MdoExprLinear.add_constant()
mindoptpy.MdoExprLinear.add_term()
mindoptpy.MdoExprLinear.add_terms()
mindoptpy.MdoExprLinear.clear()
mindoptpy.MdoExprLinear.get_coeff()
mindoptpy.MdoExprLinear.get_constant()
mindoptpy.MdoExprLinear.get_terms()
mindoptpy.MdoExprLinear.get_var()
mindoptpy.MdoExprLinear.remove_term()
mindoptpy.MdoExprLinear.remove_var()
mindoptpy.MdoExprLinear.set_constant()
mindoptpy.MdoExprLinear.get_dual_value()
- 8.3.7. MdoModel
mindoptpy.MdoModel
mindoptpy.MdoModel.conss_
mindoptpy.MdoModel.vars_
mindoptpy.MdoModel.add_cons()
mindoptpy.MdoModel.add_cons2()
mindoptpy.MdoModel.add_conss()
mindoptpy.MdoModel.add_var()
mindoptpy.MdoModel.add_vars()
mindoptpy.MdoModel.create_mdl()
mindoptpy.MdoModel.delete_conss()
mindoptpy.MdoModel.delete_elements()
mindoptpy.MdoModel.delete_all_elements()
mindoptpy.MdoModel.delete_all_quadratic_elements()
mindoptpy.MdoModel.delete_vars()
mindoptpy.MdoModel.display_results()
mindoptpy.MdoModel.explain_result()
mindoptpy.MdoModel.explain_status()
mindoptpy.MdoModel.compute_iis()
mindoptpy.MdoModel.free_mdl()
mindoptpy.MdoModel.get_col()
mindoptpy.MdoModel.get_cons()
mindoptpy.MdoModel.get_conss()
mindoptpy.MdoModel.get_elements()
mindoptpy.MdoModel.get_expr_linear()
mindoptpy.MdoModel.get_int_attr()
mindoptpy.MdoModel.get_int_attr_array()
mindoptpy.MdoModel.get_int_attr_conss()
mindoptpy.MdoModel.get_int_attr_index()
mindoptpy.MdoModel.get_int_attr_vars()
mindoptpy.MdoModel.get_int_param()
mindoptpy.MdoModel.get_obj_offset()
mindoptpy.MdoModel.get_objs()
mindoptpy.MdoModel.get_real_attr()
mindoptpy.MdoModel.get_real_attr_array()
mindoptpy.MdoModel.get_real_attr_conss()
mindoptpy.MdoModel.get_real_attr_index()
mindoptpy.MdoModel.get_real_attr_vars()
mindoptpy.MdoModel.get_real_param()
mindoptpy.MdoModel.get_result()
mindoptpy.MdoModel.get_status()
mindoptpy.MdoModel.get_str_attr_index()
mindoptpy.MdoModel.get_str_param()
mindoptpy.MdoModel.get_var()
mindoptpy.MdoModel.get_vars()
mindoptpy.MdoModel.add_sym_mat()
mindoptpy.MdoModel.add_sym_mats()
mindoptpy.MdoModel.replace_sym_mat_objs()
mindoptpy.MdoModel.replace_sym_mat_elements()
mindoptpy.MdoModel.get_real_attr_sym_mat()
mindoptpy.MdoModel.is_max_obj_sense()
mindoptpy.MdoModel.is_min_obj_sense()
mindoptpy.MdoModel.load_model()
mindoptpy.MdoModel.read_prob()
mindoptpy.MdoModel.read_task()
mindoptpy.MdoModel.retrieve_task()
mindoptpy.MdoModel.set_elements()
mindoptpy.MdoModel.set_quadratic_elements()
mindoptpy.MdoModel.set_int_attr()
mindoptpy.MdoModel.set_int_attr_array()
mindoptpy.MdoModel.set_int_attr_conss()
mindoptpy.MdoModel.set_int_attr_index()
mindoptpy.MdoModel.set_int_attr_vars()
mindoptpy.MdoModel.set_int_param()
mindoptpy.MdoModel.set_max_obj_sense()
mindoptpy.MdoModel.set_min_obj_sense()
mindoptpy.MdoModel.set_obj_offset()
mindoptpy.MdoModel.set_objs()
mindoptpy.MdoModel.set_real_attr()
mindoptpy.MdoModel.set_real_attr_array()
mindoptpy.MdoModel.set_real_attr_conss()
mindoptpy.MdoModel.set_real_attr_index()
mindoptpy.MdoModel.set_real_attr_vars()
mindoptpy.MdoModel.set_real_param()
mindoptpy.MdoModel.set_str_attr_index()
mindoptpy.MdoModel.set_str_param()
mindoptpy.MdoModel.solve_prob()
mindoptpy.MdoModel.submit_task()
mindoptpy.MdoModel.write_prob()
mindoptpy.MdoModel.write_soln()
mindoptpy.MdoModel.write_task()
- 8.3.8. MdoVar
- 8.3.9. quicksum