Mercurial > hg > octave-lyh
annotate scripts/optimization/glpktest2 @ 17204:bc20614022aa
build: Redo LLVM macros to disable JIT rather than stop build if headers not found.
* configure.ac: Move functionality for OCTAVE_LLVM_IR_DIR,
OCTAVE_LLVM_IRBUILDER_HEADER, OCTAVE_LLVM_DATALAYOUT_HEADER macros
from acinclude.m4 to configure.ac.
* m4/acinclude.m4: Delete OCTAVE_LLVM_IR_DIR, OCTAVE_LLVM_IRBUILDER_HEADER,
OCTAVE_LLVM_DATALAYOUT_HEADER macros. Eliminate unnecessary else clause of
OCTAVE_LLVM_FUNCTION_ADDATTRIBUTE_API, OCTAVE_LLVM_FUNCTION_ADDFNATTR_API,
OTAVE_LLVM_CALLINST_ADDATTRIBUTE_API macros.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 07 Aug 2013 12:03:31 -0700 |
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) |