view scripts/optimization/glpktest1 @ 16188:8366bc871d45

Allow negative numbers to be used in specifying edit_history commands. * libinterp/interpfcn/oct-hist.cc(mk_tmp_hist_file): Add total number of history commands to negative history numbers to wraparound to positive history number specification. * libinterp/interpfcn/oct-hist.cc(Fedit_history, Frun_history): Update docstrings to describe new behavior. * libinterp/interpfcn/oct-hist.cc(do_edit_history): Comment out first variable to stop unused warning during compilation.
author Rik <rik@octave.org>
date Mon, 04 Mar 2013 08:51:40 -0800
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)