mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Standard pgindent run for 8.1.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_pool.c,v 1.26 2004/12/31 21:59:58 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_pool.c,v 1.27 2005/10/15 02:49:19 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -96,13 +96,12 @@ random_init_pool(Pool *pool, GeqoEvalData *evaldata)
|
||||
int bad = 0;
|
||||
|
||||
/*
|
||||
* We immediately discard any invalid individuals (those that
|
||||
* geqo_eval returns DBL_MAX for), thereby not wasting pool space on
|
||||
* them.
|
||||
* We immediately discard any invalid individuals (those that geqo_eval
|
||||
* returns DBL_MAX for), thereby not wasting pool space on them.
|
||||
*
|
||||
* If we fail to make any valid individuals after 10000 tries, give up;
|
||||
* this probably means something is broken, and we shouldn't just let
|
||||
* ourselves get stuck in an infinite loop.
|
||||
* If we fail to make any valid individuals after 10000 tries, give up; this
|
||||
* probably means something is broken, and we shouldn't just let ourselves
|
||||
* get stuck in an infinite loop.
|
||||
*/
|
||||
i = 0;
|
||||
while (i < pool->size)
|
||||
@@ -223,8 +222,8 @@ spread_chromo(Chromosome *chromo, Pool *pool)
|
||||
|
||||
|
||||
/*
|
||||
* these 2 cases move the search indices since a new location has
|
||||
* not yet been found.
|
||||
* these 2 cases move the search indices since a new location has not
|
||||
* yet been found.
|
||||
*/
|
||||
|
||||
else if (chromo->worth < pool->data[mid].worth)
|
||||
@@ -242,8 +241,7 @@ spread_chromo(Chromosome *chromo, Pool *pool)
|
||||
/* now we have index for chromo */
|
||||
|
||||
/*
|
||||
* move every gene from index on down one position to make room for
|
||||
* chromo
|
||||
* move every gene from index on down one position to make room for chromo
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user