PMC Forums  

Go Back   PMC Forums > Simulation > Simulation Analysis
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Simulation Analysis simulation software (Arena, AutoMod, Enterprise Dynamics, ExtendSim, PlantSim, ProModel, SIMUL8, WITNESS), input and output analysis, experimental design, optimization, simulation model verification and validation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2011, 05:26 PM
Subcommander Subcommander is offline
Member
 
Join Date: Dec 2011
Posts: 3
Default [arena] how to define more conditions in one branch

hi, I am newbie in arena and I have following problem: I need insert more condtions for one branch in decide process(in N-way by conditions). for example something like that, but in right syntax:
"expression, variable1==1 and variable2==2 and variable3=0"

can somebody write right syntax of this?
Reply With Quote
  #2 (permalink)  
Old 12-09-2011, 06:11 PM
vinc91 vinc91 is offline
Member
 
Join Date: Nov 2011
Posts: 9
Default

Hello,

I am not sure I have clearly understood what you want.
If you want to add some conditions, use the Decide panel (Basic Process), and choose N way by condition, and add your conditions. You will then be able to compare, but not assign a new value (for your variable 3). If you want to assign a value to a variable, use the Assign Panel (in Basic Process)
Reply With Quote
  #3 (permalink)  
Old 12-09-2011, 06:27 PM
Subcommander Subcommander is offline
Member
 
Join Date: Dec 2011
Posts: 3
Default

in first case, I want to apogies, I wrote bad example, I dont want assing new value, right example is:
"expression, variable1==1 and variable2==2 and variable3==0"

I know where add conditions, only problem is right syntax.
Reply With Quote
  #4 (permalink)  
Old 12-11-2011, 06:23 AM
Subcommander Subcommander is offline
Member
 
Join Date: Dec 2011
Posts: 3
Default

anyone cant help me? maybe you dont understand what i want. hope, picture help

i dont know right syntax in expression in red cyrcle:
http://imageshack.us/f/818/arenaq.png/
Reply With Quote
  #5 (permalink)  
Old 12-11-2011, 03:04 PM
lthoa lthoa is offline
Member
 
Join Date: Jun 2011
Posts: 28
Default

[QUOTE=Subcommander;8328]anyone cant help me? maybe you dont understand what i want. hope, picture help

i dont know right syntax in expression in red cyrcle:
http://imageshack.us/f/818/arenaq.png/[/QUOTE]

Replace "AND" by "&&" such as: variable1==1 && variable2==2 and you're done.

You may also use a handy feature named "Build expression" by right click on the text box "Value" (or wherever you need to enter an expression).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:16 AM.



Content Relevant URLs by vBSEO 3.0.0