COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### batch entities depending on the attributes

• Email
• Follow

```I am working in Arena 7.01.00

I want to compare entities and batch them in pairs depending on the
attributes of the individual entities. The entities are paper reels.

The entities have the attributes diameter, width, machine number.

I want to batch them in pairs if:

If (They have the same machine number)
And
If (the differense in diameter is not more than 100mm)
And
If (width of entitie1+ width of entite2 is not more than 3 times the
diameter of entitie1

And now comes the tricky part.

If I can't batch entite1 and entite2 then I want to compare entite2
and entite3.

If I can't batch entite2 and entite3 then I want to compare entite3
and entite4....

Does anyone have any thoughts on how to solve this problem?

```
 0
Reply lokrantz (1) 10/13/2005 10:33:54 PM

See related articles to this posting

```rantz wrote:

> I am working in Arena 7.01.00
>
> I want to compare entities and batch them in pairs depending on the
> attributes of the individual entities. The entities are paper reels.
>
> The entities have the attributes diameter, width, machine number.
>
> I want to batch them in pairs if:
>
> If (They have the same machine number)
> And
> If (the differense in diameter is not more than 100mm)
> And
> If (width of entitie1+ width of entite2 is not more than 3 times the
> diameter of entitie1
>
> And now comes the tricky part.
>
> If I can't batch entite1 and entite2 then I want to compare entite2
> and entite3.
>
> If I can't batch entite2 and entite3 then I want to compare entite3
> and entite4....
>
> Does anyone have any thoughts on how to solve this problem?

I had to do that two different ways in a beginning programming course.  The
hard part was finding a second reasonable way to do it.  Both algorithms
ran in n^^2 time.

--
JosephKK

```
 0

1 Replies
193 Views

Similar Articles

12/11/2013 12:17:45 AM
page loaded in 4828 ms. (0)

Similar Artilces:

dependencies
Can someone point me in the right direction to take the dependencies out of the following code ? for (i=0; i < m; i++) { n1 = n2; n2 = n2 + n2; e = -6.283185307179586/n2; a = 0.0; for (j=0; j < n1; j++) { c = cos(a); s = sin(a); a = a + e; for (k=j; k < n; k=k+n2) { { t1 = c*x[k+n1] - s*y[k+n1]; t2 = s*x[k+n1] + c*y[k+n1]; x[k+n1] = x[k] - t1; y[k+n1] = y[k] - t2; x[k] = x[k] + t1; y[k] = y[k] + t2; } } } } -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp...

Problem with Solidworks Block Attributes vs. AutoCAD Block Attributes
Hello All, A Block in Autocad lets me change every attribute individually. For example; I have a octagon block that has attributes for "CurrentPage" and "CurrentLine". The same block is used 21 times down the left margin. I use this format for electrical schematics. In Autocad I change the attributes to one of those blocks and the rest stay the same. I saved this block into a solidworks block and used it the same way in solidworks, but when I change one "CurrentLine" attribute it changes every "CurrentLine" for every instance of that block. Can an...

Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question
This is the most important question of your life. The question is: Do you floss? It is not a question of how well you brush, nor if you use mouthwash, but do you floss? Are you sure you will keep all the teeth you still have? The reason some people don't know for sure if they are maintaining a preventitive oral dentifrice is because they just don't know what those words mean. The good news is that you can know for sure whether you will keep all of your teeth. Dental textbooks describe full-toothed-ness as a beautiful place with no death, sorrow, sickness or pain. Dentitists tell...

attribute grammars
Hi, I'm looking at easier ways to write attribute grammars for a preprocessor I have. Speed is not as important as being able to just quickly write the grammar (this is for a preprocessor and changing attribution is common). Currently I just manually walk over the ast and, while flexible, it's confusing. A few years back I used ELI that, for all I can tell, is a common way to deal with attribute grammars. ELI contains an attribute grammar language where each attribute can only be assigned once and is a function of attributes within the same node or nodes directly below. (There are al...

Dependency solving
How are cyclic dependencies solved in object-oriented languages? Say, we have a class (in a C++-like language): class T { public: T clone() { T p(); return p; } }; To solve dependencied of the class T, which depends on the method clone(), the type checking mechanism must solve dependencies of clone(), which depends on T. A simple, recursive solver, like this pseudocode: solve_type(t) if (t == class) solve_class(c) end solve_class(c) for all m in methods solve_method(m) end solve_method(m) ...

what is the dependence vector
Hi I'm reading the paper "A Data Locality Optimizing Algorithm", by Michael E. Wolf and Monica S. Lam. In section 2, it describes the dependence vector as, >>" a generalization of distance and direction vectors. A dependence vector in an n-nested loop is denoted by a vector d=(d1,d2,...,dn) each component di is a possibly infinite range of integers, represented by [di_min, di_max], where di_min b Z b* {-b}, di_max b Z b* {b} and di_min b \$ di_max <<" Here, a n-nested loop corresponds to a finite convex polyhedron of iteration space Zn (n pow...

Batch mode
Hi, i want a script whose collects/links various scripts to process an image. Am 28.11.2010 12:15, schrieb Jo_y: > Hi, > i want a script whose collects/links various scripts to process an > image. Best batch processor for images is IMO ImageMagick: http://www.imagemagick.org/ Over the years, I made a lot of scripts to automize my image processing workflow. ImageMagick is extremely powerful and helpful ... though (or better: because) its greatest capabilities are accessible from a shell. Please be more specific or give a detailed example of what you are planning to do, so this g...

Dependence Analysis
Dear all, I am developing a source-to-source compiler based on LLVM/clang. Now I find myself in a situation where I need dependence analysis. I know there are some efforts in building dependence analysis in LLVM based on the IR representation but I need dependence analysis at the AST level. I was looking at the state of the art in production compilers (like GCC and Open64) and the only reasonable way to go seems to be the Polyhedral model (which will also simplify loop transformations). The main problem is that there are several libraries used to solve the integer linear programming model and...

null attribute
how to check for null attribute in form input field using IE this does not work in IE var curr_id = tablecells[i].getAttribute('name'); if (curr_id != null){ .... } TJS wrote: > how to check for null attribute in form input field using IE > > this does not work in IE > > var curr_id = tablecells[i].getAttribute('name'); > if (curr_id != null){ > ... > } > > if(var curr_id = tablecells[i].getAttribute('name')) Mick that compares values but doesn't give me the desired result and doesn't check to see if it's nul...

dependency order
i'm having trouble trying to figure this out... it's part of a build system i'm writing in python. maybe someone has a good simple way to solve this. i'm trying to create a dependency order out of multiple lists. list1: B C list2: A B list3: A C i want the end result to be the list: A B C i'm very frustrated that i can't come up with anything that always works. thanks... any clues to solve this would be greatly appreciated. bryan belred@gmail.com schrieb: > i'm having trouble trying to figure this out... it's part of a build > system i'm writin...

Extended attributes
What are extended attributes (associated with a file) ? What is their purpose ? junky_fellow@yahoo.co.in wrote: > What are extended attributes (associated with a file) ? > What is their purpose ? To allow users/programmers to assosicate arbitary keyword/value pairs with a file, done outside the actual data of the file itself. For instance a http/ftp/etc. downloader might associate the URL from where the file was downloaded with the file. On some implementations the extended attributes is also used to store ACL lists for the file, and/or other system specific attributes. Nils O. Sel...

Batch Crop
I have around 2000 images I need to crop off about 3/4" - the problem is all these images are different sizes, but the bottom is a set 3/4"...I have tried a number of ways to create an action for batch, but nothing is working... Ideas? To0w1r3d@gmail.com wrote: > I have around 2000 images I need to crop off about 3/4" - the problem > is all these images are different sizes, but the bottom is a set > 3/4"...I have tried a number of ways to create an action for batch, but > nothing is working... > > Ideas? > Here's an idea of how to approach it. ...

View Dependencies
Is there any way to show assembly features (specifically the planes) in the view dependencies list? I'm trying to have a (relatively) direct way to find out what components are mated to a particular plane Michael: But you can RMB on a part in an assembly and pick "View Mates". As for a "direct" way to view any dependencies you can RMB on a plane and pich "Parent/Child". Hope that helps a little Jacob "Michael" <mbush@light-deletedashtodash-houseoptics.com> wrote in message news:OkYRb.107784\$Su5.28415@twister.nyroc.rr.com... > Is there...

File attributes
Hello. Please tell me someone, how can I get file attributes in my script like creation time and content modification time? Thanks d...@inotech.ru wrote: > Hello. Please tell me someone, how can I get file attributes in my > script like creation time and content modification time? Thanks my @attr = stat(\$filename); if you look up "Perl stat" on Google, you should be able to map the index number in the returned array to the content stored in that index. also, if you are only interested in one piece of info about the file, like the size, you can do: my \$filesize = (stat(\$f...

Missing dependence in Makefile
When I try compile ruby with `make -j5` I got such messages: ruby ./tool/generic_erb.rb --output=id.h \ ./template/id.h.tmpl --vpath=.ext/include/x86_64-linux/ruby:./include/ruby:./enc:./missing parse.h id.h updated gcc -O2 -march=core2 -mtune=core2 -msse -msse2 -msse3 -mmmx -O0 -ggdb3 -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o unicode.o -c ./enc/unicode.c gcc -O2 -march=core2 -mtune=core2 -msse -msse2 -msse3 -mmmx -O0 -ggdb3 -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o newline.o -c newline.c Generating RDoc documentat...

analyzing dependencies in code
Hello, I have a bunch of rather convoluted C code that uses a lot of global variables. I'm trying to see if I can devise some automatic way of analyzing this code, helping me understand it. Suppose I can obtain the AST for this code (using c2c). I want to analyze the AST and, given some global variable V, understand which other global variables it affects, and what functions can be called as a result of a change in it. I tried approaching this the ad-hoc way, but it's becoming complicated. I see some parallels to dataflow analysis here, though it seems to be a bit different. Any ide...

Bourne to Batch file
Dear Experts, I need to translate Bourne scripts to Batch files. Please help me with the Batch commands equivalent to Bourne commands. Thank you! Regards, Kanav In article <1184976588.826470.249800@g4g2000hsf.googlegroups.com>, <arorakanav@gmail.com> wrote: >Dear Experts, > >I need to translate Bourne scripts to Batch files. >Please help me with the Batch commands equivalent to Bourne commands. What are "Batch files" ? In general, shell scripts are executable via the "batch" command, if that is any help. arorakanav@gmail.com writes: > D...

batch resize gifs
am looking for a program that will batch resize GIF animations (not simply GIF images, but multiple frame animations). I have found some programs that will do them one by one, and some programs that will do batch, but only export the first frame (hence they do not support animations). I would also like to find one that gives me the choice of a few different type of filters (bspline, hermite, lanczos3, ...). Does anyone know of such a program? Thank you for any information, Michael B. Williams Hi, On 23 Sep 2004 21:10:14 -0700, Michael B. Williams said: > am looking for a program t...

recursive module dependencies
Greetings. I'm installing a module (updated CPAN), and in the course of which, it complains that it needs Cwd. Cwd is part of PathTools . So I download and try to install PathTools. PathTools won't install because I'm missing Cwd. How do I install Cwd when it requires Cwd to have been installed? hymie! http://www.smart.net/~hymowitz hymie@lactose.smart.net =============================================================================== hymie! <hymie@lactose.smart.net> wrote in comp.lang.perl.misc: > Greetings. > > I'm installing a module ...

WTO from a batch REXX
Hi all, I am working on a Rexx that will run in batch. I want to issue a WTO for AFOPER to pick up, and was wondering if there was anything special I needed to do. TIA, Mickey In article <1106329588.855721.257760@c13g2000cwb.googlegroups.com>, Mickey <mickeyb@comcast.net> wrote: > Hi all, > I am working on a Rexx that will run in batch. I want to issue a WTO > for AFOPER to pick up, and was wondering if there was anything special > I needed to do. You can either invoke (an assembler) program which will issue the WTO, perhaps passing some of the text in from re...