常数


常数

以下列表包含Gurobi Python接口使用的一组常量。你会使用a引用它们GRB。前缀(例如,GRB.Optimal.Proptimal.)。


#状态代码加载= 1最佳= 2缺陷= 3 inf_or_unbd = 4未绑定= 5截止= 6 iteration_limit = 7 node_limit = 8 time_limit = 9 solution_limit = 10中断= 11 numercort = 12 suboptimal = 13 inprogress = 14 user_obj_limit = 15#batch状态代码Batch_created = 1 batch_submited = 2 batch_aborted = 3 bate_failed = 4 batch_completed = 5#版本号version_major = 9 version_minor = 1 version_technical = 2#基础状态basic = 0 nonbasic_lower = -1 nonbasic_upper = -2 superbasic = -3#约束感官less_equal ='<'meverly_equal ='>'等于'='#变量类型连续='c'binary ='b'integer ='i'smarmont ='s smemiint ='semiint ='n'#目标sense最小化= 1最大化= 1最大化= 1最大化= 1最大化= 1最大化= 1最大化= 1最大化= -1#sos键sos_type1 = 1 sos_type2 = 2#常规约束类型genconstr_max = 0 genconstr_min = 1 genconstr_abs = 2 genconstr_and = 4 genconstr_or = 4 genconstr_pwl = 6 genconstr_pold = 7 genconstr_pol = 7 genconstr_exp = 8 genconstr_expa = 9 genconstr_log = 10 genconstr_loga = 11 genconstr_pow = 12 genconstr_cos = 13 genconstr_cos = 14 genconstr_tan = 15#数字常量无限= 1e100未定义= 1e101 maxint = 200000000000#limits max_namelen = 255 max_strlen = 512 max_taglen = 10240 max_concurrent = 64#其他常量default_cs_port = 61000#错误= 61000#错误= 61000#错误错误= 10001 ERROR_NULL_ARGUMENT = 10002 ERROR_INVALID_ARGUMENT = 10003 ERROR_UNKNOWN_ATTRIBUTE = 10004 ERROR_DATA_NOT_AVAILABLE = 10005 ERROR_INDEX_OUT_OF_RANGE = 10006 ERROR_UNKNOWN_PARAMETER = 10007 ERROR_VALUE_OUT_OF_RANGE = 10008 ERROR_NO_LICENSE = 10009 ERROR_SIZE_LIMIT_EXCEEDED = 10010 ERROR_CALLBACK = 10011 ERROR_FILE_READ = 10012 ERROR_FILE_WRITE = 10013 ERROR_NUMERIC = 10014 ERROR_IIS_NOT_INFEASIBLE = 10015 ERROR_NOT_FOR_MIP = 10016 ERROR_OPTIMIZATION_IN_PROGRESS = 10017error_duplicates = 10018 error_nodefile = 10019 error_q_not_psd = 10020 error_qcp_equality_constraint = 10021 error_network = 10022 error_job_rejected = 10023 error_not_supported = 10024 error_exceed_2b_nonzeros = 10025 error_invalid_piecewise_obj = 10026 error_updatemode_change = 10027 error_cloud = 10028 error_codel_modification = 10029 error_csworker = 10030 error_tune_model_types = 10031 error_security = 10032 error_not_in_model = 20001 error_failed_to_create_model = 20002 error_internal = 20003