⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glpktest2.m

📁 This routine calls the glpk library to solve a LP/MIP problem. A typical LP problem has following s
💻 M
字号:
clear;disp('2nd problem');s=1;c=[-1,-1]';a=[-2,5;2,-2];b=[5;1];ctype=['U','U']';lb=[0;0]; ub=[];vartype=['I';'I'];param.msglev=1;[xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype,param)pause;disp('3rd problem');s=1;c=[0 0 0 -1 -1]';a=[-2 0 0 1 0;...    0 1 0 0 2;...    0 0 1 3 2];b=[4 12 18]';ctype=['S','S','S']';lb=[0,0,0,0,0]'; ub=[];vartype=['C','C','C','C','C']';[xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -