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

2017-02-13 Thread Reinaldo Golmia Dante
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


Re: [Scilab-users] function with more result variables, how?

2017-02-13 Thread Erhy
Thank you Samuel!
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/function-with-more-result-variables-how-tp4035470p4035476.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


Re: [Scilab-users] Question about javasci V2

2017-02-13 Thread Daniel Neutzler

Hello Pierre,
thank you for your answer. It is nice to hear that my Problem is 
probably a Bug.
I'm not sure how to use your example. Which Libs do I need for it or may 
you have a simple example to use it?

I'm sorry, my Java knowlegde is restricted (Beginner).

Thank You for your Help,
Daniel Neutzler


Am 04.02.2017 um 19:29 schrieb Perrichon:


Hello Daniel

I’ve already met your problem one year ago, and for me it is really a bug.

I work with scilab x64 5.5.2, netbeans 7.01, on W7 or W10 platform.

I’ve sovled it in my application, so I’m just able to propose parts of 
code.


I’ve delay the 2 instructions *Scilab sci = new Scilab(true)* and if 
(sci.open()) {, by creating a ScilabManager class, … and a thread 
class named  Idle


Part of ScilabManager  (also note the  public static void OpenScilab())

public class ScilabManager {

public static Scilab sci;   //Driver Scilab

public static boolean bScilabOpen;

public static boolean InitScilab;

public  static Fifo FifoScilab;

private static TListeFifo SciJob;

static ScilabError TErrorScilab;

public static File ScilabFile;

private static int dim = 500;

public static String [] Script;

private static int iScript;

public static Configuration AppConfiguration;

public static Log LogScilab;

public static int NumGraph=0;

ScilabManager() {

try {

sci = new Scilab(true);

InitScilab=true;

   } catch (JavasciException.InitializationException ex) {

Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, 
null, ex);


}

}

@SuppressWarnings("CallToThreadDumpStack")

public static void OpenScilab() {

try {

bScilabOpen=sci.open();

} catch (JavasciException ex) {

ex.printStackTrace();

}

if (bScilabOpen) System.out.println("\nScilab est ouvert\n");

else System.out.println("\nErreur ouverture Scilab\n");

ScilabError.ClearScilabError();

try {

// Initialisation et chargements des fonctions Scilab

//---

AppConfiguration = new Configuration();

} catch (FileNotFoundException ex) {

  Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, 
null, ex);


} catch (IOException ex) {

Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, 
null, ex);


} catch (JavasciException ex) {

   Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, 
null, ex);


}

try {

// Initialisation du fichier de log out (Traces commandes Scilab)

//--

LogScilab = new Log();

OptsimView.SetLogFile();

} catch (FileNotFoundException ex) {

ex.printStackTrace();

} catch (IOException ex) {

ex.printStackTrace();

}

Script = new String[dim];

Now note part of Idle task :

public class Idle extends Thread  {

protected volatile boolean IdleRunning = true;

public static boolean bCloseIdle=false;

private static int Count=1;

private static int setGraphe=0;

  private static JTextField TF=null;

private static Timer bTimer;

private static JLabel AnimationLabel;

private static Icon idleicone;

private int ThreadNumber;

Idle (JTextField TFi, Timer busyIconTimer,

JLabel statusAnimationLabel, Icon icone) {

TF=TFi;

bTimer=busyIconTimer;

AnimationLabel=statusAnimationLabel;

idleicone=icone;

this.ThreadNumber=Count++;

}

@Override

public synchronized void run() {

boolean bTest;

if (ScilabManager.InitScilab) {

ScilabManager.OpenScilab();

}

ScilabManager.sci.exec("aPPeScilabJavasciv2=1;");

while (IdleRunning) { …etc

So instructions *Scilab sci = new Scilab(true)* and if (sci.open are 
delayed.


This is the only solution I’ve found. After that Scilab well run with 
Java netbeans and javasci2.


Also well note that my program doesn’t work with Scilab 6.0.0 b2 at 
compile time and see :


http://bugzilla.scilab.org/show_bug.cgi?id=14626

Hope it helps you

Sincerely

Pierre

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

*Envoyé :* mardi 31 janvier 2017 13:15
*À :* users@lists.scilab.org
*Objet :* [Scilab-users] Question about javasci V2

Hi, I am using Scilab 5.5.2 and trying to open a Scilab script from
Java. Therfore I followed the documentation: Compute and run with 
javasci v2.


I use Eclipse to compile and run. It works, but I want now to open it 
in "advanced mode"  to get grahpics
(*Scilab sci = new Scilab(true);*). If i do it, I get a compile Error. 
What's wrong ?

Code and Error Plot out see below.

Thank You for your Help,
Daniel Neutzler

Error
java.lang.ExceptionInInitializerError
at org.scilab.modules.commons.xml.XConfiguration.(Unknown 
Source)

at org.scilab.modules.core.Scilab.(Unknown Source)
at 
org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native Method)
at org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown 
Source)

at org.scilab.modules.javasci.Scilab.open(Unknown 

Re: [Scilab-users] Examples of linear optimisation

2017-02-13 Thread Pierre Vuillemin
Hi Paul, 

You are right, given the timing, this seems to be a good idea to make it
work on Scilab 6.0. I'll do that. 

Thank you, 

Best regards, 

Pierre 

Le 13.02.2017 09:05, Paul Bignier a écrit :

> Hello Pierre,
> 
> Just a remark: you may want to make Sopi available for Scilab 6.0 (you can 
> download a nightly build [2]).
> "-->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 [1] 
>> 
>> 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

 

Links:
--
[1] https://atoms.scilab.org/toolboxes/sopi/0.1.2
[2] http://www.scilab.org/en/development/nightly_builds/branch60___
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 
).
"-->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 


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