lp_info.m
来自「matlab6 lpmex matlab6 lpmexma tlab6 lpme」· M 代码 · 共 45 行
M
45 行
%LP_INFO Returnes information of mixed integer linear programming problems.%% SYNOPSIS: [valid_handle,obj,x,duals,basis] = lp_info(lp_handle,solution,basis,lp,scale)%% ARGUMENTS: %% lp_handle: integer handle pointing to LP problem.% solution: flag for returning the solution of the LP problem.% lp: flag for printing the LP problem.% basis: flag for returning the basis of the LP problem.% scale: flag for printing the scales of the LP problem.%% OUTPUT: %% valid_handle: array of integer handle to the lp created.% obj: Optimal value of the objective function.% x: Optimal value of the decision variables.% duals: solution of the dual problem.% basis: basis of the lp problem.%% Copyright (c) 1995 by Jeffrey C. Kantor. All rights reserved.%% Email: jeff@control.cheg.nd.edu% cchen@darwin.cc.nd.edufunction [valid_handle,obj,x,duals,basis] = lp_info(lp_handle,solution,basis,lp,scale)[valid_handle] = lpmex('print_handle');if nargin > 1 [obj,x,duals] = lpmex('get_solution', lp_handle);endif nargin > 2 [basis] = lpmex('get_basis', lp_handle);endif nargin > 3 lpmex('print_lp', lp_handle);endif nargin > 4 lpmex('print_scales', lp_handle);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?