Mercurial > octave-nkf
view scripts/optimization/glpktest1 @ 20581:e368ce72a844
maint: Use Octave coding conventions for ode* functions.
Use '!' instead of '~' for logical not.
Use '##' only for comments which standalone on a line.
Use double quotes instead of single quotes where possible.
Wrap long lines to < 80 characters.
* ode45.m, odeget.m, odeset.m: Use Octave coding conventions.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 03 Oct 2015 22:10:45 -0700 |
parents | 652e8aa49fa7 |
children |
line wrap: on
line source
clear; disp('1st problem'); s=-1; c=[10,6,4]'; a=[1,1,1;... 10,4,5;... 2,2,6]; b=[100,600,300]'; ctype=['U','U','U']'; lb=[0,0,0]'; ub=[]'; vartype=['C','C','C']'; param.msglev=3; param.lpsolver=1; param.save=1; [xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s,param) lpsolver = param.lpsolver; save_pb = param.save; [xmin,fmin,status,extra]=glpkmex(s,c,a,b,ctype,lb,ub,vartype,param,lpsolver,save_pb)