Quantcast
Channel: MATLAB Central Newsreader - tag:"variables"
Viewing all articles
Browse latest Browse all 41

Re: Bathcing variables

$
0
0
Hi Robin and Wei,

If you were using 16a (the major update to SimEvents), you could use some new features for this.

But since you are using 15b, I can send you the model I sent Mads. (I will send it in a separate email directly.)

-Teresa

"robin smit" <r.m.b.smit@student.tue.nl> wrote in message <nojtmd$er1$1@newscl01ah.mathworks.com>...
> Hi Wei, i am using Matlab 2015b.
> MATLAB Version: 8.6.0.267246 (R2015b)
>
> Thanks in advance,
> Robin
>
> "Wei Li" wrote in message <noigtq$g6e$1@newscl01ah.mathworks.com>...
> > Hi Robin,
> >
> > Which version of MATLAB are you using? I need this information because that decides the possible solutions.
> >
> > If you don't know which version. Please type in MATLAB command-line window:
> >
> > >> ver
> >
> > And look in the first couple of lines for something like:
> >
> > MATLAB Version: 9.0.0.341360 (R2016a)
> >
> > Thanks,
> > Wei
> >
> > "robin smit" <r.m.b.smit@student.tue.nl> wrote in message <no9mtf$ik1$1@newscl01ah.mathworks.com>...
> > > Hi Teresa,
> > > I am currently facing a similar problem as Mads, where i need to Batch and Unbatch entities with a variable size. Could you please also send me the model for the more sophisticated batching and unbatching, or provide me with some insight on how to approach this problem.
> > >
> > > Any help will be appreciated.
> > >
> > > Thanks in advance,
> > > Robin
> > >
> > >
> > > "Teresa Hubscher-Younger" <teresa.hubscher-younger@mathworks.com> wrote in message <ljoa3m$hlk$1@newscl01ah.mathworks.com>...
> > > > Hi Mads,
> > > >
> > > > I don't think using the MATLAB Central blocks for batching and unbatching will help with this problem, especially given that you have variable amounts of cargo you want to let through.
> > > >
> > > > I am going to send you a model to your gmail address that does some more sophisticated batching and unbatching. I think you should be able to use a variable to control the batch amounts in it. If you need more explanation, let me know, and I will try to set up some time to talk through your problem.
> > > >
> > > > -Teresa
> > > >
> > > > "Mads " <madsulstein@gmail.com> wrote in message <ljmd2m$m4n$1@newscl01ah.mathworks.com>...
> > > > > Hi Teresa and thanks for your reply.
> > > > >
> > > > > Yes, I am using the blocks from M. Central
> > > > >
> > > > > I am modeling a system where entities are stored in a "tank" until offloaded by vessels.
> > > > > The vessels has a certain capacity.
> > > > > The time between each offloading is stochastically distributed, thus the level in the tank will sometimes be bellow the cargo capacity of the vessels and some times above.
> > > > > I want to batch entities not only when they correspond to the cargo capacity, but also for all levels bellow. This mean that the vessel should sometimes sail without utilizing all of its cargo capacity.
> > > > >
> > > > > Do you know another method of doing this?? I am strugeling, so I would really appreciate your help :)
> > > > >
> > > > > Regards, Mads
> > > > >
> > > > >
> > > > > The time between offloading is stochastically distributed, thus the level in the tank
> > > > > "Teresa Hubscher-Younger" <teresa.hubscher-younger@mathworks.com> wrote in message <ljm5ta$1gg$1@newscl01ah.mathworks.com>...
> > > > > > Hi Mads,
> > > > > >
> > > > > > Did you get these blocks from MATLAB Central? I am worried there is no way to vary the batch quantity during simulation.
> > > > > >
> > > > > > -Teresa
> > > > > >
> > > > > > "Mads " <madsulstein@gmail.com> wrote in message <ljm1o8$iqr$1@newscl01ah.mathworks.com>...
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am using Simevents "Batching and Unbatching" blocks to model a transport system.
> > > > > > > Is there a way to vary the "batch quantity" parameter during simulation?
> > > > > > > It is possible to input parameters from workspace to the block, but I would like this parameter to change during the simulation. I have tried to use global variables, without luck.
> > > > > > >
> > > > > > > Can someone please let me know how to do this?
> > > > > > >
> > > > > > > Regards,
> > > > > > > Mads

Viewing all articles
Browse latest Browse all 41

Trending Articles