From: us on
"Hema ":
<SNIP still the same sermon...

> ...it seems like other than the method you
> mentioned there is no other way to call a program on a
> different machine from MATLAB. That's a little surprising
> to me...

did you look at what i told you earlier...
yes, then

% go here

http://technet.microsoft.com/en-
us/sysinternals/bb897553.aspx

% download psexec
% use it according to the nice help, eg,

!psexec

% now try
system('psexec \\thiscomputer matlab');
% which should open another ML session on your computer...

us

From: Hema on
"us " <us(a)neurol.unizh.ch> wrote in message
<g3bjoa$nfn$1(a)fred.mathworks.com>...
> "Hema ":
> <SNIP still the same sermon...
>
> > ...it seems like other than the method you
> > mentioned there is no other way to call a program on a
> > different machine from MATLAB. That's a little surprising
> > to me...
>
> did you look at what i told you earlier...
> yes, then
>
> % go here
>
> http://technet.microsoft.com/en-
> us/sysinternals/bb897553.aspx
>
> % download psexec
> % use it according to the nice help, eg,
>
> !psexec
>
> % now try
> system('psexec \\thiscomputer matlab');
> % which should open another ML session on your computer...
>
> us
>

us sorry, I couldn't understand what you were trying to say
earlier. But I understood your new suggestion I think, so I
will try it tomorrow and let you know what the result is.

Thanks for your help
Hema

From: reza on
On Jun 18, 8:19 am, "Hema " <tennisenlighte...(a)gmail.com> wrote:
> "Hema " <tennisenlighte...(a)gmail.com> wrote in message
>
> <g393l6$mg...(a)fred.mathworks.com>...
>
> > I am implementing a GA using MATLAB. My algorithm requires
> > me to call an external program to compute my objective
> > function value. Now in order to speed up, I would run this
> > external application simultaneously on multiple computers.
> > Right now for a single computer I use a dos command to call
> > and run the application. How can I modify this for multiple
> > computers.
>
> I guess no one replied here. Can I ask another question. Is
> there a dos command that will allow me to call a program and
> run it on a different computer. I think this should solve my
> problem

you need psexec from the pstool set made by sysinternals (taken over
by microsoft)

see: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

good luck.

/reza
From: Steven Lord on

"Hema " <tennisenlightened(a)gmail.com> wrote in message
news:g3aufl$l7g$1(a)fred.mathworks.com...
> "Hema " <tennisenlightened(a)gmail.com> wrote in message
> <g393l6$mg0$1(a)fred.mathworks.com>...
>> I am implementing a GA using MATLAB. My algorithm requires
>> me to call an external program to compute my objective
>> function value. Now in order to speed up, I would run this
>> external application simultaneously on multiple computers.
>> Right now for a single computer I use a dos command to call
>> and run the application. How can I modify this for multiple
>> computers.
>
>
> I guess no one replied here. Can I ask another question. Is
> there a dos command that will allow me to call a program and
> run it on a different computer. I think this should solve my
> problem

Depending on how parallelizable your function is, how many iterations you
need to run in your GA, and how many other computers you want to use to
compute your objective function, you might want to use Parallel Computing
Toolbox:

http://www.mathworks.com/products/parallel-computing/

You might find this demo from Genetic Algorithm and Direct Search Toolbox
interesting:

http://www.mathworks.com/products/gads/demos.html?file=/products/demos/shipping/gads/distributed_fitness.html

You may also be able to use the UseParallel option with the GA solver:

http://www.mathworks.com/access/helpdesk/help/toolbox/gads/f6174dfi10.html#brkgmk4-1

--
Steve Lord
slord(a)mathworks.com


From: us on
"Steven Lord":
<SNIP down to ML intrinsic solution...

> >> Now in order to speed up, I would run this
> >> external application simultaneously on multiple
> >> computers.

> Depending on how parallelizable your function is, how
many iterations you need to run in your GA, and how many
other computers you want to use to compute your objective
function, you might want to use Parallel Computing
Toolbox...

steve
how would/could this tbx help the OP?
he wants to run an external app...
urs