Search found 18 matches

by vero
Sat Oct 11, 2008 9:50 am
Forum: Vensim
Topic: How can I use Vensim in .java file?
Replies: 0
Views: 6942

How can I use Vensim in .java file?

I'm trying to load a model in a servlet but did not get, someone can help me: I am doing the following: package simulacion; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.*; import javax.servlet.http.*; import vensim2.Vensim; public class Iniciodos extends HttpServlet {...
by vero
Thu Oct 02, 2008 8:23 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

Okay, thank you very much, now no longer gives me the error but any value of the variables I always returns the same result by simulating! why??
by vero
Wed Oct 01, 2008 7:08 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

how can i get your mail?
by vero
Tue Sep 30, 2008 7:51 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

That is not the solution, I have tried and will not be solved.

How can I tell if it's a variable or a constant?

I think that is a variable, all the data that I have are variables, I do not have constants.

Thank you
by vero
Tue Sep 30, 2008 2:42 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

I have not explained well, I am trying to simulate like this: 1º Load model result = vensim.command( "SPECIAL>LOADMODEL|C:\\Documents and Settings\\miriiam\\Escritorio\\PROYECTO\\mariaje\\MODELO\\ACI118MO00\\CIMD9.vmf" ); ----ok---- 2º store the initial values result=vensim.get_data("...
by vero
Mon Sep 29, 2008 2:44 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

SETVAL not work for me because I got there just in another place like PrecioInit1 = cprecio1.getText(); vensimCommand = "SIMULATE>SETVAL|precios [producto1,competidor1] = " + PrecioInit1; result = vensim.command( vensimCommand ); and if that work for me. The variables exist in the model I ...
by vero
Mon Sep 29, 2008 2:18 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

I have the problem here: if (e.getSource() == b2) { //set run name result = vensim.command( "SIMULATE>RUNNAME|base" ); if (result == 0) System.out.println( "SIMULATE>RUNNAME|base -- failed" ); //COGE EL VALOR DEL CAMPO cprecio1 PrecioInit1 = cprecio1.getText(); vensimCommand = &q...
by vero
Thu Sep 25, 2008 3:27 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

We run the model with:

result = vensim.command( "SIMULATE>RUNNAME|base" );

And how we can read any source data???

The base already exists and we want to run in this vdf, overwriting and read the new results.

Please help us
by vero
Thu Sep 25, 2008 2:56 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

we store variables in .vdf We do: *Load the model result = vensim.command( "SPECIAL>LOADMODEL|C:\\Documents and Settings\\miriiam\\Escritorio\\PROYECTO\\mariaje\\MODELO\\ACI118MO00\\CIMD9.vmf" ); *Get the initial values result=vensim.get_data("base","precios[producto1,compet...
by vero
Thu Sep 25, 2008 2:18 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

My model need variables to run.

What´s the CIN files? We don´t understand what you mean.
by vero
Thu Sep 25, 2008 1:41 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

Thank you very much for everything.
Now I have the following problem: I have my application and any value of the variables to get the same result of the simulation.
If you run the program vensim leave the correct data to the model.

Someone can help me?

Thank you very much
by vero
Wed Sep 24, 2008 3:16 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

I have already achieved Now I have a doubt, when we put: tpoints = vensim.get_data ( "base", "EBITDA [competidor1]", "TIME", EBITDA, tval, 36); The base.vdf must exist? or you can put a. VDF and white that simulates what there? I am not sure. I would appreciate if someo...
by vero
Mon Sep 22, 2008 2:56 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

I have reviewed what I've said and still does not work. The error gives me at: tpoints = vensim.get_data ( "base", "EBITDA [company]", "TIME", EBITDA, tval, 36); Because It returns me a 0 and that means it does not find the variable not? And if this variable there! Than...
by vero
Sat Sep 20, 2008 4:31 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

private Vensim vensim = new Vensim(); final static int APPWIDTH = 800; final static int APPHEIGHT = 600; private Label l1, l2, l3, l4, l5, l6, l7, l8, l9, l10; private TextField tf4,cprecio1, cprecio2, cdistribucion, cpublicidad, ccompras1, ccompras2, ccontratacion, csalarioj, csalarios; private Tex...
by vero
Fri Sep 19, 2008 3:01 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

I have already achieved what we got before, thank you very much alike.
Now to collect the return value of the simulation to be put?
this:
vensim.get_data result = ( "base.vdf", "EBITDA", "TIME", EBITDA, tval, 41);
is that I did not get to work

Thank you very much;)
by vero
Fri Sep 19, 2008 2:36 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

Thank you so much! already got it but now what I fault is that when I pretend to, do this: vensimCommand = "simulates> SETVAL | initial price [producto1, competidor1] =" + PrecioInit1; vensim.command result = ( "MENU> RUN | 0"); And then to pick the outcome of the simulation: tpo...
by vero
Thu Sep 18, 2008 2:30 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

With that work for me either. I put: vensim.get_data result = ( "base.vdf", "initial price [producto1, competidor1]," "Time", rval, precioinicial1, 36), but not if it is correct as well. What we had was: Cargo model, collect the variable value to put in a box with vensi...
by vero
Wed Sep 17, 2008 2:30 pm
Forum: Vensim
Topic: help with variables using .dll
Replies: 32
Views: 26202

help with variables using .dll

I have a problem with the variables to simulate because I do not collect the good of the model, gave me a weird number -1.2980.... and presumably that means that it has not begun the simulation, but if you started. Because I have: result=vensim.command("SPECIAL>LOADMODEL|C:\\Documents and Setti...