[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#350230: octave2.9: script that triggers bug



Package: octave2.9
Version: 2.9.4-11
Followup-For: Bug #350230

this script triggers the bug

======================
c=[-2;-1]
b=[5;7;12;8]
A=[1 1;1 0;3 1;1 2]
As=sparse(A)

printf('\n%s\n', 'Solution should be x=[3.5; 1.5], and the cost is -8.5');

## Works
x = glpk(c, A, b, zeros(size(c,1),1), [], (char('U'*ones(1,size(b,1)))))
c' * x

## Fails
xs = glpk(c, As, b, zeros(size(c,1),1), [], (char('U'*ones(1,size(b,1)))))
c' * xs
======================


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-486
Locale: LANG=en_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)

Versions of packages octave2.9 depends on:
ii  atlas3-base [liblapack.so.3]  3.6.0-20   Automatically Tuned Linear Algebra
ii  fftw3                         3.0.1-14   library for computing Fast Fourier
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-7  GCC support library
ii  libgfortran0                  4.0.2-7    Runtime library for GNU Fortran ap
ii  libglpk0                      4.8-3      linear programming kit (shared lib
ii  libhdf5-serial-1.6.4-0c2 [lib 1.6.4-4    Hierarchical Data Format 5 (HDF5) 
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libreadline5                  5.1-5      GNU readline and history libraries
ii  libstdc++6                    4.0.2-7    The GNU Standard C++ Library v3
ii  libumfpack4                   4.4-3      set of routines for solving unsymm
ii  texinfo                       4.8-4      Documentation system for on-line i
ii  zlib1g                        1:1.2.3-9  compression library - runtime

octave2.9 recommends no packages.

-- no debconf information




Reply to: