473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Genetic algorithm Problem

93
Hi,
I wanted to create a genetic algorithm for this question :
Suppose you are out shopping. You have to buy things from different n number of stores. And have to bring home the goods required from every store. There is an amount(specified in kg) of goods that you have to buy at each store and once at a store, you have to buy that total amount. Of course, carrying all this weight around is going to cost you energy. So, you want to do this the most energy-saving way. Multiple visits to home are allowed, and all the weight can be dumped when you arrive at home. Carrying your body around would cost a constant amount of energy per meter. There would be an edge list as well as a node weight list as the problem description.
Actually, I started to make a program for this (using genetic algorithms), but I got stuck with the crossover function. As the paths can have a length of 2*n + 1, the length of the solutions varied so I couldn't really do it. I chose to do this for a project in a subject, but in the end I had to change it to a modified version of TSP (By removing multiple visits to home.).
So, can anyone tell me of a good way to implement the crossover function?
Or, are genetic algorithms a bad method for the problem? If so, do tell me what methods may be useful here? Thanks.
Oct 17 '07 #1
1 2024
DumRat
93
Can anyone help please?
Oct 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jelle Feringa / EZCT Architecture & Design Researc | last post by:
Could anyone recommend me a genetic algorithm package? So far I have found a few, such as GAS, pyGP, Genetic, and of course scipy.ga My problem is that most of the development of these packages...
2
by: SNAKE | last post by:
hey somebody have any experience using genetic algorithm? i have a problem, I'll try to write game "circle and cross" based on the genetic algorithm anybody can help me? /Snake
3
by: ThanhVu Nguyen | last post by:
Hi, I am looking for a forumn or newgroups that is about Genetic Programming. Since this group probably is the most active and and largest programming ng so I thought probably someone will know...
10
by: Ruben Hoste | last post by:
Hello, I'm currently looking for more information on Genetic Algorithms and more specifficaly on how to program them in Java or C++. This is all concerning my thesis. A lot of general information...
2
by: Xiao Jianfeng | last post by:
Hi all, I am looking for a genetic algorithms package for Python. I have googled the web before posting and found some links. The link of pygene(http://www.freenet.org.nz/python/pygene) cannot...
0
by: Vishal Patil | last post by:
Check out a new and simple Python base genetic algorithm framework at http://vishpat.googlepages.com/pgap -- Motivation will almost always beat mere talent.
8
by: sharadbags | last post by:
hi all I want to implement genetic algotithm using C++ for an optimisation problem can anyone suggest some good websites ,resources for programming in GA like tutorial etc. or anything helpful...
1
by: alpareshamwala | last post by:
pl. help me if u are good in genetic algorithms to implement the individuals and chromosomes... Alpa
6
by: John Ladasky | last post by:
Hi folks, I've played around with neural nets for a while. I wrote my own slow, pure-Python NN package. I knew that there were Python NN packages out there -- but I couldn't really understand...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.