summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSerge Steer <serge.steer@scilab.org>2007-06-25 09:51:09 +0000
committerSerge Steer <serge.steer@scilab.org>2007-06-25 09:51:09 +0000
commit33ac9be1a00ba63547b34f328ff1e8aa06640d3d (patch)
tree44a803ba217d5548a28d2fa57cfbf7ec54ecfabc /tests
parent9c1fde3e06542eba0ec8293f298658e51c1fbdb6 (diff)
downloadscilab-33ac9be1a00ba63547b34f328ff1e8aa06640d3d.zip
scilab-33ac9be1a00ba63547b34f328ff1e8aa06640d3d.tar.gz
bug 2435 fix
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2435.sci19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2435.sci b/tests/nonRegression/bug2435.sci
new file mode 100644
index 0000000..f78eee1
--- /dev/null
+++ b/tests/nonRegression/bug2435.sci
@@ -0,0 +1,19 @@
1// Scilab Project - Serge Steer
2// Copyright INRIA 2007
3// Date : June 2007
4
5mode(-1) ;
6clear ;
7BugNumber=2435;
8
9function [f,g,ind]=cost(x,ind)
10 xref=[1;2;3];
11 f=0.5*norm(x-xref)^2
12 g=x-xref;
13endfunction
14
15x0=[1;-1;1];
16T=execstr('[f,xopt]=optim(cost,,''b'',-2*ones(x0),2*ones(x0),x0);','errcatch')==54
17
18affich_result(T,BugNumber) ;
19clear ;