You can subscribe to this list here.
2008 |
Jan
(4) |
Feb
(49) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: William E. <fr...@gm...> - 2008-07-01 14:12:00
|
Tim, thank you. Jon, I look forward to working with you. Does your defintion of documentation include the webste? Will On Tue, Jul 1, 2008 at 2:56 PM, Tim Watson <tw...@dm...> wrote: > I've made both Will and Jon project admins (they were the only two to > express an immediate interest in continuing with the project). With > great power comes great responsibility! > > Tim. > > Tim Watson wrote: >> Will has expressed an interest in continuing to develop the project. >> I've said that when the degree marks are published I can make him a >> project admin to give him full control over the project. If anyone of >> the other current developers is also interested in becoming a project >> admin then let me know and I'll sort it out. This seems like a sensible >> move as I haven't the time to make any significant contributions in the >> forseeable future and the admin(s) should be actively involved. >> >> All the best, >> >> Tim. >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> sga-devel mailing list >> sga...@li... >> https://lists.sourceforge.net/lists/listinfo/sga-devel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > -- http://fragmad.tumblr.com - Writing/Climbing http://www.twitter.com/fragmad/ http://quicktale.blogspot.com - Fiction http://www.catandcthulhu.com - Homepage |
From: Tim W. <tw...@dm...> - 2008-07-01 13:56:30
|
I've made both Will and Jon project admins (they were the only two to express an immediate interest in continuing with the project). With great power comes great responsibility! Tim. Tim Watson wrote: > Will has expressed an interest in continuing to develop the project. > I've said that when the degree marks are published I can make him a > project admin to give him full control over the project. If anyone of > the other current developers is also interested in becoming a project > admin then let me know and I'll sort it out. This seems like a sensible > move as I haven't the time to make any significant contributions in the > forseeable future and the admin(s) should be actively involved. > > All the best, > > Tim. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel |
From: Tim W. <tw...@dm...> - 2008-07-01 13:49:39
|
That sounds like a fine idea and it's OK by me. Tim. m04...@dm... wrote: > Tim, > > Id like to continue with the documentation side if ok? > > Jon > >> Will has expressed an interest in continuing to develop the project. >> I've said that when the degree marks are published I can make him a >> project admin to give him full control over the project. If anyone of >> the other current developers is also interested in becoming a project >> admin then let me know and I'll sort it out. This seems like a sensible >> move as I haven't the time to make any significant contributions in the >> forseeable future and the admin(s) should be actively involved. >> >> All the best, >> >> Tim. >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> sga-devel mailing list >> sga...@li... >> https://lists.sourceforge.net/lists/listinfo/sga-devel >> > |
From: <m04...@dm...> - 2008-07-01 13:31:24
|
Tim, Id like to continue with the documentation side if ok? Jon > Will has expressed an interest in continuing to develop the project. > I've said that when the degree marks are published I can make him a > project admin to give him full control over the project. If anyone of > the other current developers is also interested in becoming a project > admin then let me know and I'll sort it out. This seems like a sensible > move as I haven't the time to make any significant contributions in the > forseeable future and the admin(s) should be actively involved. > > All the best, > > Tim. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > |
From: Tim W. <tw...@dm...> - 2008-06-18 01:07:54
|
Will has expressed an interest in continuing to develop the project. I've said that when the degree marks are published I can make him a project admin to give him full control over the project. If anyone of the other current developers is also interested in becoming a project admin then let me know and I'll sort it out. This seems like a sensible move as I haven't the time to make any significant contributions in the forseeable future and the admin(s) should be actively involved. All the best, Tim. |
From: Colin W. <m03...@dm...> - 2008-02-29 20:13:07
|
I seem to be having problems to port the gui to windows as I cannot get the pango locale files out of cygwin aka it run on my windows box but only with cygwin installed (so close but so far). the major problem I am finding is the link between the cygwin folder and my gsga program or complete lack of it so basicly what happens when I move it too another windows box is :- (sga:1560): Gdk-WARNING **: locale not supported by Xlib (sga:1560): Gdk-WARNING **: cannot set locale modifiers (sga:1560): Gtk-WARNING **: cannot open display: (solved cannot open display problem with xming) anyway just thought I'll let everyone know my current situration Kind Regards Colin |
From: Tim W. <tw...@dm...> - 2008-02-24 18:07:35
|
Dear Lewis, I'm sort of philosophically opposed to changing a mail sent by someone else but you're right that it's just too easy to hit reply to and send to the commit list. Consequently, I've set that list to replace the reply to field by a reply to sga-devel. For all other lists, I'd urge everyone to check what they're sending and to whom - normally you only need to send a reply to the list, not to the sender as well. I hope that this helps. All the best, Tim. Lewis wrote: > sorry was replying to the wrong one and hadn't noticed. > > on a side note, is it possible to set the reply-to header field in the > milling list configuration so that just by selecting reply, the email > will automatically be sent to the mailing list instead of the person > that sent the message originally? it seems people are just selecting > reply-all and not modifying the recipient information resulting in > duplicate email messages. i know this is possible on some mailing list > systems but not sure about the one we are using. > > Lewis. <snip> |
From: Lewis <os...@el...> - 2008-02-24 17:00:45
|
Yeah yeah, sorry I was half asleep and posted to the wrong one! :P Tim Watson wrote: > I agree with Lewis (although this should have been posted to the > sga-devel list). Commits should be regular but when they are done others > are then sharing your code. It should be as correct as possible and as > carefully put together as possible. Testing it before committing is also > a fine idea :-) > > Tim. > > Lewis wrote: > >> I am not intending to criticise or blame anyone in particular, but just >> wanted to point out a couple of things... >> >> I don't understand why formatting and indentation is being removed or >> made worse when patches are submitted? Often HTML seems to have double >> or trailing spaces here there and everywhere making it inconsistent with >> what is being output in browsers. HTML tags without a closing >> counterpart are not written as self-closing. There also seems to be a >> tendency to overuse the <br /> tag to insert spacing when really the CSS >> padding/margins should be modified for consistency across the site. >> >> I am a bit concerned that the code is in danger of looking a bit dirty >> and unprofessional, and unless we keep an eye out for these and similar >> errors, the pages will not validate XHTML-strict. I think it would be >> good if we could all keep on top of things and make sure the code is >> accurate and correct in both its syntax and formatting. >> >> Regards, >> Lewis. >> >> sy...@us... wrote: >> >>> Revision: 60 >>> http://sga.svn.sourceforge.net/sga/?rev=60&view=rev >>> Author: syinet >>> Date: 2008-02-24 03:53:22 -0800 (Sun, 24 Feb 2008) >>> >>> Log Message: >>> ----------- >>> added extra content to about page as well as an sga screen shot. >>> >>> Modified Paths: >>> -------------- >>> trunk/web/about.html >>> >>> Modified: trunk/web/about.html >>> =================================================================== >>> --- trunk/web/about.html 2008-02-24 10:27:52 UTC (rev 59) >>> +++ trunk/web/about.html 2008-02-24 11:53:22 UTC (rev 60) >>> @@ -1,11 +1,11 @@ >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> >>> <head> >>> - <title>About SGA - The Simple genetic Algorithm</title> >>> - <meta name="description" content="" /> >>> - <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> >>> - <link rel="stylesheet" title="Normal" type="text/css" media="screen" href="./styles/screen.css" /> >>> - <script type="text/JavaScript" src="javascript/external.js"></script> >>> +<title>About SGA - The Simple genetic Algorithm</title> >>> +<meta name="description" content="" /> >>> +<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> >>> +<link rel="stylesheet" title="Normal" type="text/css" media="screen" href="./styles/screen.css" /> >>> +<script type="text/JavaScript" src="javascript/external.js"></script> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sga-commit mailing list >> sga...@li... >> https://lists.sourceforge.net/lists/listinfo/sga-commit >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > |
From: Tim W. <tw...@dm...> - 2008-02-24 16:03:32
|
Thanks for the positive comments Lewis. I'm intending to put the population fields in a structure and pass that between the functions, then split the code into separate files with headers where necessary. I'd appreciate it if no-one else modifies the tim branch as I want to be consistent in my modifications. Anyone else is free to take a copy and create another branch. When the modularisation is complete we can try to merge it back into the main line of development. I'll do it as quickly as I can but it might be a few days yet as I'm snowed under with other work. Tim. Lewis wrote: > I think these changes are a good idea and perhaps should be merged with > the main trunk. I was hoping something like this would be possible later > on to perhaps allow the sga code to be split up into smaller files > meaning people can work on individual bits without causing conflicts in > the SVN repository, and maybe make things easier to read? ...not sure - > what do you guys think? > > Lewis. > > tim...@us... wrote: >> Revision: 58 >> http://sga.svn.sourceforge.net/sga/?rev=58&view=rev >> Author: tim-watson >> Date: 2008-02-24 01:38:43 -0800 (Sun, 24 Feb 2008) >> >> Log Message: >> ----------- >> Partial modularisation of sga.c in tim branch. >> >> Modified Paths: >> -------------- >> branches/tim/code/sga.c >> >> Modified: branches/tim/code/sga.c >> =================================================================== >> --- branches/tim/code/sga.c 2008-02-23 23:36:23 UTC (rev 57) >> +++ branches/tim/code/sga.c 2008-02-24 09:38:43 UTC (rev 58) >> @@ -64,6 +64,7 @@ >> #define RNG(N) (rand()%(N)) /* and set RNG() to rand() */ >> #else /* else */ >> #include <gsl/gsl_rng.h> /* include a good random number generator */ >> +gsl_rng *prng; /* define a pointer to it */ >> #define RNG(N) (gsl_rng_uniform_int(prng,(N))) /* and set RNG() to it */ >> #endif /* endif NOGSL */ >> >> @@ -87,11 +88,17 @@ >> double mean, /* mean fitness for generation */ >> std_dev; /* standard deviation of fitnesses */ >> >> -int main(int argc, char *argv[]) { >> - int i, j, k, gen, choice, count[80], >> - fconv=0, fconv_gen=0, pconv=0, pconv_count, pconv_gen=0; >> - >> - /* accept the command line options */ >> + >> +void accept_options(int, char **); >> +void diplay_params(void); >> +void init_prng(void); >> +void init_pop(void); >> +void calc_fit(void); >> + >> + >> + >> +/* accept the command line options */ >> +void accept_options(int argc, char *argv[]) { >> while (--argc>0 && (*++argv)[0]=='-') >> switch (*++argv[0]) { >> case 'p': if (*++argv[0]) >> @@ -146,56 +153,89 @@ >> break; >> default: break; >> } >> - >> - /* display the significant parameter settings */ >> +} >> + >> + >> + >> +/* display the significant parameter settings */ >> +void display_params() { >> printf("--------------------------------------------------\n"); >> printf("popsize =%5d\tchromsize =%5d\n", popsize, chromsize); >> printf("crossrate =%5d\tmuterate =%5d\n", crossrate, muterate); >> printf("fitfunc =%5d\tboostfit =%5d\n", fitfunc, boostfit); >> printf("--------------------------------------------------\n"); >> - >> - /* initialise the PRNG */ >> +} >> + >> + >> + >> +/* initialise the PRNG */ >> +void init_prng() { >> #ifdef NOGSL >> srand(rseed); >> #else >> - gsl_rng * prng = gsl_rng_alloc(gsl_rng_ranlxs2); >> + prng = gsl_rng_alloc(gsl_rng_ranlxs2); >> gsl_rng_set(prng, rseed); >> #endif /* NOGSL */ >> +} >> >> - /* initialise the population */ >> + >> + >> +/* initialise the population */ >> +void init_pop() { >> + int i, j; >> + >> for (i=0; i<popsize; i++) >> for (j=0; j<chromsize; j++) >> curr[i][j] = '0' + (RNG(2)); /* RNG(N+1) returns rand int from [0..N] */ >> +} >> + >> + >> + >> +/* calculate fitness of current population */ >> +void calc_fit() { >> + int i, j; >> + >> + for (i=0; i<popsize; i++) { >> + switch (fitfunc) { >> + case 2: fit[i] = RNG(chromsize+1) + 1; /* random */ >> + break; >> + case 3: fit[i] = 1; /* onemax */ >> + for (j=0; j<chromsize; j++) >> + fit[i] += curr[i][j] - '0'; >> + break; >> + case 4: fit[i] = 1; /* diffmax */ >> + for (j=0; j<chromsize; j++) >> + fit[i] += curr[i][j] - '0'; >> + if (fit[i] < ((chromsize+1)/2)+1) >> + fit[i] = chromsize + 2 - fit[i]; >> + break; >> + case 5: fit[i] = curr[i][0] - '0'; /* integer */ >> + for (j=1; j<chromsize; j++) >> + fit[i] = (fit[i]<<1) + curr[i][j] - '0'; >> + fit[i]++; >> + break; >> + default: fit[i] = 1; /* constant */ >> + break; >> + } >> + fit[i] *= boostfit; >> + } >> +} >> + >> + >> + >> +int main(int argc, char *argv[]) { >> + int i, j, k, gen, choice, count[80], >> + fconv=0, fconv_gen=0, pconv=0, pconv_count, pconv_gen=0; >> >> + accept_options(argc, argv); >> + display_params(); >> + init_prng(); >> + init_pop(); >> + >> /* main loop of genetic algorithm */ >> for (gen=1; gen!=gens; gen++) { >> - >> - /* calculate fitness of current population */ >> - for (i=0; i<popsize; i++) { >> - switch (fitfunc) { >> - case 2: fit[i] = RNG(chromsize+1) + 1; /* random */ >> - break; >> - case 3: fit[i] = 1; /* onemax */ >> - for (j=0; j<chromsize; j++) >> - fit[i] += curr[i][j] - '0'; >> - break; >> - case 4: fit[i] = 1; /* diffmax */ >> - for (j=0; j<chromsize; j++) >> - fit[i] += curr[i][j] - '0'; >> - if (fit[i] < ((chromsize+1)/2)+1) >> - fit[i] = chromsize + 2 - fit[i]; >> - break; >> - case 5: fit[i] = curr[i][0] - '0'; /* integer */ >> - for (j=1; j<chromsize; j++) >> - fit[i] = (fit[i]<<1) + curr[i][j] - '0'; >> - fit[i]++; >> - break; >> - default: fit[i] = 1; /* constant */ >> - break; >> - } >> - fit[i] *= boostfit; >> - } >> - >> + calc_fit(); >> + >> /* calculate stats, and display stats and individuals, if required */ >> if (((gen-1)%displfreq) == 0) { >> mean = best = worst = fit[0]; >> @@ -285,31 +325,7 @@ >> /* end of main loop of genetic algorithm */ >> } >> >> - /* calculate fitness of last generation */ >> - for (i=0; i<popsize; i++) { >> - switch (fitfunc) { >> - case 2: fit[i] = RNG(chromsize+1) + 1; /* random */ >> - break; >> - case 3: fit[i] = 1; /* onemax */ >> - for (j=0; j<chromsize; j++) >> - fit[i] += curr[i][j] - '0'; >> - break; >> - case 4: fit[i] = 1; /* diffmax */ >> - for (j=0; j<chromsize; j++) >> - fit[i] += curr[i][j] - '0'; >> - if (fit[i] < ((chromsize+1)/2)+1) >> - fit[i] = chromsize + 2 - fit[i]; >> - break; >> - case 5: fit[i] = curr[i][0] - '0'; /* integer */ >> - for (j=1; j<chromsize; j++) >> - fit[i] = (fit[i]<<1) + curr[i][j] - '0'; >> - fit[i]++; >> - break; >> - default: fit[i] = 1; /* constant */ >> - break; >> - } >> - fit[i] *= boostfit; >> - } >> + calc_fit(); >> >> /* calculate and display stats and individuals in last generation */ >> mean = best = worst = fit[0]; >> >> >> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sga-commit mailing list >> sga...@li... >> https://lists.sourceforge.net/lists/listinfo/sga-commit >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-commit mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-commit |
From: Tim W. <tw...@dm...> - 2008-02-24 15:58:55
|
I agree with Lewis (although this should have been posted to the sga-devel list). Commits should be regular but when they are done others are then sharing your code. It should be as correct as possible and as carefully put together as possible. Testing it before committing is also a fine idea :-) Tim. Lewis wrote: > I am not intending to criticise or blame anyone in particular, but just > wanted to point out a couple of things... > > I don't understand why formatting and indentation is being removed or > made worse when patches are submitted? Often HTML seems to have double > or trailing spaces here there and everywhere making it inconsistent with > what is being output in browsers. HTML tags without a closing > counterpart are not written as self-closing. There also seems to be a > tendency to overuse the <br /> tag to insert spacing when really the CSS > padding/margins should be modified for consistency across the site. > > I am a bit concerned that the code is in danger of looking a bit dirty > and unprofessional, and unless we keep an eye out for these and similar > errors, the pages will not validate XHTML-strict. I think it would be > good if we could all keep on top of things and make sure the code is > accurate and correct in both its syntax and formatting. > > Regards, > Lewis. > > sy...@us... wrote: >> Revision: 60 >> http://sga.svn.sourceforge.net/sga/?rev=60&view=rev >> Author: syinet >> Date: 2008-02-24 03:53:22 -0800 (Sun, 24 Feb 2008) >> >> Log Message: >> ----------- >> added extra content to about page as well as an sga screen shot. >> >> Modified Paths: >> -------------- >> trunk/web/about.html >> >> Modified: trunk/web/about.html >> =================================================================== >> --- trunk/web/about.html 2008-02-24 10:27:52 UTC (rev 59) >> +++ trunk/web/about.html 2008-02-24 11:53:22 UTC (rev 60) >> @@ -1,11 +1,11 @@ >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> >> <head> >> - <title>About SGA - The Simple genetic Algorithm</title> >> - <meta name="description" content="" /> >> - <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> >> - <link rel="stylesheet" title="Normal" type="text/css" media="screen" href="./styles/screen.css" /> >> - <script type="text/JavaScript" src="javascript/external.js"></script> >> +<title>About SGA - The Simple genetic Algorithm</title> >> +<meta name="description" content="" /> >> +<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> >> +<link rel="stylesheet" title="Normal" type="text/css" media="screen" href="./styles/screen.css" /> >> +<script type="text/JavaScript" src="javascript/external.js"></script> >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-commit mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-commit |
From: Tim W. <tw...@dm...> - 2008-02-24 15:55:56
|
Please don't send mail to the sga-commit list. It is supposed to be an automatically generated list of commits. It is easy to reply to a commit post and accidentally mail to sga-commit but please don't do it! Tim. |
From: Lewis <os...@el...> - 2008-02-24 14:59:43
|
This is cool dude, nice one. Matt Lester wrote: > hi all, > I've added some content to the about page which needs proof reading, > adding to, correcting etc. I'm not 100 percent on some of the > terminology so you feedback is essential! > > > matt lester > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > |
From: Matt L. <m05...@dm...> - 2008-02-24 12:26:52
|
I'm finding spelling errors already :) See if you can find them. Did you know that we previously had the sub heading 'gentic Algorithms' matt lester Matt Lester wrote: > hi all, > I've added some content to the about page which needs proof reading, > adding to, correcting etc. I'm not 100 percent on some of the > terminology so you feedback is essential! > > > matt lester > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > |
From: Tim W. <tw...@dm...> - 2008-02-24 12:26:52
|
Matt, That looks much better. I've committed some minor edits rather than sending you a patch. Tell me if you'd prefer a patch in future. Tim. Matt Lester wrote: > hi all, > I've added some content to the about page which needs proof reading, > adding to, correcting etc. I'm not 100 percent on some of the > terminology so you feedback is essential! > > > matt lester > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel |
From: Matt L. <m05...@dm...> - 2008-02-24 11:55:21
|
hi all, I've added some content to the about page which needs proof reading, adding to, correcting etc. I'm not 100 percent on some of the terminology so you feedback is essential! matt lester |
From: Tim W. <tw...@dm...> - 2008-02-23 13:33:06
|
This looks wrong. The title of the page now has 'sgas - The...' rather than 'sga - The...', the title has made genetic lowercase when it shouldn't be and various spaces have been removed while others at the ends of lines appear to have been added for no reason. I could go on. Tim. sky...@us... wrote: > Revision: 53 > http://sga.svn.sourceforge.net/sga/?rev=53&view=rev > Author: skywalker85 > Date: 2008-02-23 05:20:29 -0800 (Sat, 23 Feb 2008) > > Log Message: > ----------- > spotted, and amended grammatical errors on the win support tutorial > > Modified Paths: > -------------- > trunk/web/support_runonwin.html > <snip> |
From: Thomas S. <m03...@dm...> - 2008-02-22 19:54:57
|
Patch for problem with low resolutions, applying the patch will allow for low resolution users to now see the update button. Index: gsga.c =================================================================== --- gsga.c (revision 51) +++ gsga.c (working copy) @@ -302,7 +302,7 @@ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); gtk_window_set_title(GTK_WINDOW(window), "Simple Genetic Algorithm (SGA)"); - gtk_widget_set_size_request(GTK_WIDGET(window), 1024,768); + gtk_widget_set_size_request(GTK_WIDGET(window), 1024,500); main_vbox = gtk_vbox_new(FALSE, 1); make_vbox(main_vbox, window); |
From: Matt L. <m05...@dm...> - 2008-02-22 13:40:25
|
hi, my fedora machine has a relatively small resolution 600x800. when i ran the gui the bottom half of the window was chopped off and i couldn't access any buttons at the bottom. Is there a way we could make the default size of the window either fit the screen or have a smaller adjustable window on load? Matt Lester |
From: Thomas S. <m03...@dm...> - 2008-02-21 22:29:29
|
This patch will add a about section for the gui which will contain licence information and credits. Index: gsga.h =================================================================== --- gsga.h (revision 48) +++ gsga.h (working copy) @@ -1,6 +1,7 @@ static void destroy( GtkWidget *widget, gpointer data); void make_vbox(GtkWidget* main_vbox, GtkWidget* window); static GtkWidget *make_box(gboolean homogeneous, gint spacing, gboolean expand, gboolean fill, guint padding); +void view_about(); void on_button_released(GtkWidget *button); void on_button_pressed(GtkWidget *button); void on_button_clicked(GtkWidget *button); @@ -10,6 +11,8 @@ static GtkItemFactoryEntry menu_items[] = { { "/_File", NULL, NULL, 0, "<Branch>"}, { "/File/Exit", "<CTRL>Q", gtk_main_quit, 1, "<StockItem>", GTK_STOCK_QUIT }, + { "/_Help", NULL, NULL, 0, "<Branch>"}, + { "/Help/About", "<CTRL>A", view_about, 1, "<StockItem>", GTK_STOCK_ABOUT }, }; static gint nmenu_items = sizeof (menu_items) / sizeof (menu_items[0]); Index: gsga.c =================================================================== --- gsga.c (revision 48) +++ gsga.c (working copy) @@ -49,6 +49,31 @@ gtk_main_quit(); } +void view_about() +{ + char *name = "gsga"; + char* comments = "gsga is a graphicsal user interface,\nwhich is designed to run with the sga program."; + char* web_label = "sga project site"; + char* weblink = "http://sga.sourceforge.net"; + char* licence = "gsga is distributed under the GNU GENERAL PUBLIC LICENCE Version 3\na copy of the licence can be found by going to the following website:\nhttp://www.gnu.org/licenses/gpl-3.0.txt"; + + char* author[] = {"Lewis Bond", "William Ellwood", + "Matthew Lester", "Thomas Smith", + "Tim Watson", "Colin Wilkinson", + "David Whiteley", NULL}; + + char* docu[] = {"Lewis Bond", "William Ellwood", + "Matthew Lester", "Thomas Smith", + "Tim Watson", "Colin Wilkinson", + "David Whiteley", NULL}; + + gtk_show_about_dialog (GTK_WINDOW(window),"name", name, + "comments", comments, "website-label", web_label, + "website", weblink, "license", licence, "authors", + author, "documenters", docu, NULL, NULL, + NULL, NULL); +} + /* Creates items within the top menu bar */ static GtkWidget *get_menubar_menu(GtkWidget *window) { |
From: Colin W. <m03...@dm...> - 2008-02-21 21:31:36
|
At the moment gsga can only be ran in the sga directory as SGAPATH is equal to ./sga the patch below fixes this by playing with argv[0]. This patch still assumes that sga is in the same directory as gsga. ----------------------------------------------patch start----------------------- Index: gui/gsga.c =================================================================== --- gui/gsga.c (revision 46) +++ gui/gsga.c (working copy) @@ -2,6 +2,7 @@ #include <unistd.h> #include "gsga.h" #include <stdio.h> +#include <string.h> #include <stdlib.h> char input[2000], @@ -41,8 +42,20 @@ int i = 0; -const char *SGAPATH = "./sga"; +const char *SGAPATH; +/* gets the absolute path of sga*/ +void init(char* path) +{ + int mc = strlen(path); + path[mc-4] = 's'; + path[mc-3] = 'g'; + path[mc-2] = 'a'; + path[mc-1] = '\0'; + + SGAPATH = path; +} + /* A callback function which quits the program when called */ static void destroy(GtkWidget *widget, gpointer data) { @@ -273,6 +286,7 @@ */ int main(int argc, char *argv[]) { + init(argv[0]); gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); -----------------------------------------patch end----------------------------- hope this helps Kind Regards Colin |
From: Lewis <os...@el...> - 2008-02-21 20:32:28
|
Yeah I think I agree. When changing those in particular, it didn't seem to make particular sense as it didn't "look clearer", thought it best to follow the rules though. Noted though, I will see about putting those ones back. Lewis. Tim Watson wrote: > Lewis, > > It might conform but one rule in any good codingstyle is not to conform > if it's best not to! I prefer no space around some operators, e.g. > > fred = harry*joe + 2*fred; > > is easier to read than > > fred = harry * joe + 2 * fred; > > In the code you changed, I prefer > > if (((gen-1)%displfreq) == 0) { > > to > > if (((gen-1) % displfreq) == 0) { > > as it makes clear that the meat of the expression is the ==. > > I applaud any attempt to clean up code, though! > > Tim. > > fif...@us... wrote: > >> Revision: 47 >> http://sga.svn.sourceforge.net/sga/?rev=47&view=rev >> Author: fifthdim >> Date: 2008-02-21 12:11:00 -0800 (Thu, 21 Feb 2008) >> >> Log Message: >> ----------- >> Begin modifications to code layout to hopefully make it easier to read, encourage participation and conform with CODINGSTYLE docs. >> >> Modified Paths: >> -------------- >> trunk/code/sga.c >> >> Modified: trunk/code/sga.c >> =================================================================== >> --- trunk/code/sga.c 2008-02-21 12:05:11 UTC (rev 46) >> +++ trunk/code/sga.c 2008-02-21 20:11:00 UTC (rev 47) >> @@ -132,30 +132,30 @@ >> #endif /* NOGSL */ >> >> /* initialise the population */ >> - for (i=0; i<popsize; i++) >> - for (j=0; j<chromsize; j++) >> + for (i = 0; i < popsize; i++) >> + for (j = 0; j < chromsize; j++) >> curr[i][j] = '0' + (RNG(2)); /* RNG(N+1) returns rand int from [0..N] */ >> - >> + >> /* main loop of genetic algorithm */ >> - for (gen=1; gen!=gens; gen++) { >> + for (gen = 1; gen != gens; gen++) { >> >> /* calculate fitness of current population */ >> - for (i=0; i<popsize; i++) { >> + for (i = 0; i < popsize; i++) { >> switch (fitfunc) { >> case 2: fit[i] = RNG(chromsize+1) + 1; /* random */ >> break; >> case 3: fit[i] = 1; /* onemax */ >> - for (j=0; j<chromsize; j++) >> + for (j = 0; j < chromsize; j++) >> fit[i] += curr[i][j] - '0'; >> break; >> case 4: fit[i] = 1; /* diffmax */ >> - for (j=0; j<chromsize; j++) >> + for (j = 0; j < chromsize; j++) >> fit[i] += curr[i][j] - '0'; >> if (fit[i] < ((chromsize+1)/2)+1) >> fit[i] = chromsize + 2 - fit[i]; >> break; >> case 5: fit[i] = curr[i][0] - '0'; /* integer */ >> - for (j=1; j<chromsize; j++) >> + for (j = 1; j < chromsize; j++) >> fit[i] = (fit[i]<<1) + curr[i][j] - '0'; >> fit[i]++; >> break; >> @@ -166,9 +166,9 @@ >> } >> >> /* calculate stats, and display stats and individuals, if required */ >> - if (((gen-1)%displfreq) == 0) { >> + if (((gen-1) % displfreq) == 0) { >> mean = best = worst = fit[0]; >> - for (i=1; i<popsize; i++) { >> + for (i = 1; i < popsize; i++) { >> mean += fit[i]; >> if (fit[i] > best) >> best = fit[i]; >> @@ -177,31 +177,31 @@ >> } >> mean /= popsize; >> std_dev = 0.0; >> - for (i=0; i<popsize; i++) >> + for (i = 0; i < popsize; i++) >> std_dev += (fit[i]-mean)*(fit[i]-mean) / popsize; >> std_dev = sqrt(std_dev); >> - if ((!fconv) && (std_dev==0)) { /* if fit converged */ >> + if ((!fconv) && (std_dev == 0)) { /* if fit converged */ >> fconv = 1; >> fconv_gen = gen; >> } >> setGenInfo(gen); >> - for (i=0; i<chromsize; i++) /* init column counts */ >> + for (i = 0; i < chromsize; i++) /* init column counts */ >> count[i] = 0; >> - for (i=0; i<sizedispl; i++) { >> + for (i = 0; i < sizedispl; i++) { >> setSequenceOpen(); >> - for (j=0; j<chromsize; j++) { /* show individuals */ >> + for (j = 0; j < chromsize; j++) { /* show individuals */ >> setSequenceChar(curr[i][j]); >> count[j] += curr[i][j] - '0'; /* sum columns in pop */ >> } >> setSequenceClose(); >> } >> - for (; i<popsize; i++) >> - for (j=0; j<chromsize; j++) >> + for (; i < popsize; i++) >> + for (j = 0; j < chromsize; j++) >> count[j] += curr[i][j] - '0'; >> pconv_count = 0; >> setSequenceOpen(); >> - for (i=0; i<chromsize; i++) { >> - if ((count[i]!=0) && (count[i]!=popsize)) >> + for (i = 0; i < chromsize; i++) { >> + if ((count[i] != 0) && (count[i] != popsize)) >> count[i] = count[i]*10/popsize + '0'; >> else { >> count[i] = '-'; >> @@ -210,7 +210,7 @@ >> setSequenceChar(count[i]); >> } >> setSequenceClose(); >> - if ((!pconv) && (pconv_count==chromsize)) { /* if pop converged */ >> + if ((!pconv) && (pconv_count == chromsize)) { /* if pop converged */ >> pconv = 1; >> pconv_gen = gen; >> } >> >> >> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sga-commit mailing list >> sga...@li... >> https://lists.sourceforge.net/lists/listinfo/sga-commit >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel > |
From: Tim W. <tw...@dm...> - 2008-02-21 20:18:17
|
Lewis, It might conform but one rule in any good codingstyle is not to conform if it's best not to! I prefer no space around some operators, e.g. fred = harry*joe + 2*fred; is easier to read than fred = harry * joe + 2 * fred; In the code you changed, I prefer if (((gen-1)%displfreq) == 0) { to if (((gen-1) % displfreq) == 0) { as it makes clear that the meat of the expression is the ==. I applaud any attempt to clean up code, though! Tim. fif...@us... wrote: > Revision: 47 > http://sga.svn.sourceforge.net/sga/?rev=47&view=rev > Author: fifthdim > Date: 2008-02-21 12:11:00 -0800 (Thu, 21 Feb 2008) > > Log Message: > ----------- > Begin modifications to code layout to hopefully make it easier to read, encourage participation and conform with CODINGSTYLE docs. > > Modified Paths: > -------------- > trunk/code/sga.c > > Modified: trunk/code/sga.c > =================================================================== > --- trunk/code/sga.c 2008-02-21 12:05:11 UTC (rev 46) > +++ trunk/code/sga.c 2008-02-21 20:11:00 UTC (rev 47) > @@ -132,30 +132,30 @@ > #endif /* NOGSL */ > > /* initialise the population */ > - for (i=0; i<popsize; i++) > - for (j=0; j<chromsize; j++) > + for (i = 0; i < popsize; i++) > + for (j = 0; j < chromsize; j++) > curr[i][j] = '0' + (RNG(2)); /* RNG(N+1) returns rand int from [0..N] */ > - > + > /* main loop of genetic algorithm */ > - for (gen=1; gen!=gens; gen++) { > + for (gen = 1; gen != gens; gen++) { > > /* calculate fitness of current population */ > - for (i=0; i<popsize; i++) { > + for (i = 0; i < popsize; i++) { > switch (fitfunc) { > case 2: fit[i] = RNG(chromsize+1) + 1; /* random */ > break; > case 3: fit[i] = 1; /* onemax */ > - for (j=0; j<chromsize; j++) > + for (j = 0; j < chromsize; j++) > fit[i] += curr[i][j] - '0'; > break; > case 4: fit[i] = 1; /* diffmax */ > - for (j=0; j<chromsize; j++) > + for (j = 0; j < chromsize; j++) > fit[i] += curr[i][j] - '0'; > if (fit[i] < ((chromsize+1)/2)+1) > fit[i] = chromsize + 2 - fit[i]; > break; > case 5: fit[i] = curr[i][0] - '0'; /* integer */ > - for (j=1; j<chromsize; j++) > + for (j = 1; j < chromsize; j++) > fit[i] = (fit[i]<<1) + curr[i][j] - '0'; > fit[i]++; > break; > @@ -166,9 +166,9 @@ > } > > /* calculate stats, and display stats and individuals, if required */ > - if (((gen-1)%displfreq) == 0) { > + if (((gen-1) % displfreq) == 0) { > mean = best = worst = fit[0]; > - for (i=1; i<popsize; i++) { > + for (i = 1; i < popsize; i++) { > mean += fit[i]; > if (fit[i] > best) > best = fit[i]; > @@ -177,31 +177,31 @@ > } > mean /= popsize; > std_dev = 0.0; > - for (i=0; i<popsize; i++) > + for (i = 0; i < popsize; i++) > std_dev += (fit[i]-mean)*(fit[i]-mean) / popsize; > std_dev = sqrt(std_dev); > - if ((!fconv) && (std_dev==0)) { /* if fit converged */ > + if ((!fconv) && (std_dev == 0)) { /* if fit converged */ > fconv = 1; > fconv_gen = gen; > } > setGenInfo(gen); > - for (i=0; i<chromsize; i++) /* init column counts */ > + for (i = 0; i < chromsize; i++) /* init column counts */ > count[i] = 0; > - for (i=0; i<sizedispl; i++) { > + for (i = 0; i < sizedispl; i++) { > setSequenceOpen(); > - for (j=0; j<chromsize; j++) { /* show individuals */ > + for (j = 0; j < chromsize; j++) { /* show individuals */ > setSequenceChar(curr[i][j]); > count[j] += curr[i][j] - '0'; /* sum columns in pop */ > } > setSequenceClose(); > } > - for (; i<popsize; i++) > - for (j=0; j<chromsize; j++) > + for (; i < popsize; i++) > + for (j = 0; j < chromsize; j++) > count[j] += curr[i][j] - '0'; > pconv_count = 0; > setSequenceOpen(); > - for (i=0; i<chromsize; i++) { > - if ((count[i]!=0) && (count[i]!=popsize)) > + for (i = 0; i < chromsize; i++) { > + if ((count[i] != 0) && (count[i] != popsize)) > count[i] = count[i]*10/popsize + '0'; > else { > count[i] = '-'; > @@ -210,7 +210,7 @@ > setSequenceChar(count[i]); > } > setSequenceClose(); > - if ((!pconv) && (pconv_count==chromsize)) { /* if pop converged */ > + if ((!pconv) && (pconv_count == chromsize)) { /* if pop converged */ > pconv = 1; > pconv_gen = gen; > } > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sga-commit mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-commit |
From: Thomas S. <m03...@dm...> - 2008-02-20 20:46:16
|
Patch will apply a please wait message when the update button is pressed. Index: gsga.h =================================================================== --- gsga.h (revision 45) +++ gsga.h (working copy) @@ -1,6 +1,8 @@ static void destroy( GtkWidget *widget, gpointer data); void make_vbox(GtkWidget* main_vbox, GtkWidget* window); static GtkWidget *make_box(gboolean homogeneous, gint spacing, gboolean expand, gboolean fill, guint padding); +void on_button_released(GtkWidget *button); +void on_button_pressed(GtkWidget *button); void on_button_clicked(GtkWidget *button); void text_box(GtkWidget *text); void print_data(); Index: gsga.c =================================================================== --- gsga.c (revision 44) +++ gsga.c (working copy) @@ -180,6 +180,16 @@ return main_hbox; } +void on_button_released(GtkWidget *button) +{ + gtk_button_set_label(GTK_BUTTON(button), "UPDATE"); +} + +void on_button_pressed(GtkWidget *button) +{ + gtk_button_set_label(GTK_BUTTON(button), "Please wait..."); +} + /* Callback function for the update button. */ void on_button_clicked(GtkWidget *button) { @@ -252,7 +262,7 @@ input[read(infd[0], input, 2000)] = 0; gtk_text_buffer_insert_at_cursor (buffer, input, -1); buffer_size = gtk_text_buffer_get_line_count(buffer); - } + } } } @@ -266,7 +276,7 @@ gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); - gtk_window_set_title(GTK_WINDOW(window), "Simple Genetic algorithm (SGA)"); + gtk_window_set_title(GTK_WINDOW(window), "Simple Genetic Algorithm (SGA)"); gtk_widget_set_size_request(GTK_WIDGET(window), 1024,800); main_vbox = gtk_vbox_new(FALSE, 1); @@ -287,9 +297,18 @@ gtk_container_add(GTK_CONTAINER(scroll_bar), text_view); button = gtk_button_new_with_label("UPDATE"); + + g_signal_connect(G_OBJECT (button), "pressed", + G_CALLBACK (on_button_pressed), + NULL); + g_signal_connect(G_OBJECT (button), "clicked", G_CALLBACK (on_button_clicked), - NULL); + NULL); + + g_signal_connect(G_OBJECT (button), "released", + G_CALLBACK (on_button_released), + NULL); gtk_box_pack_start(GTK_BOX(main_vbox), menubar, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(main_vbox), main_box, 0, 0, 0); |
From: Matt L. <m05...@dm...> - 2008-02-19 09:37:50
|
patch again for latest revision. matt Matt Lester wrote: > ok, the reason for the bug is the default font used by the linux box > being used is different from a windows box. The font the linux box is > using displays a bit wider than arial. I've attached a patch for > setting the website to a fixed width a bit bigger than previously > defined. Let me know if the problem still persists. > > Matt Lester > > > William Ellwood wrote: >> Supporting images of the error as seen on my computer as requested by >> Lewis in IRC. >> >> http://catandcthulhu.com/images/sga/sga1.png >> http://catandcthulhu.com/images/sga/sga2.png >> >> Will. >> >> On Feb 18, 2008 11:41 PM, William Ellwood <fr...@gm...> wrote: >> >>> I've also had the same problem in the same version of Firefox. >>> >>> Will. >>> >>> On Feb 18, 2008 11:29 PM, Tim Watson <tw...@dm...> wrote: >>> >>> >>>> I've just tried the latest version of the website and the news and >>>> licence links are overlapping (news is on top of licence). I'm using >>>> Firefox 2.0.0.12. Just thought that someone would like to know. >>>> >>>> I thought about using the bug tracker but it seemed like overkill >>>> at the >>>> moment. >>>> >>>> Tim. >>>> >>>> ------------------------------------------------------------------------- >>>> >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> sga-devel mailing list >>>> sga...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sga-devel >>>> >>>> >>> >>> >>> -- >>> http://www.catandcthulhu.com >>> http://quicktale.blogspot.com >>> >>> >> >> >> >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > sga-devel mailing list > sga...@li... > https://lists.sourceforge.net/lists/listinfo/sga-devel |
From: Matt L. <m05...@dm...> - 2008-02-19 09:29:50
|
ok, the reason for the bug is the default font used by the linux box being used is different from a windows box. The font the linux box is using displays a bit wider than arial. I've attached a patch for setting the website to a fixed width a bit bigger than previously defined. Let me know if the problem still persists. Matt Lester William Ellwood wrote: > Supporting images of the error as seen on my computer as requested by > Lewis in IRC. > > http://catandcthulhu.com/images/sga/sga1.png > http://catandcthulhu.com/images/sga/sga2.png > > Will. > > On Feb 18, 2008 11:41 PM, William Ellwood <fr...@gm...> wrote: > >> I've also had the same problem in the same version of Firefox. >> >> Will. >> >> On Feb 18, 2008 11:29 PM, Tim Watson <tw...@dm...> wrote: >> >> >>> I've just tried the latest version of the website and the news and >>> licence links are overlapping (news is on top of licence). I'm using >>> Firefox 2.0.0.12. Just thought that someone would like to know. >>> >>> I thought about using the bug tracker but it seemed like overkill at the >>> moment. >>> >>> Tim. >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sga-devel mailing list >>> sga...@li... >>> https://lists.sourceforge.net/lists/listinfo/sga-devel >>> >>> >> >> >> -- >> http://www.catandcthulhu.com >> http://quicktale.blogspot.com >> >> > > > > |