Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GA parallel computing toolbox error
Date: Thu, 21 Aug 2008 10:09:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <g8jert$doo$1@fred.mathworks.com>
References: <g8h8v3$gjh$1@fred.mathworks.com> <g8he9l$9fn$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219313342 14104 172.30.248.35 (21 Aug 2008 10:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 21 Aug 2008 10:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:486629



As i am using global variables i wonder if it is related to 
this:

"Persistent or global variables. If your objective or 
constraint functions use persistent or global variables, 
these variables may take different values on different 
worker processors. Furthermore, they may not be cleared 
properly on the worker processors."

Does anyone know how to use local variables with the GA 
objective function?