Re: [Scilab-users] Cannot run Coselica in windows 7?

2018-01-16 Thread Paul Bignier

Hello baloo,


This bug has been reported<http://bugzilla.scilab.org/show_bug.cgi?id=15010> & 
fixed, Coselica will be available in the next scilab release.

If you want a nightly build you may download one on our 
Jenkins<https://build.scilab.org/job/scilab-6.0-windows-64/3654> (link is for 
Windows 64).


Best regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of baloo 
<shashank.th...@gmail.com>
Sent: Friday, January 12, 2018 1:08 PM
To: users@lists.scilab.org
Subject: [Scilab-users] Cannot run Coselica in windows 7?

Hello,

i m not sure if i can post this i did not get any confirmation  from the
mailing list.
I am trying to run the example of coselica in Xcos i am getting a error
which says something like

à la ligne 1 du texte exécuté
à la ligne58 de la fonctionloadXcosLibs ( C:\Program
Files\scilab-6.0.0\modules\xcos\macros\loadXcosLibs.sci ligne 73 )

Impossible de redéfinir la primitive scicos_scicoslib de cette manière (voir
clearfun).
csvRead :
C:\Users\SHASHA~1.THA\AppData\Roaming\Scilab\SCILAB~1.0\atoms\x64\coselica\06DFEA~1.5\macros\Utils..\..\etc\messages.csv
n'existe pas.

 do_eval : Erreur à l'appel du bloc CMPJ_ActuatedRevolute
[uid='5b41ef5:133698f02c7:-7fde']: paramètre invalide (ier=999.000
 000, %scicos_prob=%F).

And this are the message which i get when i load SciLab

Initialisation :
  Chargement de l'environnement de travail

Start iodelay toolbox
Load macros
Load help
Load demos

Start COSELICA module
Load macros
Load palette: Coselica - Blocks
Load palette: Coselica - Electrical
Load palette: Coselica - Heat transfer
Load palette: Coselica - Mechanics/Translational
Load palette: Coselica - Mechanics/Rotational
Load palette: Coselica - Mechanics/Planar
Load palette: Coselica - Components
Load help
Load demos
Load Modelica Equations
Coselica Version: 0.6.4
Start CPGE - Xcos toolbox
Load macros
Load palette - CPGE - Standard blocks
Load help
Load demos
CPGE Version: 1.6.0
Mingw Compiler support for Scilab
Load macros
Load help

Am i doing something wrong cause when i look at the programs I already have
microsoft visual c++.

Thank you,
Best regards





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] The numderivative function

2017-11-20 Thread Paul Bignier

Hello Hermes,


If you're using Scilab 6.0.0 the function numderivative is in the 
differential_equations module so you should use:

  exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1);


If you want your script to be compatible with both versions you can add:

  v = getversion("scilab");

  if v(1)<6 then

exec(SCI+"\modules\optimization\macros\numderivative.sci", -1);

  else

exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1);

  end


Best regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Hermes 
<herozi...@gmail.com>
Sent: Monday, November 20, 2017 10:50 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] The numderivative function

Hi,
When I execute the command:
exec(SCI+"/modules/optimization/macros/numderivative.sci",-1);

I get the following Scilab alert:

exec('C:\Draghilev''sMethod_4.sce', -1)
at line14 of executed file C:\Draghilev'sMethod_4.sce
at line   -15 of executed file C:\Draghilev'sMethod_4C.sce

exec: Cannot open file
C:\PROGRA~1\SCILAB~1.0\modules\optimization\macros\numderivative.sci.

the command is inserted in the script before calling the fumciont ode.
it is right?
Gracias



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Trouble implementing "generic_block3"

2017-11-19 Thread Paul Bignier

Hi Luke,


Could you please report this to the bugzilla<http://bugzilla.scilab.org>?

Uploading the files & giving us more context info such as your OS, Scilab 
version or your installed toolboxes.

Thanks & kind regards,


Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Luke Juniper 
<lukejuni...@gmail.com>
Sent: Sunday, November 19, 2017 11:40 AM
To: users@lists.scilab.org
Subject: [Scilab-users] Trouble implementing "generic_block3"

Having trouble implementing "generic_block3" in Scilab/XCOS V.6.0.0.

After submitting the simulation in XCOS, I get the error message "the block 1 
has been called with input out of its domain".

Relevant files attached.

Any help appreciated.

Regards,
Luke.

[cid:ii_ja6mq1890_15fd3db99dcdcd0b]
[cid:ii_ja6mrrwa2_15fd3dcd62715ca8]

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] CMSCOPE Xcos

2017-11-17 Thread Paul Bignier

Hello Simone,

Could you please report this on our 
bugzilla<http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software>, 
with the Wishlist tag?

Thanks a lot, kind regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of SIMONE DECATALDO 
<simone.decata...@studenti.unipr.it>
Sent: Friday, November 17, 2017 12:27 PM
To: users@lists.scilab.org
Subject: [Scilab-users] CMSCOPE Xcos

Good morning, I contact you since I need an help with CMSCOPE of XCOS. When I 
execute my diagram, I obtain my figures. Now I want rename axis title: I make 
this by FIGURE PROPERTY or AXIS PROPERTY, but this is a momentary modification, 
in fact, if I run again my diagram, figures mantain their default title. Thank 
you for your collaboration.
Simone Decataldo
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Scilab 5.5.2 on macOS High Sierra

2017-11-10 Thread Paul Bignier

Hello Mac users,


As Scilab 5.5.2 requires a Java 1.5 install, we need to make it think it has 
one.

Here are steps to run Scilab 5.5.2 on High Sierra:


  *   open a terminal (found in Applications -> Utilities -> Terminal)

  *   note the path returned by:

  *   /usr/libexec/java_home

  *   in my case it returns 
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home so in the 
following commands, replace it with your path. Run the following commands 
(you'll need sudo rights):

  *   sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/ 
/System/Library/Frameworks/JavaVM.framework/Versions/1.5 # Make Java 1.5 point 
to our install

  *   sudo mkdir -p /bundle/Libraries

  *   sudo ln -s 
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/server/libjvm.dylib
 /bundle/Libraries/libserver.dylib # Make the requested libserver.dylib file 
point to our libjvm.dylib

  *   if you get 'Operation not permitted' errors then please consult 
http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x
 to bypass macOS protections

  *   at Scilab startup, click on Try Anyway when asked about the macOS version

  *   if you're asked for Java6, follow the steps described at 
http://www.scilab.org/en/download/latest

Regarding Scilab 6, it is recommended to wait for the next Scilab release which 
simplifies the launch on High Sierra. Otherwise you may refer to 
http://bugzilla.scilab.org/show_bug.cgi?id=15307 for a workaround.

Best regards,
Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Create new XCOS Blocks

2017-10-31 Thread Paul Bignier

Hello Abhinav,


Do you know about Coselica<https://atoms.scilab.org/toolboxes/coselica/0.6.5>?

As it's not working great on Scilab 6.0.0, either you could wait for the next 
Scilab version or I could send you a working nightly build if you sent me your 
operating system.


Regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Abhinav Dronamraju 
<abhinav.dronamr...@gmail.com>
Sent: Tuesday, October 31, 2017 12:43 PM
To: users@lists.scilab.org; Clément David
Subject: [Scilab-users] Create new XCOS Blocks

Dear All,

We are trying to create new blocks for the analysis of Power Systems. So, we'll 
need some new blocks such as Bus, Generator, Line Parameters etc.,

Is there anything we could refer to get started on it ?
Please let us know, so that we can build something useful for many people.

Regards,
Abhinav Dronamraju
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues

2017-10-04 Thread Paul Bignier

We're having trouble at the moment uploading the nightly builds, you may find 
some uploaded versions at http://downloadarea.scilab.org

Regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Yves Rambi 
<yves.rambinint...@gmail.com>
Sent: Wednesday, October 4, 2017 9:25 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming 
issues

Hello Paul,
I submitted both issues to Bugzilla.

For the nightly builds, the links seem to be dead. I always get "Error 404"
by clicking on the target links to the *.exe file.

Regards,

Yves



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1

2017-10-03 Thread Paul Bignier

Sorry, I meant "to our 
bugzilla<http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software>"!

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com


____
From: Paul Bignier
Sent: Tuesday, October 3, 2017 2:07 PM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] XCOS crashes when period of cscope made smaller 
than 0.1


Hello rusty,
Could you please report this issue to our ?
Thanks a lot for your contribution!
Regards,
Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of rusty148 
<rsthakur...@gmail.com>
Sent: Tuesday, October 3, 2017 5:46 AM
To: users@lists.scilab.org
Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1

Hello, I am trying to simulate PID in xcos using an user defined function.

Here is my function

function [y]= tito(a)
y(1)=a(1)+a(2);

endfunction

And the layout is depicted in the picture attached
<http://mailinglists.scilab.org/file/t497659/pid.jpg>
Whenever I am making the period in xcos smaller than 0.1 it run for few
second and then crashes.

The eroor log generated reads:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x84ab9916,
pid=2024, tid=1600
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build
1.8.0_40-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode
windows-amd64 compressed oops)
# Problematic frame:
# C  0x84ab9916
#
# Failed to write core dump. Minidumps are not enabled by default on client
versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---  T H R E A D  ---

Current thread (0x72e89800):  JavaThread "AWT-EventQueue-0"
[_thread_in_native, id=1600, stack(0x7b9b,0x7d84)]

siginfo: ExceptionCode=0xc005, reading address 0xb2734180

Registers:
RAX=0xacb45cd0, RBX=0x661b, RCX=0x8b1501d8,
RDX=0x83d1
RSP=0x7d83cda0, RBP=0x006900fc, RSI=0x,
RDI=0x0001
R8 =0x000b, R9 =0x000b, R10=0x8b1501d8,
R11=0xb2734180
R12=0x8b1501d8, R13=0x8a6300b8, R14=0x8b1501d8,
R15=0x000c

and it continues.


Please help me in this regard.

Thanks



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1

2017-10-03 Thread Paul Bignier

Hello rusty,
Could you please report this issue to our ?
Thanks a lot for your contribution!
Regards,
Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of rusty148 
<rsthakur...@gmail.com>
Sent: Tuesday, October 3, 2017 5:46 AM
To: users@lists.scilab.org
Subject: [Scilab-users] XCOS crashes when period of cscope made smaller than 0.1

Hello, I am trying to simulate PID in xcos using an user defined function.

Here is my function

function [y]= tito(a)
y(1)=a(1)+a(2);

endfunction

And the layout is depicted in the picture attached
<http://mailinglists.scilab.org/file/t497659/pid.jpg>
Whenever I am making the period in xcos smaller than 0.1 it run for few
second and then crashes.

The eroor log generated reads:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x84ab9916,
pid=2024, tid=1600
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build
1.8.0_40-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode
windows-amd64 compressed oops)
# Problematic frame:
# C  0x84ab9916
#
# Failed to write core dump. Minidumps are not enabled by default on client
versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---  T H R E A D  ---

Current thread (0x72e89800):  JavaThread "AWT-EventQueue-0"
[_thread_in_native, id=1600, stack(0x7b9b,0x7d84)]

siginfo: ExceptionCode=0xc005, reading address 0xb2734180

Registers:
RAX=0xacb45cd0, RBX=0x661b, RCX=0x8b1501d8,
RDX=0x83d1
RSP=0x7d83cda0, RBP=0x006900fc, RSI=0x,
RDI=0x0001
R8 =0x000b, R9 =0x000b, R10=0x8b1501d8,
R11=0xb2734180
R12=0x8b1501d8, R13=0x8a6300b8, R14=0x8b1501d8,
R15=0x000c

and it continues.


Please help me in this regard.

Thanks



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues

2017-10-03 Thread Paul Bignier

Hello Yves,

Could you please report this issue to our 
Bugzilla<http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software>?

You may also try with our latest nightly 
builds<http://www.scilab.org/en/development/nightly_builds>.

Thanks a lot for your contribution!

Regards,

Paul



Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Yves Rambi 
<yves.rambinint...@gmail.com>
Sent: Tuesday, October 3, 2017 10:22 AM
To: users@lists.scilab.org
Subject: [Scilab-users] Scilab/xcos 6.0.0 - Superblock and port naming issues

Hello,
I am using Scilab on both OS
- MS Windows (6.0.0)
- Linux (5.5.0)

For the Windows version I have following issues with Xcos:
*Issue 1: Wrong port number*
- I create a Superblock
- In the Superblock I add an input or an output port
- An error message appears stating "Evaluation porblem: Wrong port number"
and the number of the  new port doesnt increment but stays by "1" (It's the
same for outputs)
<http://mailinglists.scilab.org/file/t497169/Superblock_Port_Insert_Failure_2.png>

*Issue 2: Port/Block name disappear*
- When I give a port a name through "format" ...(Strg+F2) and close the
window the port names don't appear in the upper level
<http://mailinglists.scilab.org/file/t497169/Superblock_Port_Naming.png>

<http://mailinglists.scilab.org/file/t497169/Superblock_After_Port_Naming.png>


Both issues don't appear on Linux version (5.5.0).

Is there a workaround or are there some special settings I miss here?



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Nightly builds outdated

2017-09-26 Thread Paul Bignier

Hi Wolfgang,

We are experiencing trouble with the automated build & upload chain but working 
to fix it.

Regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of SCHULZ Wolfgang 
<w.sch...@ove.at>
Sent: Tuesday, September 26, 2017 9:36 AM
To: Users mailing list for Scilab
Subject: [Scilab-users] Nightly builds outdated


Hello,

is there any reason why the nightly builds are totally outdated?

Thanks

Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] This version of Scilab will probably fail on this system (10.13)

2017-09-23 Thread Paul Bignier

Looks like there was a libz update, you may refer to 
http://gnucash.1415818.n4.nabble.com/2-6-17-for-MacOS-X-td4692832.html to 
replace the libz* files in 
/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/ by the ones in 
/usr/lib/, it looks like it went from 1.2.3 to 1.2.4 or 1.2.8.


Regards,

Paul



Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Heinz Nabielek 
<heinznabie...@icloud.com>
Sent: Saturday, September 23, 2017 9:15 PM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] This version of Scilab will probably fail on this 
system (10.13)

This does not work either. Below messages...What can we do now?
Heinz

Heinzs-iMac:~ heinznabielek$
/Applications/scilab-6.0.0.app/Contents/MacOS/bin/scilab
true
dyld: Symbol not found: _inflateValidate
  Referenced from:
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in:
/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libz.1.dylib
 in
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
/Applications/scilab-6.0.0.app/Contents/MacOS/bin/scilab: line 957:   945
Abort trap: 6   "$SCILABBIN" "$@"

On 21.09.2017, at 15:00, Paul Bignier <paul.bign...@esi-group.com> wrote:


Hi Heinz,

As the error seems to be related to libBLAS, as it was for Scilab 5, here's
a link to a discussion with a fix that may help:
http://mailinglists.scilab.org/Scilab-users-macOS-Sierra-Scilab-not-working-yet-td4034586.html
Please get back to us with your results!

Regards,
Paul



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] This version of Scilab will probably fail on this system (10.13)

2017-09-21 Thread Paul Bignier

Hi Heinz,


As the error seems to be related to libBLAS, as it was for Scilab 5, here's a 
link to a discussion with a fix that may help:

http://mailinglists.scilab.org/Scilab-users-macOS-Sierra-Scilab-not-working-yet-td4034586.html

Please get back to us with your results!


Regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: Heinz Nabielek <heinznabie...@me.com>
Sent: Thursday, September 21, 2017 11:18 AM
To: Users mailing list for Scilab
Subject: Re: [Scilab-users] This version of Scilab will probably fail on this 
system (10.13)

Thanks, Paul. I had recently updated my iMac from Mac OS 10.12 to Mac OS 10.13 
and then Scilab 6.0 (nor Scilab 5.5.2) did not work any more.

Yes: I clicked the "Try anyway" button, but this had no effect.

AND
/bin/scilab: No such file or directory !

> Heinzs-iMac:~ heinznabielek$ /bin/scilab
> -bash: /bin/scilab: No such file or directory

However, /Applications/scilab-6.0.0.app/Contents/MacOS/bin/scilab starts with 
the "Try anyway" window and an error message
true
dyld: Symbol not found: _double_general_add
  Referenced from: 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
  Expected in: 
/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib
 in 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
/Applications/scilab-6.0.0.app/Contents/MacOS/bin/scilab: line 957:  1470 Abort 
trap: 6   "$SCILABBIN" "$@"

Where do we go from here?
Heinz



> On 19.09.2017, at 09:25, Paul Bignier <paul.bign...@esi-group.com> wrote:
>
>
> Hello Heinz,
>
> I don't know why version 10.13 is detected but you should have a "Try anyway" 
> button is that message window, did you try it?
> If it doesn't work, can you please try to run Scilab from a terminal (command 
> 'bin/scilab') and send me the return?
> Which Scilab version are you running, and what MacOS version please?
>
> Regards,
> Paul
>
> Paul BIGNIER
> Development engineer
> ---
> ESI Group - Scilab
> 99 rue des Solets - 94513 Rungis, France
> Phone: +33.1.41.73.58.77
> https://scilab.io
> https://esi-group.com
>
>
> From: users <users-boun...@lists.scilab.org> on behalf of Heinz Nabielek 
> <heinznabie...@icloud.com>
> Sent: Monday, September 18, 2017 11:45 PM
> To: users@lists.scilab.org
> Subject: [Scilab-users] This version of Scilab will probably fail on this 
> system (10.13)
>
> >>This version of Scilab will probably fail on this system (10.13): Scilab
> requires 10.8.3 (Mountain Lion) or newer system.
>
> It has failed. What can I do? I have not Mac OS X 10.13 in my iMac
> Heinz
>
>
>
> --
> Sent from: 
> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] This version of Scilab will probably fail on this system (10.13)

2017-09-19 Thread Paul Bignier

Hello Heinz,


I don't know why version 10.13 is detected but you should have a "Try anyway" 
button is that message window, did you try it?

If it doesn't work, can you please try to run Scilab from a terminal (command 
'bin/scilab') and send me the return?

Which Scilab version are you running, and what MacOS version please?


Regards,

Paul


Paul BIGNIER
Development engineer
---
ESI Group - Scilab
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
https://scilab.io
https://esi-group.com



From: users <users-boun...@lists.scilab.org> on behalf of Heinz Nabielek 
<heinznabie...@icloud.com>
Sent: Monday, September 18, 2017 11:45 PM
To: users@lists.scilab.org
Subject: [Scilab-users] This version of Scilab will probably fail on this 
system (10.13)

>>This version of Scilab will probably fail on this system (10.13): Scilab
requires 10.8.3 (Mountain Lion) or newer system.

It has failed. What can I do? I have not Mac OS X 10.13 in my iMac
Heinz



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Websites are coming

2017-08-07 Thread Paul Bignier


Dear users,

As some of you have already noticed, a few of our websites are down 
(notably ATOMS & help).

Rest assured we are mobilised to solve the issue as quickly as possible!
We will post here again once everything is back in order.

Best regards,
The Scilab Team

--
Paul BIGNIER
Development engineer
---
ESI Group
99 rue des Solets - 94513 Rungis, France
Phone: +33.1.41.73.58.77
http://scilab.io
https://esi-group.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller

2017-04-10 Thread paul . bignier


Hello Gnu,

To run Xcos demos containing Modelica (/Coselica) blocks, you need a C 
compiler, as your message title suggests.
Please refer to the compilers page 
(https://help.scilab.org/docs/6.0.0/en_US/supported_compilers.html) for 
that.


Alternatively, you may try with Scilab 5.5.2 and even report a bug 
(http://bugzilla.scilab.org) should you encounter unexpected behavior.


Hope this helps, regards,
Paul

On 2017-04-09 13:39, gnu wrote:

Dear Paul ,

What should I do if I can't run the Modelica demos 
(Demos->Xcos->Electrical

systems)?

Thanks gnu



--
View this message in context:
http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4036158.html
Sent from the Scilab users - Mailing Lists Archives mailing list
archive at Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] non linear optim

2017-04-07 Thread paul . bignier


Hello David,
As the documentation examples work, I can't do much of this info unless 
I get a reproducible use-case.

Maybe you could send us a minimalistic failing example?
Also, could you please fill a bug for this so we can fix it for Scilab 
6.0.1?

Thanks and regards,
Paul

On 2017-04-04 16:11, David Chèze wrote:

Hi all,

I worked further on this issue and found that it's new (unwanted) 
behavior
in scilab 6 since the script performs well when run under scilab 5.5.1 
on

the same machine WIN7_64bits.
In scilab 6 it fails with the error message : User function 'costf' 
have not

been setted.

while in scilab 5.5.1:

[fopt, xopt]=leastsq(iprint,evaloptiM1D,x0')

* enters -qn code- (without bound cstr)
dimension= 2, epsq=  0.2220446049250313E-15, verbosity level:
imp=
2
max number of iterations allowed: iter=   100
max number of calls to costf allowed: nap=   100

 iter num1, nb calls=   1, f= 0.4607E+05
 iter num2, nb calls=   3, f= 0.2185E+05
 iter num3, nb calls=   6, f= 0.2138E+05
 iter num4, nb calls=   7, f= 0.2130E+05
 iter num5, nb calls=   8, f= 0.2128E+05
 iter num6, nb calls=   9, f= 0.2128E+05
 iter num7, nb calls=  10, f= 0.2128E+05
 iter num8, nb calls=  11, f= 0.2128E+05
 iter num9, nb calls=  12, f= 0.2128E+05
 iter num   10, nb calls=  13, f= 0.2128E+05
 iter num   11, nb calls=  14, f= 0.2128E+05
 iter num   11, nb calls=  22, f= 0.2128E+05
* leaves -qn code-, gradient norm=  0.4410737793778105E-02
Fin de l'optimisation.

 xopt  =

1.22132570.7702730
 fopt  =

21284.818


Then I guess it's not a limitation in the algorithm itself but rather
something at the interface that has changed in scilab 6, also because 
the
message is issued early in the execution , about 1 s after launching 
the
script while the successful optimization requires at least 10-20s: 
probably

there's only or not even one full iteration performed before it issues
escape message in scilab 6 .
 I can't provide the detail of the function to optimize however I could
provide you with more detailed log from execution.

Regards,

David






--
View this message in context:
http://mailinglists.scilab.org/non-linear-optim-tp4035880p4036141.html
Sent from the Scilab users - Mailing Lists Archives mailing list
archive at Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] non linear optim

2017-03-20 Thread Paul Bignier


Hello David,

Do the examples <https://help.scilab.org/docs/6.0.0/en_US/leastsq.html> 
work? I need to know if the problem is related to your scripts or leastsq.
Could you please reduce to a minimal reproducible use-case and report it 
on the bugzilla <http://bugzilla.scilab.org>?


Regards,
Paul

On 03/20/2017 11:48 AM, David Chèze wrote:

Hi,

I'm running scilab 6.0 on WIN7_64 and I failed to run optimisation based on
'optim' functions (leastsq) while fminsearch performed well. The call in my
code are summarized below :

-
function RMSE=evaloptiM1D(X)
... calls to other macros to calculate the "cost"=RMSE returned value
endfunction

x0= [1.27 ; 0.8]

[fopt, xopt]=leastsq(evaloptiM1D,x0)   //fail

[x, fval]=fminsearch(evaloptiM1D,x0',opt)  //run ok


--
fminsearch returns successfully X = 1.22 0.77
while
leastsq starts then fails with :

User function 'costf' have not been setted.

Any idea about what it means and where it could comes from ?

Thanks for your advice


David
  





--
View this message in context: 
http://mailinglists.scilab.org/non-linear-optim-tp4035880.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab GUI 6 crash

2017-03-20 Thread Paul Bignier


Hello Michael,

It works just fine on my system, could you please tell us more about 
your config (OS / other installed toolboxes / result of '-->jre_path()' )?


Regards,
Paul

On 03/16/2017 11:14 AM, Michael Benguigui wrote:

jimport java.lang.ProcessBuilder;
jimport java.util.ArrayList;
cmd = ArrayList.new();
jinvoke(cmd,'add','echo')
jinvoke(cmd,'add','''''')
pb = ProcessBuilder.new(cmd);
jinvoke(pb,'start')
disp('BEFORE...');
evstr('1+1;');
disp('...AFTER');


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOS: Java 8 or Java 6?

2017-03-13 Thread Paul Bignier


Hello Jerry,

As some mentioned on this blog 
<https://oliverdowling.com.au/2015/10/09/oracles-jre-8-on-mac-os-x-el-capitan/>, 
we are facing issues of Mac requiring Java 6 legacy code (other 
platforms don't suffer from that).
At the end of the paper a workaround is proposed, should you not wish to 
install Java 6.


Regards,
Paul

On 03/09/2017 01:03 AM, list_em...@icloud.com wrote:

The listed requirements for SciLab on macOS includes Java 8. However, when I 
launch SciLab 6.0.0 on macOS 10.11 (El Capitan), I am directed to download Java 
6, a legacy version. What is going on?

Jerry

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos block label is deleted when block is part of a subsystem

2017-02-24 Thread Paul Bignier


Hello Nils,

I filed a bug for your report, we're looking into it, turns out the 
labels don't work for simple blocks either!


Thanks your your feedback,
Regards,
Paul

On 11/08/2016 10:15 AM, nils.leimb...@dlr.de wrote:


Hello!

I have stumbled upon the problem. A block label in Xcos will be 
deleted, if it is part of a subsystem (inside a superblock) and 
altered outside of Xcos.


The label data is stored in block.graphics.id (inside of the 
respective subsystem of a superblock; so superblock.model.rpar). When 
I alter the content of that field, or even pull the scs_m data from 
Xcos and try to reopen / reload it using the xcos(scs_m) command, all 
labels inside of superblocks are deleted.


I am not sure if this is a bug or wether I am missing a key part to 
the process, but I hope this can be fixed as it is essential for my 
work in progress, that I can add labels to blocks on all layers of the 
simulation and that these will be considered when loading the diagram 
into Xcos.


Best regards

Nils Leimbach



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Strange behaviour of the auto-indent ctrl + i

2017-02-24 Thread Paul Bignier


Hi Pierre,

The handling of comments looks buggy indeed, could you please report a 
bug <http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software> 
with the test-case?

Thanks!

Regards,
Paul

On 02/24/2017 10:01 AM, Pierre Vuillemin wrote:

Hello all,

I've just realised that block-comments are now available in Scilab 6 
and I find it quite convenient. I've noticed strange behaviour when 
using the auto-indent tool ctrl + i in scinote though.


For instance with this code



// Author : Pierre Vuillemin (2017)
// License : GNU GPL

function problem = sopi_max(fun, varargin)
   /*
   Creates a maximisation problem.

   Calling Sequence
  problem = sopi_max(fun)
  problem = sopi_max(fun, c1, ..., cn)

   Parameters
  fun  : the objective function (sopiVar)
  ci   : constraints (sopiCst or list of sopiCst)
  problem  : the optimisation problem (sopiPro)

   See also
  sopi_var
  sopi_min
  sopi_solve
  sopi_example
   */
   problem = sopi_min(-fun, varargin(:))
endfunction


the auto-ident tool adds strange indentation to the endfunction + it 
suppress the indentation of the text withing the block comment. 
Shouldn't it behave as if // were used?


Regards,

Pierre
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] C/C++ compiler for Mac OS Sierra

2017-02-14 Thread Paul Bignier


Hello Reinaldo,

You don't have to install the whole Xcode to have gcc (pointing to 
clang) available, you can simply install the command-line tools 
<http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/>.


Regards,
Paul

On 02/13/2017 07:46 PM, Reinaldo Golmia Dante wrote:

Hi Scilab users,

I would like to install only a C/C++ compiler for Mac OS Sierra. I had 
installed Xcode, but it was very heavy (about 4.5GB) for the SMD disk 
in my MacBook Air. I'd like to install Eclipse IDE C++ to program 
C/C++, but I think it requires a C/C++ compiler, doesn't it?


Thank you in advance.

Best,
Reinaldo.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Examples of linear optimisation

2017-02-13 Thread Paul Bignier


Hello Pierre,

Just a remark: you may want to make Sopi available for Scilab 6.0 (you 
can download a nightly build 
<http://www.scilab.org/en/development/nightly_builds/branch60>).
"-->exec builder.sce" yielded an error on function save() as it takes 
strings as arguments now.


Best regards,
Paul

On 02/10/2017 06:09 PM, Pierre Vuillemin wrote:


Hi all,

I'm developing a 'modeling tool' for easing optimisation in Scilab: 
the Sopi toolbox <https://atoms.scilab.org/toolboxes/sopi/0.1.2>


At the moment, it supports (dense) linear optimisation problems and I 
have added the examples from


https://wiki.scilab.org/Linear%20Programming%20Examples%20in%20Scilab

in the demos.

I am quite interested in some feedbacks if you have any.


Best regards,

Pierre Vuillemin



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] optim vs Neldermead: improvement

2017-01-23 Thread Paul Bignier


Hi Paul,

As I'm sure you've read them, optim 
<https://help.scilab.org/docs/6.0.0/en_US/optim.html>, neldermead 
<https://help.scilab.org/docs/6.0.0/en_US/neldermead.html> & 
numderivative 
<https://help.scilab.org/docs/6.0.0/en_US/numderivative.html> help pages 
provide you with all the flags you can customize.
After that, it's all in the functions that you provide to compute the 
cost & its derivative.


Best regards,
Paul


On 01/23/2017 09:41 AM, paul.carr...@free.fr wrote:


Hi All

I’m using ‘optim’ and ‘NelderMead’ in conjunction with my finite 
element solver.


A “good” optimization is a balance between accuracy and cpu time … in 
other word I do not necessary need to be accurate at 1e-11 but 
requiring a lot of iterations where 1e-3 is enough with a lower amount 
of loops.


In my understanding:

 1. With ‘optim’, I can modifiy

  * The step value h in numderivative (put at 1e-3 after previous
tests on analytical functions tests)
  * The values of epsf (default value) and epsg (tested at 1e-3 and 1e-5)

 1. With “Neldermead”, I can change:

  * Tolfunrelative (tested at default value for the moment)
  * Tolxrelative (tested at default value for the moment)


 Am I right or is there another 'flags' I can play with?

/NB/: so far, Nelder-Mead requires less iterations than ‘optim’ with a 
single variable … I’m wondering how can I improve optim use that is 
supposed to converge faster?


 Thanks

Paul



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Optim use and 'err' flag

2017-01-13 Thread Paul Bignier


To complete my previous answer, the error arose from the built-in line 
search algorithm (err>10 means different flavors of it failing). In your 
case, it is pointing to a "too small deltaT", so yes it looks like your 
algorithm is converging but it has trouble finishing.


You can get more info by using "imp=3" in your call to optim (as 
documented). If you are using a nightly build then use "iprint=3" (the 
online doc hasn't been updated yet).


Best regards,

Paul


On 01/13/2017 05:11 PM, Paul Bignier wrote:



Hello Paul,

Running your script gives me "err=12", which is not documented but I 
don't get how you got 3?


I see though that you reached 'evals' & 'iters', perhaps optim wanted 
to continue but was capped by those.


Feel free to use the format 
<https://help.scilab.org/docs/6.0.0/en_US/format.html> function to get 
more on-screen precision to your values.


I will surely commit something soon in order to fix the "12" flag.

Have a good evening,

Paul


On 01/13/2017 02:39 PM, paul.carr...@free.fr wrote:

Hi all

I’m trying to improve how to use Optim in Scilab, so I’m still using 
the basic Rosembrock function; in the example hereafter, one can see 
that Optim goes back the Error flag to 3 and I do not understand why?


The goal is to be able to check all the values of this flag in order 
to validate the result ; while the values are the optimized ones, the 
calculation indicates that the optimization fails …


I’m a bit loss … so any feedback will be appreciated

Thanks

Paul

### 


In my understanding:
-err = 9 : everything went well … ok

-err = 3 : Optimization stops because of too small variations for x
-err=1 : Norm of projected gradient lower than …
-err=2 : At last iteration f decreases by less than …
-err=4 : Optim stops: maximum number of calls to f is reached ==> 
increase nocf
-err=5 : Optim stops: maximum number of iterations is reached. 
==> increase niter

-err=6 : Optim stops: too small variations in gradient direction.
-err=7 : Stop during calculation of descent direction.
-err=8 : Stop during calculation of estimated hessian.
-err=10 : End of optimization (linear search fails).



// Rosembrock function
function f=rosembrock(x)
f = ( 1 - x(1))^2 + 100*( x(2)-x(1)^2 )^2;
endfunction

// Cost function
function [f, g, ind]=cost(x, ind)
f = rosembrock(x);
//g = derivative(rosembrock, x.',order = 4);
//g = numderivative(rosembrock, x.',order = 4);
g = numderivative(rosembrock, x.',0.1, order = 4);
endfunction

initial_parameters = [10 100]
lower_bounds = [0 0];
upper_bounds = [1000 1000];
nocf = 10;  // number of call of f
niter = 10;// number of iterations
[fopt, xopt, gopt, work, iters, evals, err] = 
optim(cost,'b',lower_bounds,upper_bounds,initial_parameters,'qn','ar',nocf,niter);

xopt
fopt
iters
evals
err
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Optim use and 'err' flag

2017-01-13 Thread Paul Bignier


Hello Paul,

Running your script gives me "err=12", which is not documented but I 
don't get how you got 3?


I see though that you reached 'evals' & 'iters', perhaps optim wanted to 
continue but was capped by those.


Feel free to use the format 
<https://help.scilab.org/docs/6.0.0/en_US/format.html> function to get 
more on-screen precision to your values.


I will surely commit something soon in order to fix the "12" flag.

Have a good evening,

Paul


On 01/13/2017 02:39 PM, paul.carr...@free.fr wrote:

Hi all

I’m trying to improve how to use Optim in Scilab, so I’m still using 
the basic Rosembrock function; in the example hereafter, one can see 
that Optim goes back the Error flag to 3 and I do not understand why?


The goal is to be able to check all the values of this flag in order 
to validate the result ; while the values are the optimized ones, the 
calculation indicates that the optimization fails …


I’m a bit loss … so any feedback will be appreciated

Thanks

Paul

### 


In my understanding:
-err = 9 : everything went well … ok

-err = 3 : Optimization stops because of too small variations for x
-err=1 : Norm of projected gradient lower than …
-err=2 : At last iteration f decreases by less than …
-err=4 : Optim stops: maximum number of calls to f is reached ==> 
increase nocf
-err=5 : Optim stops: maximum number of iterations is reached. ==> 
increase niter

-err=6 : Optim stops: too small variations in gradient direction.
-err=7 : Stop during calculation of descent direction.
-err=8 : Stop during calculation of estimated hessian.
-err=10 : End of optimization (linear search fails).



// Rosembrock function
function f=rosembrock(x)
f = ( 1 - x(1))^2 + 100*( x(2)-x(1)^2 )^2;
endfunction

// Cost function
function [f, g, ind]=cost(x, ind)
f = rosembrock(x);
//g = derivative(rosembrock, x.',order = 4);
//g = numderivative(rosembrock, x.',order = 4);
g = numderivative(rosembrock, x.',0.1, order = 4);
endfunction

initial_parameters = [10 100]
lower_bounds = [0 0];
upper_bounds = [1000 1000];
nocf = 10;  // number of call of f
niter = 10;// number of iterations
[fopt, xopt, gopt, work, iters, evals, err] = 
optim(cost,'b',lower_bounds,upper_bounds,initial_parameters,'qn','ar',nocf,niter);

xopt
fopt
iters
evals
err
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Plotting 2 functions & integrate 1 definitive

2017-01-02 Thread Paul Bignier


Hello Bart,

I suppose you want to use the int2d 
<https://help.scilab.org/docs/6.0.0/en_US/int2d.html> function? Then you 
should define b as a function, like in the example.


Regards,

Paul



On 01/02/2017 11:26 AM, Pirovano, Bart wrote:


Goodday, I would like to add a second function to the underneath 
little program. I suppose something I haven’t done correct where I 
address ‘b’. Can somebody put me in the good direction with 
integrating the x,y curve?


clf;

// y-axis GZ (m)

// x-axis degrees

x=[0,2,5,10,12,15,20,25,30,40,50,60]';

y=[0,0.065,0.10,0.136,0.159,0.19,0.29,0.382,0.50,0.84,0.91,0.85]';

b=['2x'];

xtitle("GZ kromme Elandsgracht / departure Singapore") xlabel('φ 
(degrees)'); ylabel('GZ (m)'); plot2d (x,y); integ('x,y','x',0,30);


Bart



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Mac OS Sierra version 10.12.2

2016-12-19 Thread Paul Bignier

Hello Jairo,

Here is a clear workaround to run the 5.5.2 version: replace 
scilab/SuperCC/Dev-Tools/trunk/SE/Prerequirements/macosx/lib/thirdparty/libBLAS.dylib 
(here you can see that the 10.12 folder is missing, corresponding to 
Sierra) by 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib.


We are currently packaging a binary version 6 containing that fix, we 
should release it soon. Have a look at 
http://www.scilab.org/en/development/nightly_builds/master every once in 
a while and try the binary.


Have a good day,
Paul

On 12/18/2016 03:30 PM, Jairo Alonso Tunjano wrote:
Few months before, I change my macOS to Sierra (version 10.12.2) , and 
now I cant open Scilab.

I proof  this versions :
scilab-6.0.0-beta-2-x86_64
Scilab scilab-5.5.2.1-x86_64_yosemite
scilab-5.5.2.1-x86_64
When I try to open the software Scilab I obtain this message:
This version of Scilab will probably fail on this system (10.12.2): 
Scilab requires 10.6.5 (Snow Leopard) or newer system.


Please explain me how to do to work with Scilab in my PC.
I use Scilab in academic purpose


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] differential equation using scifunc_block_m

2016-11-17 Thread Paul Bignier


Hello Maro,

So does the content of scifunc_block_m look like:

  function ydot=f(t,y)

...

  endfunction

  y1 = ode(u1,f...)

?

By the way, you can put the definition of 'f' in the context instead of 
the block itself.


Have you taken a look at blocks INTEGRAL_m 
<https://help.scilab.org/docs/6.0.0/en_US/INTEGRAL_m.html> and CLSS 
<https://help.scilab.org/docs/6.0.0/en_US/CLSS.html>? They may be better 
to design your function in Xcos.


Regards,

Paul


On 11/16/2016 11:51 PM, marovran...@optinet.hr wrote:


Hello!

I need help!

I'm trying to do a simulation, and part of xcos diagram is a 
scifunc_block_m. I wrote a function to be executed and linked it to 
that block. Previously I wrote that function in editor, it is in the form:


function ydot=f(t,y)

...

endfunction

Then I've called it with ode(...) containing inital time, initial 
value, etc. and that worked perfectly.


Now that function is called by scifunc_block_m but I get as a result 
ydot calculated algebraicaly, I don't get y calculeted as a solution 
of that first order differential equation.


Can I get help, thankyou!

Maro V.




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] macOS Sierra - Scilab not working yet

2016-11-10 Thread paul . bignier


Hello,

Scilab 5 is not planned to be available for Sierra, but Scilab 6 is.
You can check out the nightly build at:
 http://www.scilab.org/en/development/nightly_builds/master
The latest one works on my Sierra (not perfectly though).

Regards,
Paul


On 2016-11-07 15:35, AJRthur wrote:

No update yet.

Le lun. 7 nov. 2016 15:16, Damita [via Scilab / Xcos - Mailing Lists
Archives] <[hidden email] [3]> a écrit :


Is there new update for scilab yet for mac sierra users?

-

If you reply to this email, your message will be added to the
discussion below:


http://mailinglists.scilab.org/Scilab-users-macOS-Sierra-Scilab-not-working-yet-tp4034586p4034926.html

[1]
To unsubscribe from [Scilab-users] macOS Sierra - Scilab not
working yet, click here.
NAML [2]


--

Sent from my mobile : expect creative spelling

-
 View this message in context: Re: [Scilab-users] macOS Sierra -
Scilab not working yet [4]
 Sent from the Scilab users - Mailing Lists Archives mailing list
archive [5] at Nabble.com.


Links:
--
[1]
http://mailinglists.scilab.org/Scilab-users-macOS-Sierra-Scilab-not-working-yet-tp4034586p4034926.html
[2]
http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
[3] 
http://webmail.scilab.org/user/SendEmail.jtp?type=node=4034927=0

[4]
http://mailinglists.scilab.org/Scilab-users-macOS-Sierra-Scilab-not-working-yet-tp4034586p4034927.html
[5]
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] API Error

2016-10-05 Thread Paul Bignier


Hello Shamika,

Are you sure that 'c' is a mlist? When I try you code with

 -->c=hypermat([2 3 2 2],1:24); callOct(c);

with a dummy callOct, I get an early error in getListItemNumber:

  "API error: in getListItemNumber: Invalid argument type, list expected"
  "This variable is not a list"

Now wen I try with

 -->c=list(1,2,3); callOct(c);

I don't get an error.

Hope this helps,

Paul


On 10/05/2016 06:54 AM, Shamika Mohanan wrote:

Hello,

I'm using Scilab 5.5.0 API in c++ code. I have the following code-

sciErr = getVarAddressFromPosition(pvApiCtx, 1, );
if(sciErr.iErr)
{
 printError(, 0);
 return 0
}

sciErr = getListItemNumber(pvApiCtx, piAddr, );
if(sciErr.iErr)
{
 printError(, 0);
 sciprint("This variable is not a list");
 return 0;
}
for( a= 1 ;a<=noItemList ; a++)
{
 sciErr = getMatrixOfDoubleInList(pvApiCtx, piAddr, a, , , 
);

 if(sciErr.iErr)
 {
  printError(, 0);
  return 0;
 }
}

This is part of a larger function. For the function call 
d=callOct(c),where c is an mlist (3D matrix),  I get the error


API Error:
in getMatrixOfDoubleInList: Unable to get address of item #2 in 
argument #1

in getMatrixOfDouble: Invalid argument type, double matrix expected

What am I doing wrong?

Shamika


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [EXTERNAL] Re: scilab 6.00 beta2 crash (feedback)

2016-09-28 Thread Paul Bignier


My bad, a 50001*50001x1 vector!

Paul


On 09/28/2016 04:05 PM, Carrico, Paul wrote:


Ok for bugzilla (sorry for that)

/_Nota_/:  k is a vector ….. at least in Scilab 5.5.4

*/EXPORT CONTROL :
/**Cet email ne contient pas de données techniques
This email does not contain technical data*

*De :*users [mailto:users-boun...@lists.scilab.org] *De la part de* 
Paul Bignier

*Envoyé :* mercredi 28 septembre 2016 15:57
*À :* Users mailing list for Scilab
*Objet :* [EXTERNAL] Re: [Scilab-users] scilab 6.00 beta2 crash (feedback)

Hi Paul,

The line "k =[1:n]'.*.ones(n,1);" intends to produce a 50001x50001 
(total 2.5 billion) matrix, which goes over the int32 limit of 
2147483647 (2.147 billion), that provokes the inner sizes to wrap and 
become negative, leading to the crash.


If you try k =[1:n/2]'.*.ones(n/2,1); it will work but eat up your 
ram. If you try it a few times a message will say "Can not allocate 
'XXX' MB memory." because it can still deal with such sizes.


So are you sure about what you want to do?

In the future when you get crashes, please report them on the bugzilla 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__bugzilla.scilab.org_=DQMD-g=0hKVUfnuoBozYN8UvxPA-w=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ=5d-roj75J3VoA5OprGpyNJA3SfhZiZGqF1lXCP2jaV8=>.


Thank you,

Best regards,

Paul

On 09/28/2016 03:34 PM, Carrico, Paul wrote:

Hi all,

Here is a feedback of a crash of  scilab 6.00 beta2; I used the
code here bellow on a 32 Go CentOS 7 machine.

Ligne 951 : 2650 Erreur de segmentation (core dumped) 
‘’$SCILABBIN’’ ‘’$@’’


t =[0:2e-5:1]';

n =size(t,"*");

X =zeros(n,1);

k =[1:n]'.*.ones(n,1);

m =ones(n,1).*.[1:n]';

nl =size(m,"*");

tmp =zeros(nl,1);

Paul

*/EXPORT CONTROL :
/**Cet email ne contient pas de données techniques
This email does not contain technical data*




___

users mailing list

users@lists.scilab.org <mailto:users@lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users

<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users=DQMD-g=0hKVUfnuoBozYN8UvxPA-w=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ=dnJofXzj7NyZG7QXqcTSn30H7WkBPh5om0isqviRAb4=>



--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scilab-2Denterprises.com=DQMD-g=0hKVUfnuoBozYN8UvxPA-w=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo=H6mcS5tjsl64h14eEzr1mZ3dh6VLpl9do8_bq2DWILQ=sWu3WWE_ZcDi0mguC2OpFqOnGtk9yNIw3jkwFadEpQo=>



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.00 beta2 crash (feedback)

2016-09-28 Thread Paul Bignier


Hi Paul,

The line "k= [1:n]'.*.ones(n,1);" intends to produce a 50001x50001 
(total 2.5 billion) matrix, which goes over the int32 limit of 
2147483647 (2.147 billion), that provokes the inner sizes to wrap and 
become negative, leading to the crash.


If you try k= [1:n/2]'.*.ones(n/2,1); it will work but eat up your ram. 
If you try it a few times a message will say "Can not allocate 'XXX' MB 
memory." because it can still deal with such sizes.


So are you sure about what you want to do?

In the future when you get crashes, please report them on the bugzilla 
<http://bugzilla.scilab.org/>.


Thank you,

Best regards,

Paul


On 09/28/2016 03:34 PM, Carrico, Paul wrote:


Hi all,

Here is a feedback of a crash of  scilab 6.00 beta2; I used the code 
here bellow on a 32 Go CentOS 7 machine.


Ligne 951 : 2650 Erreur de segmentation (core dumped)  ‘’$SCILABBIN’’ 
‘’$@’’


t= [0:2e-5:1]';

n= size(t,"*");

X= zeros(n,1);

k= [1:n]'.*.ones(n,1);

m= ones(n,1).*.[1:n]';

nl= size(m,"*");

tmp= zeros(nl,1);

Paul

*/EXPORT CONTROL :
/**Cet email ne contient pas de données techniques
This email does not contain technical data*



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Block Rotation when defining through function

2016-09-13 Thread Paul Bignier


Hello,

I guess you are using some Scilab 6 version?

Xcos 6 has been deeply reworked but some graphical bugs remain ; could 
you please report it on the bugzilla <http://bugzilla.scilab.org/>?


Thank you, best regards,

Paul


On 09/13/2016 04:11 PM, nils.leimb...@dlr.de wrote:


Hello!

I am creating an Xcos simulation using functions and scripts.

When trying to rotate a block it will, but the inputs will not behave 
the way I tell them to beforehand (switch sides and rotate 180 degrees).


Am I missing something, or is this a known or unknown bug?

I have attached a screenshot of the code I use to rotate the block and 
switch the inputs, as well as the outcome once opened in Xcos.


I also included a picture of what happens when I run the resulting 
simulation and look at the object data afterwards.


Thanks

Nils



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] GUI save and import data

2016-09-12 Thread Paul Bignier


Hi Petar,

To write to txt, you may add a button with a callback that will call 
mopen & mputl.


To read, you may combine uigetfile and mgetl functions.

Regards,

Paul


On 09/12/2016 12:25 PM, petarf wrote:

Hello,

I have created GUI whre you put some data and then it does some calculation
as shown in the picture.
Does anyone know how to store this data into a .txt file. Also, I want to be
able to load data from .txt file?

Regards, Petar

<http://mailinglists.scilab.org/file/n4034558/data.jpg>



--
View this message in context: 
http://mailinglists.scilab.org/GUI-save-and-import-data-tp4034558.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [xcos] zener diode ?

2016-08-25 Thread Paul Bignier


Hi Philippe,

This error is more likely due to a version problem, of either Scilab or 
Coselica.


Which version of Scilab do you use, and when does the problem arise?

Since the message is pointing to jdk, maybe you should update it.

Regards,

Paul

On 08/25/2016 03:07 PM, philippe wrote:

Le 25/08/2016 à 02:30, Samuel Gougeon a écrit :

Le 24/08/2016 22:58, philippe a écrit :

Hi,

I can't find a zener diode in xcos palettes . Is there an alternative ?

Yes: The Coselica external module (on ATOMS) has it, in its Electrical
=> Semi-conductors section

ok, I found it but I have errors during execution :

[jenny-a-03:23853] Signal: Segmentation fault (11)
[jenny-a-03:23853] Signal code: Address not mapped
(1)
[jenny-a-03:23853] Failing at address: (nil)

Pile d'appel :
1: 0x7da5a9
(/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
2: 0x10330 > (/lib/x86_64-linux-gnu/libpthread.so.0)
3: 0x27a48 > (/usr/lib/scilab/libsciscicos.so)
4: 0x2a22c > (/usr/lib/scilab/libsciscicos.so)
5: 0x1753a   (/usr/lib/scilab/libscisundials.so.5)
6: 0x2f8c2   (/usr/lib/scilab/libsciscicos.so)
7: 0x1f832   (/usr/lib/scilab/libsciscicos.so)


do I need to replace all xcos block with equivalent coselica blocks ?

Philippe.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Numerical precision

2016-08-22 Thread Paul Bignier
?


/Claus





___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Paul Bignier


Stefan,

You are launching Xcos properly, but this number of toolboxes looks 
suspicious to me, one of them may be interferring.


Can you please disable their autoload and try to launch Xcos? If it 
works, you may want to load them one by one until you can't relaunch 
Xcos ; that way we'll know which one is causing the trouble.


Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different 
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux 14.4, 
respectively. I have these toolboxes installed(?):


-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information please?

What version of Scilab are you using? Compiled or Binary? OS? Do you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

Regards
Stefan
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] What is wrong with this FFT buffer XCos model?

2016-07-25 Thread Paul Bignier


Hi Nikolay,
Indeed there was an issue, this commit 
<https://codereview.scilab.org/#/c/18389/> should fix it.

It will be available in the nightly build on the day following its merge.
Regards,
Paul

On 06/24/2016 07:56 PM, nikolay wrote:

I tried to launch fixed model (see in  buffer5.zcos
<http://mailinglists.scilab.org/file/n4034284/buffer5.zcos>  ) in Scilab
6.0-beta2 and get error "singularity in a block" in console.
So it seems to be a Scilab 6 bug.

Model works normally in Scilab 5.5.2.




Scilab version is below, launched on 64-bit Ubuntu 12.04.5 LTS:
ver
  ans  =

!Scilab Version: 6.0.0.1465826360
!
!
!
!Operating System:   Linux 3.2.0-104-generic
!
!
!
!Java version:   1.8.0_51
!
!
!
!Java runtime information:   Java(TM) SE Runtime Environment (build
1.8.0_51-b16) !
!
!
!Java Virtual Machine information:   Java HotSpot(TM) 64-Bit Server VM
(build 25.51-b03, mixed mode)  !
!
!
!Vendor specification:   Oracle Corporation
!





With best regards,
maintainer of Mathieu functions toolbox for Scilab,
IEEE member, Ph.D.,
Nikolay Strelkov.



--
View this message in context: 
http://mailinglists.scilab.org/What-is-wrong-with-this-FFT-buffer-XCos-model-tp4034228p4034284.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Steady state condition of o first order low pass filter

2016-07-22 Thread Paul Bignier


Hello Pierre,

Indeed you can modify that field in the block's "model.state" parameter 
(0 by default).

From Xcos, Go to Simulation->Compile.
Then in Scilab (let's assume your block number is 3) :
 --> scs_m.objs(3).model.state = newInitValue; xcos_simulate(scs_m, 4);

Regards,
Paul

On 07/22/2016 12:02 PM, Perrichon wrote:


Hello,

Is there a way to initialize a first order low pass filter to an 
initial value to its final value, in order to avoid any transitory at 
start simulation ?


May be in a batch file and accessing to the scs_m CLR block register ?

But I don’t see where can I do it.

Do you have any idea.

In the following example, I want 1 in register up to time t=5s

Init value is not available in the CLR block.

Thanks for your response,

Sincerely

Pierre



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-06-17 Thread Paul Bignier


Ok then please either refer to the mentioned bugzilla's workaround 
<http://bugzilla.scilab.org/show_bug.cgi?id=14182#c2>,
or download the latest nightly build 
<http://www.scilab.org/en/development/nightly_builds/master> that 
doesn't require you to install http2 or ssh2.

Regards,
Paul

On 06/17/2016 12:56 PM, cederholm wrote:

Hi Paul

I have rebooted and executed
/Applications/scilab-6.0.0-beta-2.app/Contents/MacOS/bin/scilab'.

I get this message:

Last login: Fri Jun 17 12:51:24 on console
h377:~ cederholm$
/Applications/scilab-6.0.0-beta-2.app/Contents/MacOS/bin/scilab
dyld: Library not loaded: /sw/lib/libnghttp2.14.dylib
   Referenced from:
/Applications/scilab-6.0.0-beta-2.app/Contents/MacOS/lib/thirdparty/10.11//libcurl.4.dylib
   Reason: image not found
/Applications/scilab-6.0.0-beta-2.app/Contents/MacOS/bin/scilab: line 951:
538 Trace/BPT trap: 5   "$SCILABBIN" "$@"


I'm appreciating your help :)

Best Regards
Peter



--
View this message in context: 
http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Capitan-tp4033887p4034219.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-06-17 Thread Paul Bignier


Hi Peter,
Have you tried rebooting?
Could you try running Scilab in command-line so we might get an error 
message?
" /Applications/scilab-6.0.0-beta-2.app/Contents/MacOS/bin/scilab " in a 
terminal should work.

Regards,
Paul

On 06/17/2016 12:00 PM, cederholm wrote:

Hi Paul

Here are some details. I'm running OSX v10.11.2 (El Capitan). I install
Scilab 6.0.0-beta-2-MacOSX. When I launch Scilab 6, the Scilab icon bounces
in the dock and then disappears. Nothing else. I run Scilab 5.5.2 without
any problems. Could it be an issue that I have Scilab 5.5.2 installed at the
same time as Scilab 6?

If the betas work on your computer, it is probably a configuration issue.

Best Regards
Peter



--
View this message in context: 
http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Capitan-tp4033887p4034217.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-06-16 Thread Paul Bignier


Hello Peter,

Would you have more information about your issue?
Is it related to the reported bug 
<http://bugzilla.scilab.org/show_bug.cgi?id=14182>?
Both betas work on my El Capitan, so it must be a configuration issue 
(external libs).


Regards,
Paul

On 06/16/2016 08:51 AM, cederholm wrote:

I just installed Scilab 6.0.0-beta-2-MacOSX on OSX v10.11.2 (El Capitan). The
problem seems to persist. Still no support for El Capitan?

Best Regards
Peter Cederholm




--
View this message in context: 
http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Capitan-tp4033887p4034205.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos - Problem with tf variable name in a superblock

2016-06-14 Thread paul . bignier


Hi Pierre,

What you want to do is check your environment at context evaluation,
so simply write a "pause;" at the start of the context and when you 
press Play

you will be prompted to resume in the Scilab console.
You can then write "-->who()" or "-->who('get')" to list all existing 
variables.
Note that you can safely overwrite these variables because when you 
leave your context the modifications will be lost (their scope is 
limited to the context).


Regards,
Paul

On 2016-06-13 18:44, Perrichon wrote:

Hello Paul,

Thanks you for your quit response

It confirms that « tf » is a reserved word in Xcos context, and must
be used with caution.

In fact, I shall drive in September a student in Master2 on a subject
concerning turbines simulation, and I inherit a program done with Xcos
where condition « if ~exists(« foo ») foo=xx » is systematically
used, and I see a big number of Xcos blocks and hundreds of variables.

This is correctly done because all variables are not necessary
transmitted when launching Xcos. Part of them are redefined, part of
them are values by default, which explains this program structure done
by a student a few year ago.

So, has to control that, my main question was to know where I could
finf a list of reserved words or variables in xcos.

We have together seen that « tf » was one of them, which also define
the « Final Integration Time »

I had a look on the Help in Scilab (describing a lot of thing », very
clearly, but nothing about « tf » for example.

For example, what are the others reserved keyword for the rest of
these variables, in the above table ?

A list would be welcome, or a reference to access this one.

Your sincerely,

Pierre

BEFORE PRINTING, THINK ABOUT ENVIRONMENTAL RESPONSABITY

DE : users [mailto:users-boun...@lists.scilab.org] DE LA PART DE Paul
Bignier
ENVOYÉ : lundi 13 juin 2016 09:09
À : Users mailing list for Scilab <users@lists.scilab.org>
OBJET : Re: [Scilab-users] Xcos - Problem with tf variable name in a
superblock

Hello Pierre,

10 is indeed the "Final integration time" parameter in the
Simulation->Setup menu.
By using exists() (you might want to use isdef() [3] instead) you
don't override the existing parameters,
and in Scilab, functions can see the superior-scope variables (here,
'tf').
So just write "tmf=3; tf=2;" in your context and everything should run
fine.

Regards,
Paul

On 06/10/2016 06:47 PM, Perrichon wrote:


Hello

I retrieve an old xcos program about hydraulic simulation.

Worry :

A superblock containing a vairable « tf « doesn't match the value
programmed in the initialization part.

If « tf » a reserved word and where can I find a reserved list

Or is it a bugg ?

Are other variables concerned?

Thanks for yout help

Regards.

___

users mailing list

users@lists.scilab.org

http://lists.scilab.org/mailman/listinfo/users [1]


--

Paul BIGNIER

Development engineer

---

Scilab Enterprises

143bis rue Yves Le Coz - 78000 Versailles, France

Phone: +33.1.80.77.04.68

http://www.scilab-enterprises.com [2]


Links:
--
[1] http://lists.scilab.org/mailman/listinfo/users
[2] http://www.scilab-enterprises.com
[3] https://help.scilab.org/docs/5.5.2/en_US/isdef.html

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos - Problem with tf variable name in a superblock

2016-06-13 Thread Paul Bignier


Hello Pierre,

10 is indeed the "Final integration time" parameter in the 
Simulation->Setup menu.
By using exists() (you might want to use isdef() 
<https://help.scilab.org/docs/5.5.2/en_US/isdef.html> instead) you don't 
override the existing parameters,

and in Scilab, functions can see the superior-scope variables (here, 'tf').
So just write "tmf=3; tf=2;" in your context and everything should run fine.

Regards,
Paul

On 06/10/2016 06:47 PM, Perrichon wrote:


Hello

I retrieve an old xcos program about hydraulic simulation.

Worry :

A superblock containing a vairable « tf «  doesn’t match the value 
programmed in the initialization part.


If « tf » a reserved word and where can I find a  reserved list

Or is it a bugg ?

Are other variables concerned?

Thanks for yout help

Regards.



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How do I access structure elements in called function?

2016-05-30 Thread Paul Bignier


Hello Sridhar,

You may either use "element(fields(1))" or "element('day')" or 
"element.day" to extract your field.


Regards,
Paul

On 05/30/2016 08:22 AM, Sridhar Reddy wrote:

S=struct('day',30,'month','may');
fun(S);


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] CEVENTSCOPE 2 and more inputs

2016-05-02 Thread Paul Bignier


Hello,

Do you get en error message?
You are supposed to modify the "colors" field so its dimensions matches 
the number of inputs you have set.

For instance if you want 3 inputs, the "color" field can be set to [1 2 3].

Regards,
Paul


On 05/02/2016 03:32 PM, laftek wrote:

Hi guys. I cant set 2 inputs for CEVENTSCOPE block(Event handling). Could you
help me ? Thanks.



--
View this message in context: 
http://mailinglists.scilab.org/CEVENTSCOPE-2-and-more-inputs-tp4034055.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos - names/labels for subsystems and ports?

2016-04-12 Thread Paul Bignier
rom its use.
  ---
Elektron Technology plc
Registered in England No.448274.
Broers Building, 21 JJ Thomson Avenue, Cambridge, CB3 0FA
_______
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] SciNotes disappeared

2016-04-12 Thread Paul Bignier


Glad to hear!

I don't know, but please report a bug <http://bugzilla.scilab.org> if 
you manage to reproduce.


Best,
Paul

On 04/11/2016 10:21 PM, Stefan Du Rietz wrote:

Hello Paul,
thanks for the answer.

Because I had all my own libraries there, I could not just delete the 
folder.


I deleted scinotesConfiguration.xml and restarted Scilab to no avail.

I made a backup of SCIHOME, deleted it and then restored most of it. 
After that it is again working.


But why did it happen?

Regards
Stefan


On 2016-04-11 14:01, Paul Bignier wrote:


Hello,

You may delete you SCIHOME folder, that way SciNotes' config will be
renewed.

Regards,
Paul

On 04/11/2016 12:46 PM, Stefan Du Rietz wrote:

Hello,
suddenly I could not start SciNotes. Before, I had by mistake
dragged a bin-file instead of a sci-file to the SciNotes window and
it crashed. However, after a restart of SciNotes it worked for a
while. But after a restart of Scilab:

-->scinotes

 -->

and nothing happens. What can I do (Scilab 5.5.2, Xubuntu 14.04)?

Regards
Stefan
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab Error Message: CVode

2016-01-12 Thread Paul Bignier


Hello Noguchi,

Try loosening the tolerances instead of tightening them.
With 1e-2, the simulation goes much further because the solver 
disregards the results a lot more.


Hope this helps,
Regards,
Paul

On 01/11/2016 11:30 AM, noguchi wrote:

Thank you for your feedback.

I reduced solver tolerance from Simulation, Parameter settings as per
attached file.
I changed 1.0E-6  ==> 1.0E-12

However, I still get same error message.

May I ask your further help to solve this problem?

SCilab_Sim_Setting.jpg
<http://mailinglists.scilab.org/file/n4033262/SCilab_Sim_Setting.jpg>



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVode-tp4033255p4033262.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller

2015-11-30 Thread Paul Bignier


Hi,

Can you run the Modelica demos (Demos->Xcos->Electrical systems), or 
does it tell you that you lack a compiler?
What is the return of 'haveacompiler 
<http://help.scilab.org/docs/5.5.2/en_US/haveacompiler.html>' & 
'findmsvccompiler 
<http://help.scilab.org/docs/5.5.2/en_US/findmsvccompiler.html>'?


Please refer to supported compilers 
<http://help.scilab.org/docs/5.5.2/en_US/supported_compilers.html> for 
more info.

Hope this helps,
Paul

On 11/28/2015 07:58 AM, windkraft wrote:

Hello

I have the same problem, Scilab is missing a compiler on a windows 7
maschine even there is one in the main directory.
And as it looks in several posts the problem or a variation of is exist in
spite of some explanations what could possibly help.

Is there someone who has a Scilab installation and Scilab finds the C
Compiler?
If so, could you explain which files must be stored in which relative pathes
and which environmental variables has to be adjusted in which way.
And what should be the contens of configuration files belonging this theme.

Thanks, Peter



--
View this message in context: 
http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033129.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Mathematical Modelling using Xcos

2015-06-18 Thread Paul Bignier


Hello,

Did you check all the Xcos demos? There are several 
filtering/controlling examples that may approach your need.


Regards,
Paul


On 06/18/2015 09:15 AM, Parthageet wrote:

Dear All,

I am doing a project and I am supposed to do the mathematical modelling for
a Phase Locked Loop. Can anyone please help me in this regard? Actually, I
am unable to figure out how to device a mathematical model for PLL using
XCOS in Scilab.



--
View this message in context: 
http://mailinglists.scilab.org/Mathematical-Modelling-using-Xcos-tp4032469.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Help regarding Finite Element Method_Scilab

2015-04-30 Thread Paul Bignier


Hello Nahid,

Please have a look at Scilab's Finite elements wiki page 
http://wiki.scilab.org/Finite%20Elements%20in%20Scilab which should 
give you some insight on the tools available on ATOMS.


Regards,
Paul

On 04/29/2015 01:41 PM, MD NAHIDUL ISLAM wrote:


Dear Concern,

I want to do finite element method with scilab. I want to analyze some 
structure with FEM. Here I attached one example structure. Can you 
guys give me hint like How can interpret this structure, I mean I have 
to draw this structure and do the rectangular mesh. And then I will 
apply the load further I will draw the displacement in x and y axis.


This structure is held by four suspensions. I want to apply the force 
at the bottom border.


I am not asking for details just which way I will follow and do the 
FEM, or Do I need any others tools in scilab. Help me out guys. Do I 
need to install the earlier version for tools? I admire all of your 
attention. I look forward to hear back from you soon.


 Kindly Regards,
 Nahid



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] C2F(....)(....); function

2015-03-27 Thread Paul Bignier


Hello Den,

C2F makes a call to a Fortran function from C code (read C to Fortran).

So C2F(dgemm)() is trying to call BLAS's dgemm 
http://www.netlib.org/lapack/explore-html/d7/d2b/dgemm_8f.html 
Fortran-coded function (matrix-matrix multiplication).


As for your compilation error, you may want to check what version of 
blas/lapack you have on your system.


HTH,
Regards,
Paul


On 03/27/2015 03:28 PM, Den wrote:

Hello everyone,

i try to generate and compile embedded code
from a Xcos model.

I get a compiling error because of the function
C2F(dgemm)(); which is in dmmul.c file.

Which sense have the function?
And what kind of function is the C2F function?

regards
Den



--
View this message in context: 
http://mailinglists.scilab.org/C2F-function-tp4031987.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] linux command line

2015-02-11 Thread Paul Bignier


Hello Hector,

The File section 
http://help.scilab.org/docs/5.5.1/en_US/section_efa4cbf5c15e166f34901f827390e756.html 
will give you the Scilab linux commands that you are looking for :)


Otherwise, use the unix 
http://help.scilab.org/docs/5.5.1/en_US/unix.html function to make 
your own command line.


Regards,
Paul


On 02/11/2015 04:48 PM, Hector Mora wrote:

Hi all:

I would like to give, in Scilab,  a linux command line. It's possible?

For example  mv file1.txt file2.txt

Best regards

Hector


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Error during Simulation

2015-01-23 Thread Paul Bignier


Hello Tarun,

Could you please attach your diagram file instead of a screenshot of it?

The error you are getting is the solver telling you that it could not 
converge. Indeed, there is a default limit of 500 steps for CVode. The 
fact that the solver did all of them (delta large enough between two 
steps) indicates that your system is either going back and forth or 
slowly converging.
It must be one of your CLR blocks that return that error, since they are 
the only ones in your diagram with continuous states.


Changing the solver (Simulation-Setup) or tuning the tolerances may help.

Also, what version of Scilab are you using?

Regards,
Paul


On 01/22/2015 01:45 PM, 110139 ktr.auto wrote:

Dear Sir,
I Tarun Nandakumar am doing a project on simulation on an electric 
power steering using SCILAB. I have come across an error during 
simulation. I have attached a screenshot of the error. Therefore, I 
would like to know what the error means and how to correct it. I have 
also attached the reference model.


Thanking You.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] A question about plotting

2014-08-18 Thread Paul Bignier


Hello,

When you type ' plot(X,Y) ', Scilab links together the consecutive 
[X(i),Y(i)] pairs.

In your example, X(40)~6.28 and X(41)=0.
So [X(40), Y(40)] is connected to [X(41), Y(41)], and the additional 
line represents that simple connection.


' plot(x,y1,x,y2); ' considers [x, y1] and [x, y2] as two distinct 
curves, so they are not linked together.


Hope this helps,
Regards,
Paul



On 08/18/2014 04:15 AM, ?? wrote:


Hi , All:

I have a question about plotting.

I want to plot 2 lines in a graphic , so I type the command as below:

--x=linspace(0,2*%pi,40);

--y1=sin(x)

--y2=cos(x);

--X=[x,x];

--Y=[y1,y2];

Then , I type the plot command :

--plot(x,y1,x,y2);

The result is shown as below:

Graphic window number 0 (2).bmp

But when I type a command as below:

--plot(X,Y);

The result is :

Graphic window number 0.bmp

It  has an additional line.

Why will this line appear?

Thanks for your reply.





___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Generate 5 unique random integer number between 1 and 10

2014-06-11 Thread Paul Bignier


Hello,

How about taking the five first elements of a permutation of vector 1:10 ?

Random_10 = grand(1, prm, 1:10);
Random_5   = Random_10(1:5)

http://help.scilab.org/docs/5.5.0/en_US/grand.html

Regards,
Paul


On 06/11/2014 05:34 AM, tanthiamhuat wrote:

how do I generate 5 UNIQUE, DISTINCT random integer between 1 and 10?

I try this, but it is not unique.

Random_5=round(rand(1,5)*9)+1



--
View this message in context: 
http://mailinglists.scilab.org/Generate-5-unique-random-integer-number-between-1-and-10-tp4030712.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] bode plot

2014-06-11 Thread Paul Bignier


Hi Raghu,

You need to retrieve the axes of the second plot thanks to the children 
of gcf().


Here is how I did it, based on your snippet:

function set_gr_txt(fnt_sz)
// sets textize in plots to larger (4)
//[out, inp] = argn(0);
////if inp  1 then, x = 1, end //set default font size to 1

f = gcf();

a1 = f.children(1);
if ~exists(fnt_sz,local) then // default size
fnt_sz = 4;
end
a1.font_size = 4; // axis font size
x_label=a1.x_label;
x_label.font_size=fnt_sz;
y_label=a1.y_label;
y_label.font_size=fnt_sz;
t = a1.title;
t.font_size=fnt_sz;
//disp(is_handle_valid(a1),typeof(h),'typeof handle');

a2 = f.children(2);
if ~exists(fnt_sz,local) then // default size
fnt_sz = 4;
end
a2.font_size = 4; // axis font size
x_label=a2.x_label;
x_label.font_size=fnt_sz;
y_label=a2.y_label;
y_label.font_size=fnt_sz;
t = a2.title;
t.font_size=fnt_sz;
//disp(is_handle_valid(a2),typeof(h),'typeof handle');

endfunction

// Execution:
bode()
set_gr_txt(4)

Regards,
Paul


On 06/11/2014 08:17 AM, Raghu Char wrote:

List,

I'd like to increase the font size of the bode plot( jpeg attached), i 
have a function to do this
but as there are 2 figures it  works only on 1, could not find any 
help on this,  how do i do this?



code snippet:
function  y=set_gr_txt(fnt_sz)
 // sets textize in plots to larger (4)
//[out, inp] = argn(0);
////if inp  1 then, x = 1, end //set default font size to 1

 a  =  gca();

 if  ~exists(fnt_sz,local)  then  // default size
 fnt_sz  =  4;
 end

 a.font_size  =  4;  // axis font size

 x_label=a.x_label;
 x_label.font_size=fnt_sz;
 y_label=a.y_label;
 y_label.font_size=fnt_sz;
 t  =  a.title;
 t.font_size=fnt_sz;
 //disp(is_handle_valid(a),typeof(h),'typeof handle');
 

endfunction


thanx in advance.


--
Regards raghu


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] beginners question

2014-04-25 Thread Paul Bignier


Hello James,

You are trying to create a variable that is a mix of both strings and 
doubles.


You can do this by declaring an untyped list containing two fields:

plotOptions = list( command, value );

but I wonder how you will further use it. Check out the plot help page 
http://help.scilab.org/docs/5.5.0/en_US/plot.html if you are trying to 
add options to a plot() command.


Regards,
Paul


On 04/24/2014 05:23 PM, James Holland wrote:

Hello
I am attempting to port some Matlab scripts to Scilab. I am having problems
with the following code:

114 plotOptions = { command, value };

plotOptions has been declared as an empty matrix (N/A, double) command is a
1x1 string and value is a 1x3 double. The error message that I get is:

!--error 144
Undefined operation for the given operands.
check or define function %c_c_s for overloading.
at line 114 of function plotloggedsignal called by :

Is there a simple workaround for this problem?

TIA
James



--
View this message in context: 
http://mailinglists.scilab.org/beginners-question-tp4030369.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] confidence interval for lsqrsolve solution?

2014-04-25 Thread Paul Bignier


Hello Ingo,

Here 
http://mailinglists.scilab.org/evaluate-error-on-each-parameter-calculated-with-leastsq-td4028696.html 
is a discussion that may give you hints about condifence intervals 
(althought it seems to be about lsqr):


Regards,
Paul


On 04/25/2014 11:07 AM, Ingo wrote:

Hello everyone,

I have done some data analysis using lsqrsolve(), which has delivered very
good (small value of optimization criteria), stable (same solution from
different initial parameters) and fast (small number of iterations) results.

However, I could not find out how to retrieve confidence bands or error
estimates of the final parameter set. Is this possible? Can I access the
gradient matrix of the last iteration and compute the confidence bands from
there?

Thanks for any hint,
Ingo



--
View this message in context: 
http://mailinglists.scilab.org/confidence-interval-for-lsqrsolve-solution-tp4030375.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Release of Scilab 5.5.0. - Graphics plot differently

2014-04-23 Thread Paul Bignier


Hello Ingo,

Thank you for your feedback, I can indeed reproduce the mentioned bugs.
Don't hesitate to report them on the bugzilla 
http://bugzilla.scilab.org/, and don't forget to list your system 
specifications, I can walk you through it if necessary.


Regards,
Paul


On 04/22/2014 11:02 AM, Ingo wrote:

Dear scilab makers and users,

thanks for all the effort that has gone into the new release!

I've just installed the new version and I like that the variable values now
show directly in the variable browser.

I've also noticed two minor disadvantages:
- Colorbar() renders differently and numbers are hard to read now (see
image).
http://mailinglists.scilab.org/file/n4030348/colorbar.png

- In scinotes I could mark a command and press F1 to jump to the
corresponding documentation. This doesn't work anymore.

But nevertheless - keep up the good work!

Thanks and best regards,
Ingo



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Release-of-Scilab-5-5-0-tp4030286p4030348.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problems with To workspace and From workspace

2014-04-15 Thread Paul Bignier

  
  

Hi Michael,

When I run the simulation a second time, I still get the "Protected
variable name" and "Singularity in a block" (block _expression_)
errors.

The attached diagram does what I think you are trying to do (without
running the script).
That is, when the ramp block crosses zero, save the value of the
sine block in Scilab environment and plot it.
The CLKSOMV_f block is just there to give an initial impulse to
DOLLAR_f thanks to the added CLOCK_c block.

As Serge stated, the variables are "transferred" to the Scilab
environment at the end of the simulation, so there is no way of
saving a variable AND loading it mid-simulation in one diagram.

Hope this helps,
Regards,
Paul

On 04/14/2014 05:01 PM, Michael
  Ungelehrt wrote:


  
  
  
  
  
Hello Paul,

thank
you for your answer.
I
had a look at the DOLLAR block. Its a kind of delay
block, but its not the right block for the task I have to
do, I think.
I
attached a simulation file, which shows the problem. This is
not the real simulation, because the real one is more
complex.

First
of all I load the .sce file. If I start the simulation, the
output shows the result with the initial value of C defined
in the .sce file and I get the error message Evaluation
problem: value not updated from context. Protected variable
name. Please choose another variable name.
After
I start the simulation a second time, the output graph shows
the correct result and the error message doesnt appear
again.

Is
there any possibility to write into my variable C at the
beginning of the simulation? Or is it possible to do this
task with the DOLLAR block like you thought?

Best
regards,
Michael

    
      
Von: Paul Bignier
[mailto:paul.bign...@scilab-enterprises.com] 
Gesendet: Donnerstag, 10. April 2014 12:35
An: International users
mailing list for Scilab.; martin.buech...@th-deg.de
Betreff: Re: [Scilab-users] Problems with "To
workspace" and "From workspace"
  



  Hi Michael,
  
  Indeed it looks like you can't overwrite a variable defined in
  the context.
  Have you tried replacing the "FROMWSB" block with a "DOLLAR"
  block?
  Then it would have the same data and activation inputs as the
  "TOWS_c" block,
  and you would not need to pre-define 'C' (just give it an
  initial value in the block parameters).
  
  Hope this helps,
  Regards,
  Paul
  
  

  On 04/10/2014 09:27 AM, Michael Ungelehrt
wrote:


  Dear users,
  
  I have a problem with
  the To workspace respectively From workspace block in
  Xcos.
  
  Id like to write the
  value of a function to workspace if the value of another
  function changes its sign from + to -. A short time later
  Id like to use this value in a third function and
  retrieve it from workspace.
  
  For that I evaluate
  the first function with the NEGTOPOS_f block and give
  the output event to the TOWS_c block. The TOWS_c block
  is connected with the second function and should write the
  value to a vaiable A in the workspace.
  The FROMWSB block is
  connected with a third function which should use the
  variable that is saved before.
  
  Now I have the
  following problem:
  If I start the
  simulation, the FROMWSB says that the variable A does
  not exist. So my idea was to define the variable in the
  variable-browser before I start the simulation. If I do so
  I get an error at the TOWS_c block: Evaluation problem:
  value not updated from context. Protected variable name.
  Please choose another variable name.
  
  Is there any solution
  for that problem?
  
  Block parameters:
  From workspace:
  Variable
  name: C
  Interpolation Method:
   0
  Enable zero
  crossing: 1
  Output at
  end: 1
  
  T

Re: [Scilab-users] Problems with To workspace and From workspace

2014-04-10 Thread Paul Bignier

  
  

Hi Michael,

Indeed it looks like you can't overwrite a variable defined in the
context.
Have you tried replacing the "FROMWSB" block with a "DOLLAR" block?
Then it would have the same data and activation inputs as the
"TOWS_c" block,
and you would not need to pre-define 'C' (just give it an initial
value in the block parameters).

Hope this helps,
Regards,
Paul


On 04/10/2014 09:27 AM, Michael
  Ungelehrt wrote:


  
  
  
  
  
Dear users,

I have a problem with
the To workspace respectively From workspace block in
Xcos.

Id like to write the
value of a function to workspace if the value of another
function changes its sign from + to -. A short time later
Id like to use this value in a third function and retrieve
it from workspace.

For that I evaluate the
first function with the NEGTOPOS_f block and give the
output event to the TOWS_c block. The TOWS_c block is
connected with the second function and should write the
value to a vaiable A in the workspace.
The FROMWSB block is
connected with a third function which should use the
variable that is saved before.

Now I have the following
problem:
If I start the
simulation, the FROMWSB says that the variable A does not
exist. So my idea was to define the variable in the
variable-browser before I start the simulation. If I do so I
get an error at the TOWS_c block: Evaluation problem:
value not updated from context. Protected variable name.
Please choose another variable name.

Is there any solution
for that problem?

Block parameters:
From workspace:
Variable
name: C
Interpolation Method:
 0
Enable zero
crossing: 1
Output at
end: 1

To workspace:
Size of
buffer: 1
Scilab variable
name: C
Inherit:
0

Definition of
  variable C in SciNotes upfront:
C.time=0;
C.values=0; 

Thank you in advance!


Mit
freundlichen Gren
Best
regards,

Michael
Ungelehrt




Michael
Ungelehrt, B.Eng.
Laboringenieur

THD 
Technische Hochschule Deggendorf
Technologie Campus Cham
Badstrae
21
D-93413
Cham

Tel:
+49 9971 99673-29
Fax:
+49 9971 99673-69
E-Mail:
michael.ungele...@th-deg.de
Web:
www.tc-cham.th-deg.de

  
  
  
  
  ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



-- 
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com 
  

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] window size

2014-04-04 Thread Paul Bignier


Hello JP,

Yes, you may set your window with the figure_properties 
http://help.scilab.org/docs/5.4.1/en_US/figure_properties.html (see 
the example).


Regards,
Have a good week-end,
Paul


On 04/04/2014 05:33 PM, grivet wrote:

Dear all,

Under Win7pro, I use plot to draw a rather complex curve. I often 
use the mouse to increase the plot window size,
in order to better see details. Is it possible to choose a window size 
(in pixel ? cm ?) before a call to plot ?


Cheers,
JP Grivet
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Solving linear simultaneous equations

2014-03-18 Thread Paul Bignier


Hi Tunji,

linsolve help page 
http://help.scilab.org/docs/5.4.1/en_US/linsolve.html contains 
utilization examples.


If you still cannot use it, please tell us more about the problem you 
are trying to solve.


Regards,
Paul


On 03/18/2014 10:16 AM, 'Tunji OTUNNIYI wrote:


Hello:

I am quite a starter here.

Could someone please help me through solving n x n linear simultaneous 
equations.


I saw linsolve in help, but can't follow throughthe arguments. 
Applying the calling sequence to a simple example will be of help.


Thanks a lot.

Tunji OTUNNIYI | MME SEET FUTA Akure, Nigeria.



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem running xcos in batch mode from Scilab

2014-02-26 Thread Paul Bignier


Hello Romain,

The difference is due to the solver type. Your diagram currently selects 
the ODE solver Sundials/CVode - BDF - Newton.


xcos_simulate(scs_m, 4); detects two continuous states and 
switches to a DAE solver (Sundials/IDA).


scicos_simulate(scs_m); only detects one continuous state and 
keeps the ODE solver.


This must be due to a Modelica compilation difference between xcos and 
scicos.


I don't know the equations of your model so I cannot assess which method 
is correct.


Also, I noticed that the context variables (C, R, T, end_time) are not 
present in the diagram, so what are you trying to change when you modify 
the context? You might want ot use the END 
http://help.scilab.org/docs/5.4.1/fr_FR/ENDBLK.html block to set the 
end time.


Hope this helps,
Regards,
Paul


On 02/25/2014 05:52 PM, R0M1 wrote:

Dear Users,

Trying different compilation methods for this model, I found some
discrepancies in the results that I do not explain so far.

With the same .xcos model and .csv input file as in the first post, I
compile using /xcos_simulate/ and /scicos_simulate/:

The plots shows the difference between the results from the two methods.

Any idea on what is causing this ?

Thanks a lot.

Here is the code:

clear

// parameters
data=csvRead('input.csv',';');
input_current=evstr(data(:,1));
size1=length(input_current);

C=1/12900;
R=765;

T=0.0001; // timestep
time=[0:T:(size1-1)*T]'; // in s
end_time=time($)+T; // end time in s

// loading Xcos functions
loadScicos;
loadXcosLibs();
exec(loadpallibs,-1);

// loading model: creates scs_m
importXcosDiagram('graphic_model.xcos')

// first compilation method
scs_m.props.context=strcat([C=,string(C),; R=,string(R),;
T=,string(T); end_time=,string(end_time)]);
xcos_simulate(scs_m,4) // '4' is to perform compilation

graph_voltage_1=graph_voltage.values; // output variable

// second compilation method
%scicos_context.C=C;
%scicos_context.R=R;
%scicos_context.T=T;
%scicos_context.end_time=end_time;
Info=scicos_simulate(scs_m,list(),%scicos_context,flag='nw');

graph_voltage_2=graph_voltage.values; // output variable

set(current_figure,10)
plot(time,graph_voltage_1,'-b')
plot(time,graph_voltage_2,'-r')
xtitle('graph title','time (s)','voltage (V)');
hl=legend(['xcos_simulate';'scicos_simulate'],in_upper_right);




--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Problem-running-xcos-in-batch-mode-from-Scilab-tp4028765p4028965.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem running xcos in batch mode from Scilab

2014-02-26 Thread Paul Bignier


During the compilation, a WARNING is displayed to notify the solver switch.

xcos_simulate():
WARNING: Diagram has been compiled for implicit solver
 switching to implicit Solver

scicos_simualte(): no warning, so no switching.

If the diagram contains continuous states, xcos and scicos are supposed 
to detect the problem type (ODE or DAE) and switch to the default one 
(Sundials/BDF-Newton for ODE and Sundials/IDA for DAE) if the Setup 
solver is not adapted.



On 02/26/2014 10:21 AM, R0M1 wrote:

Hi Paul,

Thank you very much for your answer. I have changed the model after your
first answer but I forgot to attach it again. I did use the END block.

Thanks for highlighting the difference of solver type. It seems that
Sundials/IDA gives the result I expect. Can you tell me where to check the
solver that have been used for the simulation? (The only variable generated
by running the simulation is %scicos_prob but I can not open it).



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Problem-running-xcos-in-batch-mode-from-Scilab-tp4028765p4028993.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] fmincon won't work

2014-02-26 Thread Paul Bignier


Hello,

Did you check that your problem matched the cases described on fmincon 
home page http://atoms.scilab.org/toolboxes/fmincon?


Regards,
Paul


On 02/26/2014 04:13 PM, Anastasia Athanasiou wrote:

Hello everyone! I am a new Scilab 5.4.1 user (in Ubuntu 12.04.4).
I installed fmincon 0.3.1-1 using atoms, but when I tried it on the first
help example I obtained a rather weird output:

fval  =0.

x  = 10^(-318) *InfInf

Could anyone help me please?

Thank you in advance, Natasha

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Plotting density values

2014-02-25 Thread Paul Bignier


Hi,

It sounds to me like you are trying to use histplot 
https://help.scilab.org/docs/5.4.1/en_US/histplot.html(y,x)?


Regards,
Paul


On 02/25/2014 12:55 PM, SCHULZ Wolfgang wrote:

Hello,
I'm asking for an intelligent method to solve the following problem without a 
for loop.

I have 2 vectors x an y with e.g. 3000 values. The range of x values is between 
0 and 360 and the range of y values is between -15 and 15.
I would like to plot the density of individual grid cells for e.g. dx=10, dy=1 
and therefore I would need a matrix with 36x30 values where each value 
corresponds to the number of data points in the cell.

Any idea who I can do that without a for loop?

Thanks a lot
Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Development engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] inquiry

2014-02-18 Thread Paul Bignier


Hi Mohammed,

Scilab and Matlab are meant for the same purposes and share many similar 
features, but their semantic, function names and conventions are not 
exactly the same.


So no, they are not directly equivalent, but a Scilab job is often 
translatable in Matlab, and vice versa.
Check out the Matlab-Scilab equivalents 
http://help.scilab.org/docs/5.4.1/fr_FR/section_36184e52ee88ad558380be4e92d3de21.html 
http://help.scilab.org/docs/5.4.1/fr_FR/section_36184e52ee88ad558380be4e92d3de21.htmlhelp 
page for more information.


Regards,
Paul


On 02/18/2014 12:33 AM, Mohammed Bashir wrote:

is scilab equivalent to matlab



On Mon, Nov 25, 2013 at 3:06 PM, Mohammed Bashir mobash2...@gmail.com 
mailto:mobash2...@gmail.com wrote:



is scilab equivalent to matlab




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab vs Xcos

2014-02-13 Thread Paul Bignier


Bonjour,

Pourriez-vous svp nous envoyer en pièce jointe vos diagramme Xcos et 
script Scilab, pour que nous puissions reproduire l'erreur ?


Merci,
Bonne journée,
Paul


On 02/09/2014 04:14 PM, noelec57 wrote:

Bonjour

Je rejoins en tant qu'enseignant les utilisateurs de Scilab et Xcos. Pour le
moment j'essaie de l'utiliser pour la modélisation de systèmes asservis
continus avec PID. Je suis parvenu à obtenir la réponse de mon système en
utilisant Xcos (mode graphique) et scilab (ligne de code). Malheureusement
le même système étudié avec la même fonction de transfert ne fournit pas
exactement la même réponse. Par exemple, j'ai cherché le point d'instabilité
avec la méthode Ziegler Nichols. j'obtiens deux valeurs différentes de gain
critique. Idem, l'application d'un PID avec les mêmes valeurs ne fournit pas
la mêe réponse( variation d'environ 10% !!).

Je ne parviens pas à trouver la raison de cette différence.

A titre d'exemple, avec la fonction de transfert en BO suivante :  60 /
(1+8*s) * (1+2*s) * (1+s)

le système en BF à retour unitaire  provoque des oscillations stables dans
un cas avec un gain critique de 0,281 sous scilab et 0,287 sous xcos.

Peut être que quelqu'un peut me dire, lequel des deux résultats je dois
prendre et surtout pourquoi cet écart ?

Merci.



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Determine if 32-bit or 64-bit installation of scilab in code

2014-02-04 Thread Paul Bignier

Hello,

[a b]=getversion();

b(2) should give you the answer :)

Regards,
Paul


On 02/03/2014 11:39 PM, Ian Bell wrote:
I need to determine in code if the active scilab version is 32-bit or 
64-bit in order to load the right dynamically loaded library on windows.


How can I determine whether scilab is 32-bit or 64-bit?

Thanks,
Ian


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Fwd: Crush using plot in ubuntu + virtual box

2014-01-30 Thread Paul Bignier
  !


--
 :-)  M.A.T.I.A.S.:-)



--
 :-)  M.A.T.I.A.S.:-)


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Strange list error

2014-01-26 Thread Paul Bignier


Hello Stefan,

What do you mean by suddenly stopped working? Did you switch Scilab 
versions?


Could you provide us the failing test case?
When I type
args = list(); args(1)=null()
it runs smooth.

Regards,
Paul


On 01/25/2014 09:07 PM, Stefan Du Rietz wrote:

I found out what the error was: I had a line

  if exists(bolus) then

that became true when I had this variable in the workspace, which I 
never had before.


I changed it to

  if exists(bolus, l) then

and it worked again.

But I still wonder: why the error 44?

Stefan

On 2014-01-25 18:32, Stefan Du Rietz wrote:


Hi all,
one of my functions suddenly stopped working. During my effort to find
the error by running the commands from the command window, I
experienced this:

-1-args(1) = null();
args(1) = null();
  !--error 44
Wrong argument #2.

and when I checked:
-1-typeof(args)
  ans  =
  list

Can anybody explain that?

Regards
Stefan
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Bar graphs in Scilab

2014-01-23 Thread Paul Bignier

  
  
Hello Adrien,

Try bar() or histoplot()?

Regards,
Paul

On 01/23/2014 11:32 AM, Adrien
  Vogt-Schilb wrote:


  
  Hi
  Do you know how to mak bar grahps in scilab ?
  
  
  Like this one.
  
  Does anybody have a function ready, maybe based on rectangles or
  something?
  
  Best regards
  -- 
Adrien Vogt-Schilb
PhD Student (Cired)
  
  
  
  ___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



-- 
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com 
  

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scilab-fortran issues

2014-01-20 Thread Paul Bignier


Hello Eduardo,

The call() primitive is not (yet?) suited for string matrices, because 
there is a confusion about the size of it: right now, the gateway 
detects the size of a scalar string, but when it is a matrix, each 
element can have a proper size (buffer) and there is also the matrix 
size itself.
To avoid this confusion, the gateway only allows scalar strings, so the 
size of the argument actually represents its length (for instance, 
ident=STR1 will be detected as having a 4x1 size).


This is documented in the help page 
http://help.scilab.org/docs/5.4.1/en_US/call.html, the arguments can 
be real matrices or [scalar] strings.


So my only suggestion at the moment is to pass ident as the 
concatenation of its elements, and to split it (or iterate on its 
length) in the Fortran routine. ident = STR1+STR2+STR3+...


Hope this helps, otherwise feel free to report a bug on 
http://bugzilla.scilab.org/

Regards,
Paul


On 01/15/2014 09:01 PM, Eduardo Torrecillas wrote:

Hello all,

I am very used to dynamic linking scilab and Fortran, and call the 
external function by the call function in SciLab.


Although, this is the first time I try to send string matrices as 
fortran arguments, and I can't get it working. Maybe any of you can 
please help?


I want to pass a column-vector where each row contains a 4-char 
string. Example:


ident=['STR1';'STR2';'STR3';...]

Now the F90 code I'm trying:

subroutine fhdg_dist(napt,ident,ret_val)
implicit none
INTEGER,INTENT(IN)::napt
character(len=4),intent(in),dimension(napt,1)::ident
integer,intent(out)::ret_val

ret_val=0

end subroutine fhdg_dist


the call statement:

[ret_val]=call('fhdg_dist',napt,1,'i',ident,2,'c','out',[1,1],3,'i')

So, even if I'm not trying to use the matrix data, when calling the 
external function with this call, I get incompatible dimensions message.


Any clues, please?

Regards.


--
Eduardo Torrecillas
AER-09


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos RLC_Modelica electrical demo has faulty wiring

2014-01-03 Thread Paul Bignier


Dear Nobuo,

Thank you for that correction. Here is the review for the fixing of RLC 
demo:

 https://codereview.scilab.org/#/c/13391/

Regards,
Paul


On 12/31/2013 05:46 AM, Nobuo Hizume wrote:

Dear Xcos electrical palette users:
Regarding above, I found the correct answer in the document below.
  'Modeling in Xcos using Modelica' ('Modeling an ODE: 3 different 
approaches')  pp.7 to 10

  which is at http://www.openeering.com/scilab_tutorials/.
Regards,
Nobuo Hizume


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] LINEAR SYSTEMS AND BODE PLOT IN SCILAB REPORT

2013-12-13 Thread Paul Bignier


Hi,

If it is any help, I broke down bode.sci's code to the job it really does.

Example1.sce then comes down to (for the magnitude):
clear;
clc;
s = poly(0, s);
N = 1;
D = (s+1);
TF = syslin(c, N/D);
// bode(TF)
[frq, repf] = repfreq(TF, 1d-3, 1d3);
[phi, d] = phasemag(repf);
plot2d(ln ,frq, d)
f=gca(); f.grid = color(lightgrey)*ones(1, 3);

You can indeed see that the computed magnitude does not match the 
theoretical one.


The first example on this 
http://lpsa.swarthmore.edu/Bode/BodeExamples.html page also shows a 
gap ( s = poly(0, s); bode(syslin(c, 100/(s+30))); )


On 12/13/2013 03:04 AM, Vijay Gopal wrote:

Hi,
I am a scilab user and I find it amazing about its capabilities. 
Recently I have encountered a problem for BODE PLOT for Linear Systems 
in continuous domain in scilab. I have made a report on it and 
attached herewith in pdf format. I hope this email will be beneficial 
for mutual progress. Also there are two files attached herewith

Regards
--
Vijay Gopal


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab Xcos Datatips

2013-11-04 Thread Paul BIGNIER

Dear Alexander,

You may zoom on your curve to place your datatip more accurately.

There are five significant figures when you place a datatip, so if Y: 
1.1 is displayed, then it was closer to 1.1 than to 1.005.


Regards,
Paul.

On 10/31/2013 04:53 PM, Alexander Weinig wrote:


Dear Ms / Miss,

i have a question about using the datatips in Scilab's Xcos. I tried 
to simulate a PID-Controller and i want to use some datatips. My 
Problem is, that i need more decimal places for the Y-Axis. The 
problem is only if the datatip is over 1. It would be most helpful 
if there is a possibility to show the position of de datatip in a way 
like this for example: Y: 1.05 or Y: 1.005  it only shows Y: 1.1 
(not very)

For a better understanding look at the attechment.

Yours sincerely,
Alexander Weinig
alexander_wei...@yahoo.de



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Number of plots limited in Xcos scope?

2013-10-30 Thread Paul BIGNIER

Hi Florian,

So you want an ouput that looks like a subplot 
http://help.scilab.org/docs/5.4.1/fr_FR/subplot.html?


If it is the case, did you try using a CMSCOPE 
http://help.scilab.org/docs/5.4.1/fr_FR/CMSCOPE.html block?


If this doesn't work, could you please provide us with your diagram?

Have a good day,
Paul


On 10/30/2013 09:40 AM, Florian Würflinger wrote:

Hello,

Thanks for your prompt reply.

The Inverted Pendulum demo shows many signals in one diagram, but I want to
display only one signal per diagram, but more than four digrams in one
figure. I am using no MUX because there is an input for each signal. The
problem is that only the first four signals are displayed.

Thanks in advance

Florian




--
View this message in context: 
http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686p4027747.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] I find problem to run Scilab demonstration examples on Scilab 5.4.1 over Mac OS X Mavericks.

2013-10-28 Thread Paul BIGNIER

Hi Reinaldo,

Could you please test the Xcos - Modelica, Xcos - Electrical Systems 
and Xcos - Control Systems demos and tell us which ones work and which 
ones don't?


We would be more able to target your problem then.

Thank you,
Paul.

On 10/27/2013 10:33 PM, Reinaldo wrote:

Hi Scilab users,

I find problem to run Scilab demonstration examples on Scilab 5.4.1 
over Mac OS X Mavericks. I had the same problem

when I had Mac OS X 10.8.x.

I have the newest Xcode 5.0.1 for Mac OS X Mavericks.

For example, I had problem to run Xcos-Electrical system- RLC circuit.

The result is:

\
 Main Modelica : 
/private/var/folders/2f/h_gm23n545z04r1nxczf1jq8gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.mo


 Flat Modelica : 
/private/var/folders/2f/h_gm23n545z04r1nxczf1jq8gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_imf.mo
 Simulation C code 
:/private/var/folders/2f/h_gm23n545z04r1nxczf1jq8gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.c

   Gerar um arquivo de carga
   Gerar um Makefile
   ilib_gen_Make: Copia os arquivos de compilação (Makefile*, 
libtool...) para TMPDIR

   ilib_gen_Make: Copia RLC_Modelica_im.c para TMPDIR
   ilib_gen_Make: Configurar: Gerar Makefile.
   ilib_gen_Make: Modificação do Makefile em TMPDIR.
   Executando o Makefile
!sorry compiling problem   
   !

!   !
! Function not defines por the data types of arguments!
!   !
!  verify the arguments or define the function %s_grep for overload.  !
c_pass1: build the modelica meta-block failed
 xcos_simulate: Error during updating the parameter blocks.

Thank you in advance.

All best,
Reinaldo.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Number of plots limited in Xcos scope?

2013-10-23 Thread Paul BIGNIER

Hi,

Did you try to run your links through a MUX block?

The Xcos - Control Systems - Inverted Pendulum demo shows more than 4 
plots in one graphic window.


Hope this helps,
Paul


On 10/23/2013 02:56 PM, Florian Würflinger wrote:

Hello,

im using scilab 5.4.1 and I tried to display more than four plots in one
Xcos scope. The first four plots are displayed, all further plots remains
emty. Could it be that the numer of plots in a Xcos scope is limited, or is
there a bug.

Thanks in advance

Florian



--
View this message in context: 
http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Is there any way to supress th plot() output.

2013-10-21 Thread Paul BIGNIER


Hello,

Did you try to Export the graph via the File menu?

Have a good day,
Paul.


On 10/21/2013 07:24 AM, hilife5 wrote:

yes i want the plot output in file directly..I will use this plot in my vb
application,. Thanks for your response.



--
View this message in context: 
http://mailinglists.scilab.org/scilab-users-Is-there-any-way-to-supress-the-plot-command-output-tp4027647p4027656.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Matrix of characters conversion

2013-10-21 Thread Paul BIGNIER

Dear Paul,

How about manually editing your file to standardize the spacing between 
the numbers?


For instance, using your editor's Find and Replace tool to replace two 
spaceswith one space   until you get only one space between each 
number?


Hope this helps,
Have a good day,
Paul.


On 10/21/2013 02:29 PM, Carrico, Paul wrote:


Dear All

How can I convert a matrix of characters into integers when the 
separator has different number of spaces ?


The spaces come probably  from a printf format such as :
 printf(%10d\n,var)


I 'm currently using*_csvTextScan_*  and I've some troubles/errors  
with*_csvRead_*  ...

_Example_:

! 36 12799 24678 17504 21558212801 24680 
17508 21560 !


NB:

-I read first an ascii file

-I removed some specific lines directly in the matrix

-Then I'm trying to convert the matrix of characters into a matrix of 
intergers


Thanks for any suggestion

Paul

#

PATH_FILE  =  get_absolute_file_path(lecture.sce);  
FILE_NAME  =  'topology_elem.rad';
  
stacksize('max');  
M  =  mopen(PATH_FILE  +  /  +  FILE_NAME,'r');

record  =  mgetl(M);
[nl,nc]  =  size(record);
  
nbre_elem  =  (nl  /  3);

Nodes_char(1:nbre_elem)  =  record(1:3:nl);
  
/// convert/

Nodes  =  csvTextScan(Nodes_char,);/// 
!/
  
mclose(M)





Le présent mail et ses pièces jointes sont confidentiels et destinés à la 
personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par 
erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de 
votre système. Toute divulgation, copie ou distribution de cet e-mail est 
strictement interdite.

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error, please contact the sender and delete the 
email from your system. If you are not the named addressee you should not 
disseminate, distribute or copy this email.



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users





--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Solving linear problem in scilab using Karmarkar and Primal Affine Scaling Method

2013-10-11 Thread Paul BIGNIER

Hello Jennifer,

Are you certain that our problems are worrectly written?

For intstance, why is there a 2 alone in a line of the first problem ? 
And why do your right-hand side elements all have x (0x, 1x, 15x)?


I cannot rewrite them but I can tell you that yes, karmarkar allows to 
solve such problems.
Just have a look at its help page : 
http://help.scilab.org/docs/5.4.1/fr_FR/karmarkar.html


Your first problem should look something like this:
c = [1 -2 0 0 4]'; // Main problem
Aeq = [1 0 -1 0 0 ; ? ? ? ? ? ; 1 -2 4  0 -4 ; ? 2 0 1 -4 ; ? 1 1 1 1]; 
// Equations

beq = [0 ? 0 0 1]; // Right-hand side

[xopt, fopt, exitflag, iter, yopt] = karmarkar(Aeq, beq, c)

If the solution is not all positive (inequality constraint), add an 
inequality matrix A, like in the help page.


Hope that helps,
Paul.


On 10/10/2013 05:38 AM, Jennifer Basbas wrote:

Dear All,

I am new to Scilab and I'm wondering if anyone can help me solve the 
following minimization problem in linear programming using Scilab:


1. Apply Karmarkar's algorithm to solve
Minimize -
x1 - 2x2 + 4x5subject to
x2 - x3 = 0
2
x1 - 2x2 + 4x3 - 4x5 = 0x
1 + 2x2 + x4 - 4x5 = 0x
1 + x2 + x3 + x4 + x5 = 1x
1, x2, x3, x4, x5 = 0

2. Apply the primal affne scaling algorithm to solve
Minimize -
2x1 + x2subject to
x1 - x2 + x3 = 15x
2 + x4 = 15x
1, x2, x3, x4 = 0
Hint: The optimal solution is
x* = [30 15 0 0]T with optimal value -45.
Any inputs will be greatly appreciated. Thank you.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos error

2013-09-03 Thread Paul BIGNIER

Hello,

This error sometimes occur when you try to move too fast, or when you 
add blocks successively too rapidly.


Try to slow down or empty your diagram before dragging the first block, 
and let us know how it works.


Regards,
Paul.

On 09/03/2013 09:49 AM, Kent Slaughter wrote:
If I try to drag any block into Xcos, I get Unable to load block 
from... as soon as the mouse moves after I drag. Any idea why?

Thanks
Kent


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Xcos error

2013-09-03 Thread Paul BIGNIER


A bug has been opened to deal with this issue:
 http://bugzilla.scilab.org/show_bug.cgi?id=12894


On 09/03/2013 09:49 AM, Kent Slaughter wrote:
If I try to drag any block into Xcos, I get Unable to load block 
from... as soon as the mouse moves after I drag. Any idea why?

Thanks
Kent


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Paul BIGNIER
Scilab Engineer  Xcos Developer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
http://www.scilab-enterprises.com

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users