I've made a mess of my VI and I'm lost

Anybody that could help would be helping my immensely.
I have incorporated a new subVI into this simple genetic algorithm VI. The problem is that originally, initially an array was formed. Now a cluster is formed and it has messed up the rest of my VI. as the data types are different.
I have included the VI, can anyone suggest how I would fix it? The broken wires show where (I am assuming) the data types are incompatible and the system breaks down. Also, the aim of the "calculate fitness VI" was to sum all of the values in the array and return the overall value as an evaluation function. Do I have this part set-up correctly?
Thanks
Alan Homer
P.S. Genetic Algorithm is the main overall VI, the other VI's are subVIs in the main VI.
Attachments:
GebeticAlgorithmV3 Modified.llb ‏393 KB

Thanks for the help mate but I think there still maybe some misunderstanding as to what I am trying to achieve. I have worked through the GA and for a while I thought it was working but after a closer look I realized it is not achieving its aims. I have worked through the GA from start to finish and mentioned what I expect to see at each point.
1) On the front panel, the user inputs a vlaue for the "Number of Samples" and "Length" which correspond to the number of arrays wanted and the length of these arrays. For a simple case scenario I tried to run Number of Samples = 5, and Length =2.
2) These values then pass into the "N Random Arrays VI" and 5 arrays of length of 2 should be created and filled with floating point numbers randomly selected between 0 and 1. i.e. an example of the expected output here would be [0.12, 0.45], [0.98, 0.65], [0.45, 0.32], [0.76, 0.74], and [0.01, 0.67]. (These have just been made up by me to show what I want to be produced).
3) These N arrays should then pass into the  "Calculate Fitness.vi" which is presently set to calculate "4 x Total sum of array elements" in each array, therefore all 5 arrays would be assigned a fitness value (i.e.for my example arrays above the respective fitness values would be 2.28, 6.52, 3.08, 6 and 2.72.
4) Ignoring the statistics route for now, each of these 5 arrays should pass into the "RouletteWheelSelectionSmallArray.vi" where these "parent" arrays are paired up and undergo a crossover procedure dependant on their fitness values. The higher the fitness value the more likely they are to be involved in the crossover procedure. They then undergo a 0.1% chance of a random mutation at a random point on an array. At this point at the end of this subVI there should still be a population of 5 arrays consisting of 2 floating point values, but which are different to the initial population.
5) There is then a feedback loop that returns these 5 new arrays to the "Calculate Fitness VI" and the process repeats until the average fitness is optimized.
In testing the GA I placed a write to spreadsheet subVI at the enf of (4) so in theory I should be prompted in each generation (one single loop) for 5 file names in which in each should be placed an array of 2 floating point values between 0 and 1. Instead I get the results:
Generation 0 (the first loop using the 5 initial arrays in theory): one file that contains the values 0.536 and 0.462 (exactly what I want but I want 5 of these in each generation not just one) and I was prompted for a second filename in generation 0 and inside it returned the values (4,3,4,4,3) that look to be like the sample numbers 5 times? (not what is required).
In generation2 I was prompted for another filename that returned the value 72, and another filename that returned the value 288 (72 x 4). By this point I think the VI is just looping an individual fitness value and multiplying it by 4 instead of assigned 5 arrays of 2 values a fitness function each. Then in following generations the same proces occurs, i.e. the gen 4 values were 1152 (288 x 4) and 4608 (1152 x 4).
Can anyone help put this procedure correct so that the VI does what it should? I have tried following the process through step by step and I can't see why it's not working.
Thanks
I was prompted for nothing
Message Edited by alanhomer on 03-30-2006 03:25 AM
Attachments:
Copy of Simple GA Alan.llb ‏414 KB

Similar Messages

  • After bridge crash i made a reinitialisation of workspace standard and I have lost all my keywords on my photos  How can I get them back I'm on mac 10.7.5 Thanks

    my bridge crashed yesterday I couldn't open It
    i opende it with Alt : it proposed me to  purge the memory cache  i did it  no result
                                      It proposed me to reinitialize the standard workspace i did it
    miracle bridge opened !
    but i was awful to see that i lost all my keywords in moy photos
    i keep my collections , my author na     me
    but more than 8 years of job are lost
    sOmeone can help me ti find them
    i have a time machine safegarde .. may be I can find them back in an older safegarde but i don't know wher I can find my keywords
    Thanks a lot if someone can help me I'm in complete despair

    How were they syncing before; were they in iCloud or maybe in one of your email accounts?

  • Bought the iphone 5 today, and when i turned it on it made me set up the language and my origin of country. Then it made me set up wi fi settings but my wi fi settings are messed up! Now i can't proceed to press next! Please help!!

    Bought the iphone 5 today, and when i turned it on it made me set up the language and my origin of country. Then it made me set up wi fi settings but my wi fi settings are messed up! Now i can't proceed to press next! Please help!!

    No
    It says ' Your ipj
    your iphone could not be activated because the activation server cannot be reached. try connecting your iphone to itunes to activate it, or try again over the cellular connection in a couple of minutes. You can also try to activate using a Wi-Fi connection.'
    HELP:(

  • Made a mess with Migration Assistant, Two user accounts. Help!

    I got a new MacBook Pro Retina with Yosemite. Tried to use migration assistant to take files from my old 2008 MacBook (I only wanted photos, videos, music and documents - no applications, etc). After an excrutiatingly long time, I've made a mess of my new MacBook Pro. I now have two user accounts with my name. How do I delete the second? I have tried going into system preferences > users and push the delete key. This DOES NOT work! It makes that ping noise. I am computer slow so please help me with step by step directions on how to delete the extra user.
    Also, I have now realized that this awful new MacBook Pro Retina has no disc drive and I have a 2008 Microsoft word CD I want to install. What can I do here?
    For the record, I'm hating this new computer.
    Thank you guys!

    1. Log out of the account you want to delete, unlock the Users & Groups pane, select it, and then delete it.
    2. Use an external optical drive such as Apple's USB SuperDrive, or one inside another computer.
    (122445)

  • Closed captions + SDH made a mess by Apple TV 6.0. Any fixes?

    We've found that the Apple TV 6.0 software update made a mess of closed captions + SDH .  It suddenly changed the size and color and font on its own.  To make things worse, when we try to send them right with the new customizable closed caption style settings, we can't make them look like they did before the 6.0 software update.  The customizable choices are too small, too large, or much too large than they were before.

    The movies are not orphaned. There is a flaw in the latest version. There are several posts on this issue. Actually be happy they are on AppleTV. Several of us have purchased through iTunes. We sync, but when the computer loses the link with ATV requiring a new code. When the code is entered it re-syncs itunes and ATV, but you lose the movies that were transferred to ATV requiring you to move movies back to ATV.
    They are probably working on a fix.

  • Customer service messed up my order and they won't correct delivery date

    I woke up at 3am to order the iphone 5s in gold.  I was the first call for the agent.  Ordered but because of a system glitch it wouldn't let me confirm order.  Agent said to do later in the day.  My delivery date was going to be 10/14 for 2 gold phones.  When I checked again later around 10am I saw that the agent had ordered me a gold and another color I did not want!  Called him back and told him the order was Wrong!  He said he would fix it and I would get a confirmation via email in 15 minutes.  When I got the email the order was corrected to 2 gold phones BUT I would not get my phones until NOV 4th!!  What!!?? I am a new customer switching from another company and the agent also changed the agreed upon phone number for my daughter PLUS he added services that I did NOT want and wasn't in the first order!  What!!?  So I called him back and he said he was going to get his supervisor to fix it.  Nothing happened.  I called again and talked to the same agent and he told me that his supervisor would call me on Monday.  I never got a call.  He made promises to fix it and nothing happened.  I made 10 or more calls to different agents trying to fix this and no one was helpful.  I am now wondering if it is a big mistake to switch carriers...... If this is the kind of service you receive and no one is willing to help fix the problem then it is very concerning.  I have gotten the complete runaround.  I was lied to and I was given false promises.  If there is any Verizon customer service person who can fix this then please respond.  It wasn't my fault that the rep made a mistake with my order and it wasn't my fault that your system had a glitch.  I really have a hard time understanding why you can't fix this.  If there is any doubt to what happened I have all emails and you can always listen to the rep's call with me and you will find he repeated back the correct order of 2 GOLD iphones several times...........  I hope your company isn't so big that you don't care about your individual customers.

    LOL... My standard advice when stupidity has taken over.  The paperwork clearly backs the customer, but somebody on the phone can't see it.  By taking the whole mess to a store - preferably on a busy Saturday - the employees are more likely to want to help to prevent a meltdown.  Just discussing this type of mistake in front of other customers is a potential sales killer.
    it has actually worked for a couple of people, which is why I suggest it.

  • Thanks for responding.  Since I upgraded ITUNES to IOS 6, my IPOD Touch no longer works at all.  I had numerous apps, music and videos on this touch.  It made me restore to factory reset and it still does not work!!! Nothing I do will work on this touch n

    Thanks for responding. Since I upgraded ITUNES to IOS 6, my IPOD Touch no longer works at all. I had numerous apps, music and videos on this touch. It made me restore to factory reset and it still does not work!!! Nothing I do will work on this touch now. I have so much data on this, I don't want to loose or have to restore!
    Can you help me?
    Thanks

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • Please Help! Somehow I have messed up my password and now I am locked out of my iPod. Is there a way to get back in without losing all my photos?

    Please Help! Somehow I have managed to mess up my password and now I am locked out of my Ipod.  Is there a way back in without losing all my photos?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I am trying to use an external 3g modem made by Huawei model e173s-6 and when I do connect it on my usb port the macbook pro just do not recognize it. I own a 2012 model with mountain lion 10.8.2 . What should I do ?

    I am trying to use an external 3g modem made by Huawei model e173s-6 and when I do connect it on my usb port the macbook pro just do not recognize it. I own a 2012 model with mountain lion 10.8.2 . What should I do ?

    I still don't know what happened to my test Aperture Library after the update to 3.4...Not only were my previews lost, but so were the original images!  Needless to say, I haven't bothered to update the main library on the Mac Pro because I don't want to deal with this level of uncertainty (even with backups in place).

  • Have made a rebbot from Time Machine, and now I lack a lot of pictures. Can see icons, but not enlarge them. Especially pictures where 2009 is included in the date is missing? When I set up my desktop, I can find some of the pictures. Where do They hide,

    Missing Pictures.
    Have made a rebbot from Time Machine, and now I lack a lot of pictures. Can see icons, but not enlarge them. Especially pictures where 2009 is included in the date is missing?
    When I set up my desktop, I can find some of the pictures. Where do They hide, and what shall I do.
    Have made back up, but unfortunately a little too late. What to do?
    MacBook Pro 15 "late 2008, Processor 2.53 Ghz Intel Core 2 Duo, Graphics NVIDIA GeForce 9400M 256 MB, Software Mac OS X 10.7.4 Lion (11E53).

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • I´m a frequent user of personalized tags on my contacts.  When I update to iOS7.0.2, my tags don't appear on alphabetical order as they were on the other system. I already made a restoration of the system and it didn't work. Is there any way to fix them?

    I´m a frequent user of personalized tags on my contacts.  When I update to iOS7.0.2, my tags don’t appear on alphabetical order as they were on the other system. I already made a restoration of the system and it didn’t work. Is there any way to fix them?

    I´m taking about the "CUSTOM LABELS"

  • Messed up user names and folders

    I got my five-month-old G5 back from the repair shop (after four weeks and a wiped hard drive , everything working fine, I reinstalled all my software (Adobe CS2, printer drivers, NeoOffice), installed mail accounts again etc.
    But, the "home" folder/my account name had been set by the repair shop to "test" which I tried to change to James; all this did was create another folder on the HD/users folder called James, with its own set of library, documents etc. I have been using that for the last few weeks. Still logged in a Test, I guess, since "James" isn't actually a seperate account, just a folder. But today I decided I didn't want to be known as Test anymore, and had another go at changing it. Mostly because it's easier to access to "home/test" folder from Finder and in application menus, and I didn't like having these two "users".
    Oh dear.
    I really don't know what I did wrong, but suddenly I am back to square one. I've been bitten by data loss twice now, so at least all my files are backed up onto an external 250Gb Lacie Disk. But all my bookmarks, mail settings, and software preferences are reset and I can't get them back, or find them in spotlight. I now have Test (with a little house icon) and two folders, James and James O, the name I tried to change Test to just now. The other User Folders are not users as such, I can't log in as them, they are just folders. The bookmarks from the James folder and the Test folder bear no relation to the bookmark structure I laboriously set up in Safari. I can't find any of my settings anywhere, and my restart has just bought up a factory fresh finish...
    And the home user is still called Test.
    I would phrase this query more succinctly but I am afraid I am at breaking point, losing my machine for four weeks nearly put me out of business and the thought that my settings might so easily be wiped again makes me reluctant to want to spend more time fixing it. And I am very confused as to the difference between "Test" the home folder (whose name I have changed in account settings but springs back to Test when I restart); and the other folders. All of which have various Adobe settings/fonts etc stored away in the libraries, but all of them different.
    Which one does the computer use?
    And if it's always the home account - in my case Test, why would any setting changes I have made be made in a different folder? And if in renaming Test, I actually casued the old settings to be stored in a folder called James or James O, where are the bookmarks, the application preferences?
    I'm hoping there is a mac whizz out there who has some extra-terrerestial powers of understanding of my clumsy explanation here, and who could point me in the right direction; sorry to be less clear. but my brain is just fried. I have spent soooooo many days just fixing/installing/rebooting/fixing this **** machine, it is a far cry from the sweet Mac ads ("when funky designer X wanted to revolutionise the entire music and video business all he used was his shiny new G5....."). If it wasn't so pretty it would be 25 floors down on the Hong Kong sidewalk by now. Actually scrap that, if it wasn't my livelihood and if I had any money to buy a PC, its days would be numbered.
    Help please? If not technical then tea and sympathy appreciated.
    Thanks
    James

    Ditto!!! I just did the same thing this past weekend. Bought a "new" PB with OS 10.4.4. Ran the PB for a few days setting up internet access info, mail accounts, download prefs, configuring Firefox with bookmarks, plug-ins & exts. Looked at the Sys Prefs Control panel for Accounts and saw the account name was "newuser" but also saw that I could change the name to my own name "macnicol". Change the account name but could not change the "short name". Didn't think much of that at the time. Ran for a while longer without logging out, updating bookmarks and other goodies. Finally a Firefox upgrade required a restart. After restarting it was apparent that my desktop was different than before the restart. When I ran Firefox it was a square 1 with no ext, plug-ins, history or bookmarks. When I clicked the "home" icon it took me to "newuser". When I checked the accounts, only "macnicol" showed as an active account. It appears now that when ever I configure an applic such as Firefox it updates files in the invisible "newuser" account Library files and whenever I restart everything in "macnicol" is back to a new account square one point. How do I combine "newuser" and "macnicol" to get one account with all of the things I have configured so far? Or how do I set up a new "home" account and start over?
    Thanks, macnicol
    PB TI GB Mac OS X (10.4.5)

  • I recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    i recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    I don't think you're on iOS 5, I think you're using iOS 6.  That's the latest version.
    Unless you've used iCloud to back up your documents, you won't be able to restore them.  And for future reference, you don't have to uninstall Pages to update your iPad anymore.  Sorry about this.

  • HT4009 I made a purchase in an app and it didn't go through but it took money from my iTunes account, how do I get my money back?

    I made a purchase in an app and the app didn't give me the purchase, but took money from my iTunes account. How do I get my money back?

    Hi Epic Awesome16,
    Thanks for visiting Apple Support Communities.
    If you were charged for an In-App Purchase that you did not receive, first try reporting an issue with your purchase using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933
    Cheers,
    Jeremy

  • Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

    Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Hope this helps,
    JD

Maybe you are looking for

  • ThinkPad W530 Review

    Just wanted to give a heads up about a review of the W530 that's written by a user who owns the W520, so it's heavy on comparisons which is kind of helpful if you're familiar with that machine.  I'll quote the whole review below sans all the images t

  • Is enable commenting grayed out in trial version?

    I have a trial version of Acrobat X Pro, and Save as > Reader Extended PDF > Enable Commenting and Measuring is grayed out and not functional. The trial says that it's a fully-functional version, so it's possibly something else. Any ideas?

  • Parent value allocation considering aggregation operator

    Hello all Essbase gurus, I would appreciate an idea how to solve this allocation requirement. Outline (_Important_: In this example, consolidation property is set to "(+)Addition" for two members and "(-)Subtraction" for next three members.) : Accoun

  • A question about LSO content player

    I am at the learning portal. However I can not find the menu path to start the content player. Could you tell me how to launch the content player from learning portal? Thank you

  • Paint an image in the background of the JDesktopPane?

    I need to show an image in the background of an multidocument Java application (Swing based). It's not possible overwritting the method "paint" of the class "JDesktopPane" (appear some problems). Can anybody help me, please? Thanks a lot.