Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having the possibilty to manage multiple simulation at once #82

Open
floriangc opened this issue Nov 5, 2021 · 3 comments
Open

Having the possibilty to manage multiple simulation at once #82

floriangc opened this issue Nov 5, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@floriangc
Copy link
Contributor

Problem

I want to run at least 2 simulation at the same time, so to register for on SymuFlow dll multiple simulation. Currently SymuPy only use the defualt network id when calling the C interface.

@floriangc floriangc added the enhancement New feature or request label Nov 5, 2021
@aladinoster aladinoster assigned aladinoster and becarie and unassigned aladinoster Nov 8, 2021
@aladinoster
Copy link
Contributor

aladinoster commented Nov 15, 2021

  • Check in SymuFlow how are increments of NetworkID managed.

@aladinoster aladinoster added this to the v1.2.0 milestone Nov 17, 2021
@aladinoster
Copy link
Contributor

Use case:

x = cdll.LoadLibrary('libSymuFlow.dylib')
id_sim1 = x.LoadNetwork('my_file.xml')

id_sim2 = x.LoadNetwork('my_file.xml')
x.SymurunNextStepEx(id_sim1)
simulator = Simulator() #id1 
simulator2 = Simulator() #id2

with simulator1, simulator2: 
   simulator1.run_step()
   simulator2.run_step()
  • Add return of simulation id in LoadNetworkEx
  • Modify Simulator instances for matching the corresponding runtime action. run_step(simulation_id)

@aladinoster aladinoster self-assigned this Nov 22, 2021
@aladinoster
Copy link
Contributor

No updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants