8. 完整的API说明¶
本节提供完整的 MindOpt 接口定义与调用方式的说明,具体包含如下内容:
- 8.1. C 接口函数
- 8.2. C++ 接口函数
- 8.3. Python 接口函数
- 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
- 8.4. Java 接口函数
- 8.5. 类型和常数定义
- 8.6. 可选输入参数
- 8.6.1. 整数型参数
- 8.6.1.1. “Method”
- 8.6.1.2. “NumThreads”
- 8.6.1.3. “Presolve”
- 8.6.1.4. “Dualization”
- 8.6.1.5. “SPX/MaxIterations”
- 8.6.1.6. “SPX/ColumnGeneration”
- 8.6.1.7. “SPX/CrashStart”
- 8.6.1.8. “SPX/PrimalPricing”
- 8.6.1.9. “SPX/DualPricing”
- 8.6.1.10. “IPM/MaxIterations”
- 8.6.1.11. “EnableNetworkFlow”
- 8.6.1.12. “EnableStochasticLP”
- 8.6.1.13. “MIP/MaxNodes”
- 8.6.1.14. “MIP/RootParallelism”
- 8.6.1.15. “MIP/AutoConfiguration”
- 8.6.1.16. “MIP/MaxStallingNodes”
- 8.6.1.17. “MIP/MaxSols”
- 8.6.1.18. “MIP/DetectDisconnectedComponents”
- 8.6.1.19. “MIP/SolutionPoolSize”
- 8.6.1.20. “MIP/AllowDualPresolve”
- 8.6.2. 实数型参数
- 8.6.2.1. “MaxTime”
- 8.6.2.2. “SPX/PrimalTolerance”
- 8.6.2.3. “SPX/DualTolerance”
- 8.6.2.4. “IPM/PrimalTolerance”
- 8.6.2.5. “IPM/DualTolerance”
- 8.6.2.6. “IPM/GapTolerance”
- 8.6.2.7. “MIP/IntegerTolerance”
- 8.6.2.8. “MIP/ObjectiveTolerance”
- 8.6.2.9. “MIP/GapAbs”
- 8.6.2.10. “MIP/GapRel”
- 8.6.2.11. “MIP/LinearizationBigM”
- 8.6.2.12. “MIP/Cutoff”
- 8.6.3. 字符串型参数
- 8.6.1. 整数型参数
- 8.7. 模型和求解过程属性
- 8.7.1. 模型属性
- 8.7.2. 解属性
- 8.7.2.1. “SolutionTime”
- 8.7.2.2. “PresolverTime”
- 8.7.2.3. “SolverTime”
- 8.7.2.4. “HasSolution”
- 8.7.2.5. “HasPrimalRay”
- 8.7.2.6. “HasDualRay”
- 8.7.2.7. “PrimalObjVal”
- 8.7.2.8. “DualObjVal”
- 8.7.2.9. “PrimalSoln”
- 8.7.2.10. “DualSoln”
- 8.7.2.11. “ColBasis”
- 8.7.2.12. “RowBasis”
- 8.7.2.13. “Activity”
- 8.7.2.14. “ReducedCost”
- 8.7.2.15. “SymMatPrimalSoln”
- 8.7.2.16. “MIP/GapAbs”
- 8.7.2.17. “MIP/GapRel”
- 8.7.3. 单纯形法 (Simplex) 属性
- 8.7.4. 内点法 (Interior point method) 属性