element#1.Particles in optimization with Pelegant

Moderators: cyao, michael_borland

Post Reply
wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

element#1.Particles in optimization with Pelegant

Post by wmliu » 12 Dec 2011, 12:20

Hi,

When I use element#1.Particles to optimize for transmission using elegant, every thing works perfectly. But when I tried to speed up with Pelegant, I'm getting error like
"Problem evaluating expression: MENDARC0#1.Particles MSOL3LTR#1.Particles - MENDARC0#1.Particles /
RPN expression errors prevent optimization
error: division by zero"
It looks like, the information about the number of particles is not available when optimizing with Pelegant. Is there an alternative way of doing with Pelegant?

Thanks,

Wanming

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: element#1.Particles in optimization with Pelegant

Post by ywang25 » 12 Dec 2011, 12:24

Wanming,

Can you provide a simplified test case, so we can reproduce the problem?

Thanks,

Yusong

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Re: element#1.Particles in optimization with Pelegant

Post by wmliu » 12 Dec 2011, 14:37

Yusong,

Please find the attached file.
In this example, because the lattice has been optimized, so elegant will finish very fast. But when I do it with mpirun -n 6 Pelegant ....., it ended up with the error message.
If I commented out the optimization term with number of particles involved, both elegant and Pelegant works the same except Pelegant is way more faster.

Thanks,

Wanming
Attachments
PTHD.tar.gz
(228.54 KiB) Downloaded 256 times

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Re: element#1.Particles in optimization with Pelegant

Post by wmliu » 12 Dec 2011, 17:02

Yusong,

I managed to get around it by replace the number of particles with the known number at the beginning and still use the number of particles at the end of the last element.

Thanks,

Wanming

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Re: element#1.Particles in optimization with Pelegant

Post by wmliu » 13 Dec 2011, 11:14

Yusong,

Sorry for the misleading information in my previous post. The problem is still there. Because the number of particles at elements are missing with Pelegant, the optimization term will always be 1 after I made the previous change. So I only get away with the error message but not the real problem to be solved. I'll just use elegant when ever I need to optimize the transmission for now.

Thanks,

Wanming

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: element#1.Particles in optimization with Pelegant

Post by ywang25 » 20 Feb 2012, 12:06

Wanming,

A bug has been found for the simplex method in Pelegant when the optimization term has "transmission". It will be fixed in the next release.

Yusong

Post Reply