Mercurial > octave-nkf
annotate scripts/optimization/glpktest1 @ 20614:10ec79b47808
use new string_value method to handle value extraction errors
* __voronoi__.cc, chol.cc, colamd.cc, fftw.cc:
Use new string_value method.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 08 Oct 2015 18:15:56 -0400 |
parents | 652e8aa49fa7 |
children |
rev | line source |
---|---|
5237 | 1 clear; |
2 | |
3 disp('1st problem'); | |
4 s=-1; | |
5 c=[10,6,4]'; | |
6 a=[1,1,1;... | |
7 10,4,5;... | |
8 2,2,6]; | |
9 b=[100,600,300]'; | |
10 ctype=['U','U','U']'; | |
11 lb=[0,0,0]'; | |
12 ub=[]'; | |
13 vartype=['C','C','C']'; | |
14 param.msglev=3; | |
15 param.lpsolver=1; | |
16 param.save=1; | |
17 [xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s,param) | |
18 lpsolver = param.lpsolver; | |
19 save_pb = param.save; | |
20 [xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype,param,lpsolver,save_pb) |