Mercurial > hg > octave-lyh
annotate scripts/optimization/glpktest2 @ 16505:ff061068a66c
move dialog files to separate directory
* scripts/ui/errordlg.m, scripts/ui/helpdlg.m, scripts/ui/inputdlg.m,
scripts/ui/listdlg.m, scripts/ui/msgbox.m, scripts/ui/questdlg.m,
scripts/ui/warndlg.m: Move here from scripts/java.
* scripts/java/module.mk (java_FCN_FILES): Update list.
* scripts/ui/module.mk: New file.
* scripts/Makefile.am: Include it.
(ui/PKG_ADD, $(ui_GEN_FCN_FILES), ui/$(octave_dirstamp)): New targets.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 12 Apr 2013 14:51:51 -0400 |
parents | 652e8aa49fa7 |
children |
rev | line source |
---|---|
5232 | 1 clear; |
2 | |
3 disp('2nd problem'); | |
4 s=1; | |
5 c=[-1,-1]'; | |
6 a=[-2,5;2,-2]; | |
7 b=[5;1]; | |
8 ctype=['U','U']'; | |
9 lb=[0;0]; ub=[]; | |
10 vartype=['I';'I']; | |
11 param.msglev=1; | |
5237 | 12 [xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s,param) |
13 [xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype,param) | |
5232 | 14 pause; |
15 | |
16 disp('3rd problem'); | |
17 s=1; | |
18 c=[0 0 0 -1 -1]'; | |
19 a=[-2 0 0 1 0;... | |
20 0 1 0 0 2;... | |
21 0 0 1 3 2]; | |
22 b=[4 12 18]'; | |
23 ctype=['S','S','S']'; | |
24 lb=[0,0,0,0,0]'; ub=[]; | |
25 vartype=['C','C','C','C','C']'; | |
5237 | 26 [xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s) |
27 [xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype) |