mxlpsolve Mex file interface to the lp_solve 5.5 toolkit. Please see reference guide for more information. mxlpsolve is a low-level interface to the lp_solve toolkit. It may be called directly, or may be used to build higher level functions for solving various kinds of linear and mixed-integer linear programs. It uses an integer handle to point to a linear program. return = mxlpsolve('add_column', lp, [column]) return = mxlpsolve('add_columnex', lp, [column]) return = mxlpsolve('add_constraint', lp, [row], constr_type, rh) return = mxlpsolve('add_constraintex', lp, [row], constr_type, rh) return = mxlpsolve('add_SOS', lp, name, sostype, priority, [sosvars], [weights]) return = mxlpsolve('column_in_lp', lp, [column]) mxlpsolve('default_basis', lp) return = mxlpsolve('del_column', lp, column) return = mxlpsolve('del_constraint', lp, del_row) lp_handle = mxlpsolve('copy_lp', lp) mxlpsolve('delete_lp', lp) mxlpsolve('dualize_lp', lp) mxlpsolve('free_lp', lp) return = mxlpsolve('get_anti_degen', lp) [bascolumn] = mxlpsolve('get_basis', lp {, nonbasic}) return = mxlpsolve('get_basiscrash', lp) return = mxlpsolve('get_bb_depthlimit', lp) return = mxlpsolve('get_bb_floorfirst', lp) return = mxlpsolve('get_bb_rule', lp) return = mxlpsolve('get_bounds_tighter', lp) return = mxlpsolve('get_break_at_value', lp) name = mxlpsolve('get_col_name', lp, column) [names] = mxlpsolve('get_col_name', lp) [column, return] = mxlpsolve('get_column', lp, col_nr) [column, return] = mxlpsolve('get_columnex', lp, col_nr) return = mxlpsolve('get_constr_type', lp, row) return = mxlpsolve('get_constr_value', lp, row {, primsolution}) [constr_type] = mxlpsolve('get_constr_type', lp) [constr, return] = mxlpsolve('get_constraints', lp) [duals, return] = mxlpsolve('get_dual_solution', lp) return = mxlpsolve('get_epsb', lp) return = mxlpsolve('get_epsd', lp) return = mxlpsolve('get_epsel', lp) return = mxlpsolve('get_epsint', lp) return = mxlpsolve('get_epsperturb', lp) return = mxlpsolve('get_epspivot', lp) lp_handle = mxlpsolve('get_handle', lp_name) return = mxlpsolve('get_improve', lp) return = mxlpsolve('get_infinite', lp) return = mxlpsolve('get_lowbo', lp, column) [return] = mxlpsolve('get_lowbo', lp) return = mxlpsolve('get_lp_index', lp, orig_index) name = mxlpsolve('get_lp_name', lp) value = mxlpsolve('get_mat', lp, row, col) [matrix, return] = mxlpsolve('get_mat', lp {, sparse}) return = mxlpsolve('get_max_level', lp) return = mxlpsolve('get_maxpivot', lp) return = mxlpsolve('get_mip_gap', lp, absolute) return = mxlpsolve('get_nameindex', lp, name, isrow) return = mxlpsolve('get_Ncolumns', lp) return = mxlpsolve('get_negrange', lp) return = mxlpsolve('get_nonzeros', lp) return = mxlpsolve('get_Norig_columns', lp) return = mxlpsolve('get_Norig_rows', lp) return = mxlpsolve('get_Nrows', lp) return = mxlpsolve('get_obj_bound', lp) [row_vec, return] = mxlpsolve('get_obj_fn', lp) [row_vec, return] = mxlpsolve('get_obj_fun', lp) return = mxlpsolve('get_objective', lp) name = mxlpsolve('get_objective_name', lp) return = mxlpsolve('get_orig_index', lp, lp_index) name = mxlpsolve('get_origcol_name', lp, column) [names] = mxlpsolve('get_origcol_name', lp) name = mxlpsolve('get_origrow_name', lp, row) [names] = mxlpsolve('get_origrow_name', lp) return = mxlpsolve('get_pivoting', lp) return = mxlpsolve('get_presolve', lp) return = mxlpsolve('get_presolveloops', lp) [pv, return] = mxlpsolve('get_primal_solution', lp) return = mxlpsolve('get_print_sol', lp) return = mxlpsolve('get_rh', lp, row) [rh] = mxlpsolve('get_rh', lp) return = mxlpsolve('get_rh_range', lp, row) [rh_ranges] = mxlpsolve('get_rh_range', lp) [row, return] = mxlpsolve('get_row', lp, row_nr) [row, return] = mxlpsolve('get_rowex', lp, row_nr) name = mxlpsolve('get_row_name', lp, row) [names] = mxlpsolve('get_row_name', lp) return = mxlpsolve('get_scalelimit', lp) return = mxlpsolve('get_scaling', lp) [objfrom, objtill, objfromvalue, objtillvalue, return] = mxlpsolve('get_sensitivity_obj', lp) [objfrom, objtill, objfromvalue, objtillvalue, return] = mxlpsolve('get_sensitivity_objex', lp) [duals, dualsfrom, dualstill, return] = mxlpsolve('get_sensitivity_rhs', lp) [duals, dualsfrom, dualstill, return] = mxlpsolve('get_sensitivity_rhsex', lp) return = mxlpsolve('get_simplextype', lp) [obj, x, duals, return] = mxlpsolve('get_solution', lp) return = mxlpsolve('get_solutioncount', lp) return = mxlpsolve('get_solutionlimit', lp) return = mxlpsolve('get_status', lp) return = mxlpsolve('get_statustext', lp, statuscode) return = mxlpsolve('get_timeout', lp) return = mxlpsolve('get_total_iter', lp) return = mxlpsolve('get_total_nodes', lp) return = mxlpsolve('get_upbo', lp, column) [upbo] = mxlpsolve('get_upbo', lp) return = mxlpsolve('get_var_branch', lp, column) [var_branch] = mxlpsolve('get_var_branch', lp) return = mxlpsolve('get_var_dualresult', lp, index) return = mxlpsolve('get_var_primalresult', lp, index) return = mxlpsolve('get_var_priority', lp, column) [var_priority] = mxlpsolve('get_var_priority', lp) [var, return] = mxlpsolve('get_variables', lp) return = mxlpsolve('get_verbose', lp) return = mxlpsolve('get_working_objective', lp) [bascolumn, return] = mxlpsolve('guess_basis', lp , guessvector) return = mxlpsolve('has_BFP', lp) return = mxlpsolve('has_XLI', lp) return = mxlpsolve('is_add_rowmode', lp) return = mxlpsolve('is_anti_degen', lp, testmask) return = mxlpsolve('is_binary', lp, column) [binary] = mxlpsolve('is_binary', lp) return = mxlpsolve('is_break_at_first', lp) return = mxlpsolve('is_constr_type', lp, row, mask) return = mxlpsolve('is_debug', lp) return = mxlpsolve('is_feasible', lp, [values] {, threshold}) return = mxlpsolve('is_free', lp, column) return = mxlpsolve('is_unbounded', lp, column) [free] = mxlpsolve('is_free', lp) [free] = mxlpsolve('is_unbounded', lp) return = mxlpsolve('is_infinite', lp, value) return = mxlpsolve('is_int', lp, column) [int] = mxlpsolve('is_int', lp) return = mxlpsolve('is_integerscaling', lp) return = mxlpsolve('is_maxim', lp) return = mxlpsolve('is_nativeBFP', lp) return = mxlpsolve('is_nativeXLI', lp) return = mxlpsolve('is_negative', lp, column) [negative] = mxlpsolve('is_negative', lp) return = mxlpsolve('is_piv_mode', lp, testmask) return = mxlpsolve('is_piv_rule', lp, rule) return = mxlpsolve('is_presolve', lp, testmask) return = mxlpsolve('is_scalemode', lp, testmask) return = mxlpsolve('is_scaletype', lp, scaletype) return = mxlpsolve('is_semicont', lp, column) [semicont] = mxlpsolve('is_semicont', lp) return = mxlpsolve('is_SOS_var', lp, column) [SOS_var] = mxlpsolve('is_SOS_var', lp) return = mxlpsolve('is_trace', lp) return = mxlpsolve('is_use_names', lp, isrow) versionstring = mxlpsolve('lp_solve_version') lp_handle = mxlpsolve('make_lp', rows, columns) mxlpsolve('print_constraints', lp {, columns}) return = mxlpsolve('print_debugdump', lp, filename) mxlpsolve('print_duals', lp) mxlpsolve('print_lp', lp) mxlpsolve('print_objective', lp) mxlpsolve('print_scales', lp) mxlpsolve('print_solution', lp {, columns}) mxlpsolve('print_str', lp, str) mxlpsolve('print_tableau', lp) [handle_vec] = mxlpsolve('print_handle') lp_handle = mxlpsolve('read_freeMPS', filename {, verbose}) lp_handle = mxlpsolve('read_lp_file', filename {, verbose {, lp_name}}) lp_handle = mxlpsolve('read_lp', filename {, verbose {, lp_name}}) lp_handle = mxlpsolve('read_LP', filename {, verbose {, lp_name}}) lp_handle = mxlpsolve('read_mps', filename {, verbose}) lp_handle = mxlpsolve('read_MPS', filename {, verbose}) return = mxlpsolve('read_params', lp, filename {, options}) return = mxlpsolve('reset_params', lp) lp_handle = mxlpsolve('read_XLI', xliname, modelname {, dataname {, options {, verbose}}}) return = mxlpsolve('set_add_rowmode', lp, turnon) mxlpsolve('set_anti_degen', lp, anti_degen) return = mxlpsolve('set_basis', lp, [bascolumn], nonbasic) mxlpsolve('set_basiscrash', lp, mode) mxlpsolve('set_basisvar', lp, basisPos, enteringCol) mxlpsolve('set_bb_depthlimit', lp, bb_maxlevel) mxlpsolve('set_bb_floorfirst', lp, bb_floorfirst) mxlpsolve('set_bb_rule', lp, bb_rule) return = mxlpsolve('set_BFP', lp, filename) return = mxlpsolve('set_binary', lp, column, must_be_bin) return = mxlpsolve('set_binary', lp, [must_be_bin]) return = mxlpsolve('set_bounds', lp, column, lower, upper) return = mxlpsolve('set_bounds', lp, [lower], [upper]) mxlpsolve('set_bounds_tighter', lp, tighten) mxlpsolve('set_break_at_first', lp, break_at_first) mxlpsolve('set_break_at_value', lp, break_at_value) return = mxlpsolve('set_col_name', lp, column, name) return = mxlpsolve('set_col_name', lp, [names]) return = mxlpsolve('set_column', lp, col_no, [column]) return = mxlpsolve('set_columnex', lp, col_no, [column]) return = mxlpsolve('set_constr_type', lp, row, con_type) return = mxlpsolve('set_constr_type', lp, [con_type]) mxlpsolve('set_debug', lp, debug) mxlpsolve('set_epsb', lp, epsb) mxlpsolve('set_epsd', lp, epsd) mxlpsolve('set_epsel', lp, epsel) mxlpsolve('set_epsint', lp, epsint) mxlpsolve('set_epslevel', lp, epslevel) mxlpsolve('set_epsperturb', lp, epsperturb) mxlpsolve('set_epspivot', lp, epspivot) return = mxlpsolve('set_free', lp, column) return = mxlpsolve('set_unbounded', lp, column) mxlpsolve('set_improve', lp, improve) mxlpsolve('set_infinite', lp, infinite) return = mxlpsolve('set_int', lp, column, must_be_int) return = mxlpsolve('set_int', lp, [must_be_int]) return = mxlpsolve('set_lowbo', lp, column, value) return = mxlpsolve('set_lowbo', lp, [values]) return = mxlpsolve('set_lp_name', lp, name) return = mxlpsolve('set_mat', lp, [matrix]) return = mxlpsolve('set_mat', lp, row, column, value) mxlpsolve('set_maxim', lp) mxlpsolve('set_maxpivot', max_num_inv) mxlpsolve('set_minim', lp) mxlpsolve('set_mip_gap', lp, absolute, mip_gap) mxlpsolve('set_negrange', negrange) return = mxlpsolve('set_obj', lp, column, value) return = mxlpsolve('set_obj', lp, [values]) mxlpsolve('set_obj_bound', lp, obj_bound) return = mxlpsolve('set_obj_fn', lp, [row]) return = mxlpsolve('set_obj_fnex', lp, [row]) return = mxlpsolve('set_outputfile', lp, filename) mxlpsolve('set_pivoting', lp, pivoting) mxlpsolve('set_preferdual', lp, dodual) mxlpsolve('set_presolve', lp, do_presolve {, maxloops}) mxlpsolve('set_print_sol', lp, print_sol) return = mxlpsolve('set_rh', lp, row, value) return = mxlpsolve('set_rh', lp, [values]) return = mxlpsolve('set_rh_range', lp, row, deltavalue) return = mxlpsolve('set_rh_range', lp, [deltavalues]) mxlpsolve('set_rh_vec', lp, [rh]) return = mxlpsolve('set_row', lp, row_no, [row]) return = mxlpsolve('set_rowex', lp, row_no, [row]) return = mxlpsolve('set_row_name', lp, row, name) return = mxlpsolve('set_row_name', lp, [names]) mxlpsolve('set_scalelimit', lp, scalelimit) mxlpsolve('set_scaling', lp, scalemode) return = mxlpsolve('set_semicont', lp, column, must_be_sc) return = mxlpsolve('set_semicont', lp, [must_be_sc]) mxlpsolve('set_sense', lp, maximize) mxlpsolve('set_simplextype', lp, simplextype) mxlpsolve('set_solutionlimit', lp, simplextype) mxlpsolve('set_timeout', lp, sectimeout) mxlpsolve('set_trace', lp, trace) return = mxlpsolve('set_upbo', lp, column, value) return = mxlpsolve('set_upbo', lp, [values]) mxlpsolve('set_use_names', lp, isrow, use_names) return = mxlpsolve('set_var_branch', lp, column, branch_mode) return = mxlpsolve('set_var_branch', lp, [branch_mode]) return = mxlpsolve('set_var_weights', lp, [weights]) mxlpsolve('set_verbose', lp, verbose) return = mxlpsolve('set_XLI', lp, filename) result = mxlpsolve('solve', lp) return = mxlpsolve('time_elapsed', lp) mxlpsolve('unscale', lp) return = mxlpsolve('write_freemps', lp, filename) return = mxlpsolve('write_freeMPS', lp, filename) return = mxlpsolve('write_lp', lp, filename) return = mxlpsolve('write_LP', lp, filename) return = mxlpsolve('write_mps', lp, filename) return = mxlpsolve('write_MPS', lp, filename) return = mxlpsolve('write_params', lp, filename {, options}) return = mxlpsolve('write_XLI', lp, filename {, options {, results}})
0001 % mxlpsolve Mex file interface to the lp_solve 5.5 toolkit. Please see 0002 % reference guide for more information. 0003 % 0004 % mxlpsolve is a low-level interface to the lp_solve toolkit. It may be called 0005 % directly, or may be used to build higher level functions for solving 0006 % various kinds of linear and mixed-integer linear programs. It uses an 0007 % integer handle to point to a linear program. 0008 % 0009 % return = mxlpsolve('add_column', lp, [column]) 0010 % 0011 % return = mxlpsolve('add_columnex', lp, [column]) 0012 % 0013 % return = mxlpsolve('add_constraint', lp, [row], constr_type, rh) 0014 % 0015 % return = mxlpsolve('add_constraintex', lp, [row], constr_type, rh) 0016 % 0017 % return = mxlpsolve('add_SOS', lp, name, sostype, priority, [sosvars], [weights]) 0018 % 0019 % return = mxlpsolve('column_in_lp', lp, [column]) 0020 % 0021 % mxlpsolve('default_basis', lp) 0022 % 0023 % return = mxlpsolve('del_column', lp, column) 0024 % 0025 % return = mxlpsolve('del_constraint', lp, del_row) 0026 % 0027 % lp_handle = mxlpsolve('copy_lp', lp) 0028 % 0029 % mxlpsolve('delete_lp', lp) 0030 % 0031 % mxlpsolve('dualize_lp', lp) 0032 % 0033 % mxlpsolve('free_lp', lp) 0034 % 0035 % return = mxlpsolve('get_anti_degen', lp) 0036 % 0037 % [bascolumn] = mxlpsolve('get_basis', lp {, nonbasic}) 0038 % 0039 % return = mxlpsolve('get_basiscrash', lp) 0040 % 0041 % return = mxlpsolve('get_bb_depthlimit', lp) 0042 % 0043 % return = mxlpsolve('get_bb_floorfirst', lp) 0044 % 0045 % return = mxlpsolve('get_bb_rule', lp) 0046 % 0047 % return = mxlpsolve('get_bounds_tighter', lp) 0048 % 0049 % return = mxlpsolve('get_break_at_value', lp) 0050 % 0051 % name = mxlpsolve('get_col_name', lp, column) 0052 % 0053 % [names] = mxlpsolve('get_col_name', lp) 0054 % 0055 % [column, return] = mxlpsolve('get_column', lp, col_nr) 0056 % 0057 % [column, return] = mxlpsolve('get_columnex', lp, col_nr) 0058 % 0059 % return = mxlpsolve('get_constr_type', lp, row) 0060 % 0061 % return = mxlpsolve('get_constr_value', lp, row {, primsolution}) 0062 % 0063 % [constr_type] = mxlpsolve('get_constr_type', lp) 0064 % 0065 % [constr, return] = mxlpsolve('get_constraints', lp) 0066 % 0067 % [duals, return] = mxlpsolve('get_dual_solution', lp) 0068 % 0069 % return = mxlpsolve('get_epsb', lp) 0070 % 0071 % return = mxlpsolve('get_epsd', lp) 0072 % 0073 % return = mxlpsolve('get_epsel', lp) 0074 % 0075 % return = mxlpsolve('get_epsint', lp) 0076 % 0077 % return = mxlpsolve('get_epsperturb', lp) 0078 % 0079 % return = mxlpsolve('get_epspivot', lp) 0080 % 0081 % lp_handle = mxlpsolve('get_handle', lp_name) 0082 % 0083 % return = mxlpsolve('get_improve', lp) 0084 % 0085 % return = mxlpsolve('get_infinite', lp) 0086 % 0087 % return = mxlpsolve('get_lowbo', lp, column) 0088 % 0089 % [return] = mxlpsolve('get_lowbo', lp) 0090 % 0091 % return = mxlpsolve('get_lp_index', lp, orig_index) 0092 % 0093 % name = mxlpsolve('get_lp_name', lp) 0094 % 0095 % value = mxlpsolve('get_mat', lp, row, col) 0096 % 0097 % [matrix, return] = mxlpsolve('get_mat', lp {, sparse}) 0098 % 0099 % return = mxlpsolve('get_max_level', lp) 0100 % 0101 % return = mxlpsolve('get_maxpivot', lp) 0102 % 0103 % return = mxlpsolve('get_mip_gap', lp, absolute) 0104 % 0105 % return = mxlpsolve('get_nameindex', lp, name, isrow) 0106 % 0107 % return = mxlpsolve('get_Ncolumns', lp) 0108 % 0109 % return = mxlpsolve('get_negrange', lp) 0110 % 0111 % return = mxlpsolve('get_nonzeros', lp) 0112 % 0113 % return = mxlpsolve('get_Norig_columns', lp) 0114 % 0115 % return = mxlpsolve('get_Norig_rows', lp) 0116 % 0117 % return = mxlpsolve('get_Nrows', lp) 0118 % 0119 % return = mxlpsolve('get_obj_bound', lp) 0120 % 0121 % [row_vec, return] = mxlpsolve('get_obj_fn', lp) 0122 % 0123 % [row_vec, return] = mxlpsolve('get_obj_fun', lp) 0124 % 0125 % return = mxlpsolve('get_objective', lp) 0126 % 0127 % name = mxlpsolve('get_objective_name', lp) 0128 % 0129 % return = mxlpsolve('get_orig_index', lp, lp_index) 0130 % 0131 % name = mxlpsolve('get_origcol_name', lp, column) 0132 % 0133 % [names] = mxlpsolve('get_origcol_name', lp) 0134 % 0135 % name = mxlpsolve('get_origrow_name', lp, row) 0136 % 0137 % [names] = mxlpsolve('get_origrow_name', lp) 0138 % 0139 % return = mxlpsolve('get_pivoting', lp) 0140 % 0141 % return = mxlpsolve('get_presolve', lp) 0142 % 0143 % return = mxlpsolve('get_presolveloops', lp) 0144 % 0145 % [pv, return] = mxlpsolve('get_primal_solution', lp) 0146 % 0147 % return = mxlpsolve('get_print_sol', lp) 0148 % 0149 % return = mxlpsolve('get_rh', lp, row) 0150 % 0151 % [rh] = mxlpsolve('get_rh', lp) 0152 % 0153 % return = mxlpsolve('get_rh_range', lp, row) 0154 % 0155 % [rh_ranges] = mxlpsolve('get_rh_range', lp) 0156 % 0157 % [row, return] = mxlpsolve('get_row', lp, row_nr) 0158 % 0159 % [row, return] = mxlpsolve('get_rowex', lp, row_nr) 0160 % 0161 % name = mxlpsolve('get_row_name', lp, row) 0162 % 0163 % [names] = mxlpsolve('get_row_name', lp) 0164 % 0165 % return = mxlpsolve('get_scalelimit', lp) 0166 % 0167 % return = mxlpsolve('get_scaling', lp) 0168 % 0169 % [objfrom, objtill, objfromvalue, objtillvalue, return] = mxlpsolve('get_sensitivity_obj', lp) 0170 % 0171 % [objfrom, objtill, objfromvalue, objtillvalue, return] = mxlpsolve('get_sensitivity_objex', lp) 0172 % 0173 % [duals, dualsfrom, dualstill, return] = mxlpsolve('get_sensitivity_rhs', lp) 0174 % 0175 % [duals, dualsfrom, dualstill, return] = mxlpsolve('get_sensitivity_rhsex', lp) 0176 % 0177 % return = mxlpsolve('get_simplextype', lp) 0178 % 0179 % [obj, x, duals, return] = mxlpsolve('get_solution', lp) 0180 % 0181 % return = mxlpsolve('get_solutioncount', lp) 0182 % 0183 % return = mxlpsolve('get_solutionlimit', lp) 0184 % 0185 % return = mxlpsolve('get_status', lp) 0186 % 0187 % return = mxlpsolve('get_statustext', lp, statuscode) 0188 % 0189 % return = mxlpsolve('get_timeout', lp) 0190 % 0191 % return = mxlpsolve('get_total_iter', lp) 0192 % 0193 % return = mxlpsolve('get_total_nodes', lp) 0194 % 0195 % return = mxlpsolve('get_upbo', lp, column) 0196 % 0197 % [upbo] = mxlpsolve('get_upbo', lp) 0198 % 0199 % return = mxlpsolve('get_var_branch', lp, column) 0200 % 0201 % [var_branch] = mxlpsolve('get_var_branch', lp) 0202 % 0203 % return = mxlpsolve('get_var_dualresult', lp, index) 0204 % 0205 % return = mxlpsolve('get_var_primalresult', lp, index) 0206 % 0207 % return = mxlpsolve('get_var_priority', lp, column) 0208 % 0209 % [var_priority] = mxlpsolve('get_var_priority', lp) 0210 % 0211 % [var, return] = mxlpsolve('get_variables', lp) 0212 % 0213 % return = mxlpsolve('get_verbose', lp) 0214 % 0215 % return = mxlpsolve('get_working_objective', lp) 0216 % 0217 % [bascolumn, return] = mxlpsolve('guess_basis', lp , guessvector) 0218 % 0219 % return = mxlpsolve('has_BFP', lp) 0220 % 0221 % return = mxlpsolve('has_XLI', lp) 0222 % 0223 % return = mxlpsolve('is_add_rowmode', lp) 0224 % 0225 % return = mxlpsolve('is_anti_degen', lp, testmask) 0226 % 0227 % return = mxlpsolve('is_binary', lp, column) 0228 % 0229 % [binary] = mxlpsolve('is_binary', lp) 0230 % 0231 % return = mxlpsolve('is_break_at_first', lp) 0232 % 0233 % return = mxlpsolve('is_constr_type', lp, row, mask) 0234 % 0235 % return = mxlpsolve('is_debug', lp) 0236 % 0237 % return = mxlpsolve('is_feasible', lp, [values] {, threshold}) 0238 % 0239 % return = mxlpsolve('is_free', lp, column) 0240 % 0241 % return = mxlpsolve('is_unbounded', lp, column) 0242 % 0243 % [free] = mxlpsolve('is_free', lp) 0244 % 0245 % [free] = mxlpsolve('is_unbounded', lp) 0246 % 0247 % return = mxlpsolve('is_infinite', lp, value) 0248 % 0249 % return = mxlpsolve('is_int', lp, column) 0250 % 0251 % [int] = mxlpsolve('is_int', lp) 0252 % 0253 % return = mxlpsolve('is_integerscaling', lp) 0254 % 0255 % return = mxlpsolve('is_maxim', lp) 0256 % 0257 % return = mxlpsolve('is_nativeBFP', lp) 0258 % 0259 % return = mxlpsolve('is_nativeXLI', lp) 0260 % 0261 % return = mxlpsolve('is_negative', lp, column) 0262 % 0263 % [negative] = mxlpsolve('is_negative', lp) 0264 % 0265 % return = mxlpsolve('is_piv_mode', lp, testmask) 0266 % 0267 % return = mxlpsolve('is_piv_rule', lp, rule) 0268 % 0269 % return = mxlpsolve('is_presolve', lp, testmask) 0270 % 0271 % return = mxlpsolve('is_scalemode', lp, testmask) 0272 % 0273 % return = mxlpsolve('is_scaletype', lp, scaletype) 0274 % 0275 % return = mxlpsolve('is_semicont', lp, column) 0276 % 0277 % [semicont] = mxlpsolve('is_semicont', lp) 0278 % 0279 % return = mxlpsolve('is_SOS_var', lp, column) 0280 % 0281 % [SOS_var] = mxlpsolve('is_SOS_var', lp) 0282 % 0283 % return = mxlpsolve('is_trace', lp) 0284 % 0285 % return = mxlpsolve('is_use_names', lp, isrow) 0286 % 0287 % versionstring = mxlpsolve('lp_solve_version') 0288 % 0289 % lp_handle = mxlpsolve('make_lp', rows, columns) 0290 % 0291 % mxlpsolve('print_constraints', lp {, columns}) 0292 % 0293 % return = mxlpsolve('print_debugdump', lp, filename) 0294 % 0295 % mxlpsolve('print_duals', lp) 0296 % 0297 % mxlpsolve('print_lp', lp) 0298 % 0299 % mxlpsolve('print_objective', lp) 0300 % 0301 % mxlpsolve('print_scales', lp) 0302 % 0303 % mxlpsolve('print_solution', lp {, columns}) 0304 % 0305 % mxlpsolve('print_str', lp, str) 0306 % 0307 % mxlpsolve('print_tableau', lp) 0308 % 0309 % [handle_vec] = mxlpsolve('print_handle') 0310 % 0311 % lp_handle = mxlpsolve('read_freeMPS', filename {, verbose}) 0312 % 0313 % lp_handle = mxlpsolve('read_lp_file', filename {, verbose {, lp_name}}) 0314 % 0315 % lp_handle = mxlpsolve('read_lp', filename {, verbose {, lp_name}}) 0316 % 0317 % lp_handle = mxlpsolve('read_LP', filename {, verbose {, lp_name}}) 0318 % 0319 % lp_handle = mxlpsolve('read_mps', filename {, verbose}) 0320 % 0321 % lp_handle = mxlpsolve('read_MPS', filename {, verbose}) 0322 % 0323 % return = mxlpsolve('read_params', lp, filename {, options}) 0324 % 0325 % return = mxlpsolve('reset_params', lp) 0326 % 0327 % lp_handle = mxlpsolve('read_XLI', xliname, modelname {, dataname {, options {, verbose}}}) 0328 % 0329 % return = mxlpsolve('set_add_rowmode', lp, turnon) 0330 % 0331 % mxlpsolve('set_anti_degen', lp, anti_degen) 0332 % 0333 % return = mxlpsolve('set_basis', lp, [bascolumn], nonbasic) 0334 % 0335 % mxlpsolve('set_basiscrash', lp, mode) 0336 % 0337 % mxlpsolve('set_basisvar', lp, basisPos, enteringCol) 0338 % 0339 % mxlpsolve('set_bb_depthlimit', lp, bb_maxlevel) 0340 % 0341 % mxlpsolve('set_bb_floorfirst', lp, bb_floorfirst) 0342 % 0343 % mxlpsolve('set_bb_rule', lp, bb_rule) 0344 % 0345 % return = mxlpsolve('set_BFP', lp, filename) 0346 % 0347 % return = mxlpsolve('set_binary', lp, column, must_be_bin) 0348 % 0349 % return = mxlpsolve('set_binary', lp, [must_be_bin]) 0350 % 0351 % return = mxlpsolve('set_bounds', lp, column, lower, upper) 0352 % 0353 % return = mxlpsolve('set_bounds', lp, [lower], [upper]) 0354 % 0355 % mxlpsolve('set_bounds_tighter', lp, tighten) 0356 % 0357 % mxlpsolve('set_break_at_first', lp, break_at_first) 0358 % 0359 % mxlpsolve('set_break_at_value', lp, break_at_value) 0360 % 0361 % return = mxlpsolve('set_col_name', lp, column, name) 0362 % 0363 % return = mxlpsolve('set_col_name', lp, [names]) 0364 % 0365 % return = mxlpsolve('set_column', lp, col_no, [column]) 0366 % 0367 % return = mxlpsolve('set_columnex', lp, col_no, [column]) 0368 % 0369 % return = mxlpsolve('set_constr_type', lp, row, con_type) 0370 % 0371 % return = mxlpsolve('set_constr_type', lp, [con_type]) 0372 % 0373 % mxlpsolve('set_debug', lp, debug) 0374 % 0375 % mxlpsolve('set_epsb', lp, epsb) 0376 % 0377 % mxlpsolve('set_epsd', lp, epsd) 0378 % 0379 % mxlpsolve('set_epsel', lp, epsel) 0380 % 0381 % mxlpsolve('set_epsint', lp, epsint) 0382 % 0383 % mxlpsolve('set_epslevel', lp, epslevel) 0384 % 0385 % mxlpsolve('set_epsperturb', lp, epsperturb) 0386 % 0387 % mxlpsolve('set_epspivot', lp, epspivot) 0388 % 0389 % return = mxlpsolve('set_free', lp, column) 0390 % 0391 % return = mxlpsolve('set_unbounded', lp, column) 0392 % 0393 % mxlpsolve('set_improve', lp, improve) 0394 % 0395 % mxlpsolve('set_infinite', lp, infinite) 0396 % 0397 % return = mxlpsolve('set_int', lp, column, must_be_int) 0398 % 0399 % return = mxlpsolve('set_int', lp, [must_be_int]) 0400 % 0401 % return = mxlpsolve('set_lowbo', lp, column, value) 0402 % 0403 % return = mxlpsolve('set_lowbo', lp, [values]) 0404 % 0405 % return = mxlpsolve('set_lp_name', lp, name) 0406 % 0407 % return = mxlpsolve('set_mat', lp, [matrix]) 0408 % 0409 % return = mxlpsolve('set_mat', lp, row, column, value) 0410 % 0411 % mxlpsolve('set_maxim', lp) 0412 % 0413 % mxlpsolve('set_maxpivot', max_num_inv) 0414 % 0415 % mxlpsolve('set_minim', lp) 0416 % 0417 % mxlpsolve('set_mip_gap', lp, absolute, mip_gap) 0418 % 0419 % mxlpsolve('set_negrange', negrange) 0420 % 0421 % return = mxlpsolve('set_obj', lp, column, value) 0422 % 0423 % return = mxlpsolve('set_obj', lp, [values]) 0424 % 0425 % mxlpsolve('set_obj_bound', lp, obj_bound) 0426 % 0427 % return = mxlpsolve('set_obj_fn', lp, [row]) 0428 % 0429 % return = mxlpsolve('set_obj_fnex', lp, [row]) 0430 % 0431 % return = mxlpsolve('set_outputfile', lp, filename) 0432 % 0433 % mxlpsolve('set_pivoting', lp, pivoting) 0434 % 0435 % mxlpsolve('set_preferdual', lp, dodual) 0436 % 0437 % mxlpsolve('set_presolve', lp, do_presolve {, maxloops}) 0438 % 0439 % mxlpsolve('set_print_sol', lp, print_sol) 0440 % 0441 % return = mxlpsolve('set_rh', lp, row, value) 0442 % 0443 % return = mxlpsolve('set_rh', lp, [values]) 0444 % 0445 % return = mxlpsolve('set_rh_range', lp, row, deltavalue) 0446 % 0447 % return = mxlpsolve('set_rh_range', lp, [deltavalues]) 0448 % 0449 % mxlpsolve('set_rh_vec', lp, [rh]) 0450 % 0451 % return = mxlpsolve('set_row', lp, row_no, [row]) 0452 % 0453 % return = mxlpsolve('set_rowex', lp, row_no, [row]) 0454 % 0455 % return = mxlpsolve('set_row_name', lp, row, name) 0456 % 0457 % return = mxlpsolve('set_row_name', lp, [names]) 0458 % 0459 % mxlpsolve('set_scalelimit', lp, scalelimit) 0460 % 0461 % mxlpsolve('set_scaling', lp, scalemode) 0462 % 0463 % return = mxlpsolve('set_semicont', lp, column, must_be_sc) 0464 % 0465 % return = mxlpsolve('set_semicont', lp, [must_be_sc]) 0466 % 0467 % mxlpsolve('set_sense', lp, maximize) 0468 % 0469 % mxlpsolve('set_simplextype', lp, simplextype) 0470 % 0471 % mxlpsolve('set_solutionlimit', lp, simplextype) 0472 % 0473 % mxlpsolve('set_timeout', lp, sectimeout) 0474 % 0475 % mxlpsolve('set_trace', lp, trace) 0476 % 0477 % return = mxlpsolve('set_upbo', lp, column, value) 0478 % 0479 % return = mxlpsolve('set_upbo', lp, [values]) 0480 % 0481 % mxlpsolve('set_use_names', lp, isrow, use_names) 0482 % 0483 % return = mxlpsolve('set_var_branch', lp, column, branch_mode) 0484 % 0485 % return = mxlpsolve('set_var_branch', lp, [branch_mode]) 0486 % 0487 % return = mxlpsolve('set_var_weights', lp, [weights]) 0488 % 0489 % mxlpsolve('set_verbose', lp, verbose) 0490 % 0491 % return = mxlpsolve('set_XLI', lp, filename) 0492 % 0493 % result = mxlpsolve('solve', lp) 0494 % 0495 % return = mxlpsolve('time_elapsed', lp) 0496 % 0497 % mxlpsolve('unscale', lp) 0498 % 0499 % return = mxlpsolve('write_freemps', lp, filename) 0500 % 0501 % return = mxlpsolve('write_freeMPS', lp, filename) 0502 % 0503 % return = mxlpsolve('write_lp', lp, filename) 0504 % 0505 % return = mxlpsolve('write_LP', lp, filename) 0506 % 0507 % return = mxlpsolve('write_mps', lp, filename) 0508 % 0509 % return = mxlpsolve('write_MPS', lp, filename) 0510 % 0511 % return = mxlpsolve('write_params', lp, filename {, options}) 0512 % 0513 % return = mxlpsolve('write_XLI', lp, filename {, options {, results}}) 0514 % 0515 0516 disp('mxlpsolve driver not found !!!'); 0517 disp('Check if mxlpsolve.dll is on your system and in a directory known to MATLAB.'); 0518 disp('Press enter to see the paths where MATLAB looks for the driver.'); 0519 pause 0520 path 0521 disp('A path can be added via the menu: File, Set Path'); 0522 error('mxlpsolve.dll not found');