[galib] RE: galib Digest, Vol 7, Issue 5

Yang Jian Xin, SMMR Product(SZ) JianXin.Yang at SIEMENS.COM
Fri Jan 30 07:09:41 EST 2004


I work for a branch of siemens in shenzhen China. I am intrested in GA for a long time, and i have use the it in my work.
I found that many problems have been described in the relative documents, but a few not.
for this problem, you can check the file of "answers to frequently asked questions about GAlib", this file can be download easily on the web. good luck

-----Original Message-----
From: galib-request at mit.edu [mailto:galib-request at mit.edu]
Sent: Saturday, January 24, 2004 1:01 AM
To: galib at mit.edu
Subject: galib Digest, Vol 7, Issue 5


Send galib mailing list submissions to
	galib at mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.mit.edu/mailman/listinfo/galib
or, via email, send a message with subject or body 'help' to
	galib-request at mit.edu

You can reach the person managing the list at
	galib-owner at mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of galib digest..."


Today's Topics:

   1. Visual c++ problem (Essam Almasri)
   2. Visual c++ problem2 (Essam Almasri)
   3. memory usage of galib


----------------------------------------------------------------------

Date: Thu, 22 Jan 2004 09:05:58 -0800 (PST)
From: Essam Almasri <masryesam at yahoo.com>
To: galib at mit.edu
Subject: [galib] Visual c++ problem
Message-ID: <20040122170558.3464.qmail at web41401.mail.yahoo.com>
Content-Type: multipart/alternative; boundary="0-1954192734-1074791158=:2679"
MIME-Version: 1.0
Precedence: list
Message: 1

--0-1954192734-1074791158=:2679
Content-Type: text/plain; charset=us-ascii


Dear Sir Madam

I am Essam Almasri. I am Ph.D. Student at the university of Hannover. I am learning Genetic algorithm. I have tried to learn the examples written by you (ex1, ex2, ex3). I have used them in Microsoft visual C++ using Win32 console applications. At first when I compile there was so many errors then I have used #include <iostream> and #include <fstream> instead of #include <iostream.h>

#include <fstream.h>. Then there was no error. but further when I execute it there was another types of error, for example:

inker-Vorgang läuft...

ex3.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)

ex3.obj : error LNK2001: unresolved external symbol "public: float __thiscall GABin2DecGenome::phenotype(unsigned int)const " (?phenotype at GABin2DecGenome@@QBEMI at Z)

please whould you like to guide me to solve this peoblem. How can I excecute your examples?

Thank you in advance

Regards



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--0-1954192734-1074791158=:2679
Content-Type: text/html; charset=us-ascii

<DIV><FONT size=2>
<P>Dear Sir Madam</P>
<P>I am Essam Almasri. I am Ph.D. Student at the university of Hannover. I am learning Genetic algorithm. I have tried to learn the examples written by you (ex1, ex2, ex3). I have used them in Microsoft visual C++ using Win32 console applications. At first when I compile there was so many errors then I have used #include &lt;iostream&gt; and #include &lt;fstream&gt; instead of #include &lt;iostream.h&gt;</P>
<P>#include &lt;fstream.h&gt;. Then there was no error. but further when I execute it there was another types of error, for example:</P>
<P>inker-Vorgang läuft...</P>
<P>ex3.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)</P>
<P>ex3.obj : error LNK2001: unresolved external symbol "public: float __thiscall GABin2DecGenome::phenotype(unsigned int)const " (?phenotype at GABin2DecGenome@@QBEMI at Z)</P>
<P>please whould you like to guide me to solve this peoblem. How can I excecute your examples?</P>
<P>Thank you in advance</P>
<P>Regards</P></FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! SiteBuilder - Free web site building tool. <a href="http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/"><b>Try it!</b></a>
--0-1954192734-1074791158=:2679--
------------------------------

Date: Thu, 22 Jan 2004 10:26:40 -0800 (PST)
From: Essam Almasri <masryesam at yahoo.com>
To: galib at mit.edu
Subject: [galib] Visual c++ problem2
Message-ID: <20040122182640.61295.qmail at web41411.mail.yahoo.com>
Content-Type: multipart/alternative; boundary="0-2079188438-1074796000=:61236"
MIME-Version: 1.0
Precedence: list
Message: 2

--0-2079188438-1074796000=:61236
Content-Type: text/plain; charset=us-ascii

Dear Sir/Madam
I have done the following to compile the galib with vc++ and almost all the errors are solved except this:
LINK : fatal error LNK1104: cannot open file "ga.lib"
Fehler beim Ausführen von link.exe.
 
 
To compile the galib with vc++ you have to follow this step: 
1. In gaconfig.h add this line at the start of the file
       #define NO_STREAMS
2. In the project properties dialog go to c++/advanced+calling convention 
select the __cdecl (/Gd)
3. In the project properties go to Linker/Input and set the Additional 
dependencies like this:
  ga.lib
  msvcprtd.lib
  msvcrtd.lib
  LIBCMT.lib
4. In the project properties go to Linker/Input and set the ignore Specifir 
Library like this:
  msvcprtd.lib
  msvcrtd.lib
  LIBCMT.lib
5. in the project properties dialog go to Linker/General/Additional Library 
Directories and put the file directory where the galib files are. 
 
Regards


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--0-2079188438-1074796000=:61236
Content-Type: text/html; charset=us-ascii

<DIV>Dear Sir/Madam</DIV>
<DIV>I have done the following to compile the galib with vc++ and almost all the errors are solved except this:</DIV>
<DIV>LINK : fatal error LNK1104: cannot open file "ga.lib"<BR>Fehler beim Ausführen von link.exe.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>To compile the galib with vc++ you have to follow this step: </DIV>
<DIV>1. In gaconfig.h add this line at the start of the file<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #define NO_STREAMS<BR>2. In the project properties dialog go to c++/advanced+calling convention <BR>select the __cdecl (/Gd)<BR>3. In the project properties go to Linker/Input and set the Additional <BR>dependencies like this:<BR>&nbsp; ga.lib<BR>&nbsp; msvcprtd.lib<BR>&nbsp; msvcrtd.lib<BR>&nbsp; LIBCMT.lib<BR>4. In the project properties go to Linker/Input and set the ignore Specifir <BR>Library like this:<BR>&nbsp; msvcprtd.lib<BR>&nbsp; msvcrtd.lib<BR>&nbsp; LIBCMT.lib<BR>5. in the project properties dialog go to Linker/General/Additional Library <BR>Directories and put the file directory where the galib files are. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! SiteBuilder - Free web site building tool. <a href="http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/"><b>Try it!</b></a>
--0-2079188438-1074796000=:61236--
------------------------------

Date: Thu, 22 Jan 2004 19:57:40 -0000
From: <kaare at ehp.dk>
To: <galib at mit.edu>
Subject: [galib] memory usage of galib
Message-ID: <20040122195740.BC74442C25 at valhal.egmont-kol.dk>
Precedence: list
Message: 3

hello all

as part of a bachelor project at DTU in denmark, we have written a program for
optimizing task graph assignments to multi-processor architechtures using
galib. this all works like a charm, only we have a serious problem on memory
usage, which increases rapidly as evolution progresses through the generation.
 
intuitively we would guess that a genetic algorithm will only use a constant
amount of memory as it maintians a population of constant size (we use fixed
size populations only), plus possible some temporary data for crossover etc.
is this a correct assumption (and in particular is this true for galib)?
 
if, as we expect, the answer to the above is yes, the error must be in our
program. does anybody have any examples of classic blunders when dealing with
galib, are there any objects one should pay special care to delete or free for
each generation or similar???

hope that someone can help, it would greatly help our project if we could find
a cure, or at least an explanation.

many thanks in advance
kåre poulsen and kasper jørgensen
copenhagen, denmark

> 
> 
> 
> ________________________________________________________________
> 
> This message was sent using Egmont Hall of Residence webmail system.
> For more information visit http://www.ehp.dk
> 



-- 






________________________________________________________________

This message was sent using Egmont Hall of Residence webmail system.
For more information visit http://www.ehp.dk

------------------------------

_______________________________________________
galib mailing list
galib at mit.edu
http://mailman.mit.edu/mailman/listinfo/galib


End of galib Digest, Vol 7, Issue 5
***********************************



More information about the galib mailing list