Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: attempt to execute script varargin as a function
Date: Mon, 1 Sep 2008 10:16:35 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <g9gfe3$m54$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220264195 22692 172.30.248.38 (1 Sep 2008 10:16:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Sep 2008 10:16:35 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:488086



I have been trying to use the Hybrid Particle Swarm 
Optimization function from the file exchange by Alexandros 
Leontitsis:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile
.do?objectId=6497&objectType=file

I am running this from within an m file but keep getting 
the following error message:

??? Attempt to execute SCRIPT varargin as a function:
C:\Program 
Files\MATLAB\R2008a\toolbox\matlab\lang\varargin.m

Error in ==> main_vectorised at 160
    options=hPSOoptions(varargin);

Anyone any ideas on how to avoid this problem? Thanks.