Comments (4)
This isn't enough to go on...can you provide more context? As in, what does your call to either look like, how is your communicator setup, etc.? Alternatively, you can just post your model.
from anylogic-pypeline.
i am calling the function run to set x, then i will call the function runresults to get x. To do this i wrote:
pyCommunicator.run("x=3.14"); \ to set x
Attempt xValue= pyCommunicator.runResults(double.class,"x"); \ to get x
traceln(xValue);
from anylogic-pypeline.
Well if you use the "shortcut" version of runResults
- passing the output type - you need to have the variable you're assigning the same.
As in, you want either:
double xValue= pyCommunicator.runResults(double.class,"x");
or
Attempt attempt = pyCommunicator.runResults("x");
double xValue = attempt.getFeedback(double.class);
I don't see why the run
call would fail. If it is, please attach your model so I can take a full look at it.
from anylogic-pypeline.
I'll assume it works, feel free to reopen if you still have qs
from anylogic-pypeline.
Related Issues (20)
- Reinforcement learning HOT 5
- fromJson for an int[][] HOT 2
- Agent population to json issue HOT 2
- Pycommunicator not dragging onto the experiment page in anylogic HOT 2
- Reinforcment Learning HOT 1
- Error with setting up python subprocess (Macbook) HOT 2
- Encoding error when trying to save a file on Windows HOT 1
- Python files missing HOT 1
- Issues with Python on Mac HOT 2
- Issue with reflectiveObjects HOT 2
- No able to open the model examples HOT 1
- Bug with Mac HOT 6
- Issue with AnyLogic 8.8.2 HOT 1
- Run Python scripts before each experiment run HOT 6
- jsonifier library error HOT 4
- Error during model creation in AnyLogic HOT 3
- Pypeline and AnyLogic Cloud HOT 3
- Unable to load a pickled object HOT 3
- Python and Anylogic Connection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anylogic-pypeline.