Skip to Content.
Sympa Menu

opal - Re: [Opal] Multi Objective Optimisation

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Multi Objective Optimisation


Chronological Thread  
  • From: Adelmann Andreas <andreas.adelmann AT psi.ch>
  • To: Can Davut <can.davut AT manchester.ac.uk>
  • Cc: "opal AT lists.psi.ch" <Opal AT lists.psi.ch>
  • Subject: Re: [Opal] Multi Objective Optimisation
  • Date: Thu, 14 Mar 2024 20:49:27 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 20.250.76.7) smtp.rcpttodomain=lists.psi.ch smtp.mailfrom=psi.ch; dmarc=pass (p=none sp=none pct=100) action=none header.from=psi.ch; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eJMVUv1fJSv8vjszg9Z2jIj2O33aYPkgA/YSMDXX4xY=; b=gPrkwfzZuMrhTpB0WejO4cioMp9WKIRAFJajF9/NFP4mDnKMI4uC2lkYAN7PDxeVSADsrBkJWw+N22S2hlc1khxViYVQGwgq7ZGctTwRPPCss+W60rohZaYpQXb1xe/EkJZ9q1d5TY4AuoxVWZxaYkB8ffLVIoBZbkHbTU6Gc3IljafQky3xfEEfoew/EOmnWL4MM19MNgWwr9JF0AqlhrRSY6+Zosufe1ePs9pbrkMmCRMSHzw32HA5SBBFz1fVgaAONq/0bdtIQ3F1XLwm5m/wWhtQSLTtQY3AZdWEetqdgoRumu3sH121VnXMYDnZK7Y+d7EmiWbse2Kery7j+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FqEUBsdo73fxi5SM8ZGDNBBfqsGEmf29avSfjN+Ii5e6n8SVxMeW7WwQpa48cJnbQNnxEUNQn17ZkRWq85fQsBdq4gpoOMJSCELdOzdxAbWm/cB/gpSVWASnAAHBHDpfq7pgKf/SwNtZ5ckyxUpNcfbHz7KT4FUlt8lpRHE93dQRa+qe7pdZ2o//iMlqtaUIhC2zsZwbleMkGIlP1kWB4tC+NZnngm4LQw7rMqS0ZZF+rYC06HOt3xAgObj4PkKPOJUJAHPuEtxIUBsZdWB/POZNJcUYnHKDAmjQoLGdRjC/QUA4WSMjRs1vdqd+pkQ0Vcc+IzoYqNAuzbiVEGsUig==
  • Authentication-results: mc2.ethz.ch; iprev=pass (mail-switzerlandnorthazon11020003.outbound.protection.outlook.com) smtp.remote-ip=52.101.186.3; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=psi.ch header.s=selector2 header.a=rsa-sha256; dmarc=pass header.from=psi.ch
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;

Hi Can you send me the stdout so I see the error msg?

Looking at your input file I also suggest to change

BBOXINCR = 1,

and 

PARFFTX = FALSE, 
PARFFTY = FALSE, 
PARFFTT = True,

Let me know if that solves the problem. 

Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Paul Scherrer Institut OHSA/D17 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA
Zoom Link: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09

-------------------------------------------------------
Friday: ETH HPK G 28   +41 44 633 3076
============================================
The more exotic, the more abstract the knowledge, 
the more profound will be its consequences.
Leon Lederman 
============================================

On 13 Mar 2024, at 20:59, Can Davut <can.davut AT manchester.ac.uk> wrote:

Hi Andy,
 
Hope this email finds you well.
 
I followed instructions in OPAL wiki page and also the steps described in Yves’ thesis to call a python script using SYSTEM function.
 
Opt-pilot works but I directly receive “Unknown exception occurred during simulation run. Continuing, disregarding this simulation..” message. Although .tmpl file and .py script are at the same folder (TEMPLATEDIR) the python script is not present in any simulation file in SIMTMPDIR folder. I assume that’s the reason causing the problem but couldn’t find a way to solve it.
 
May I kindly ask how I can overcome this issue and use the script?
 
Attached please find the reproducer file.
 
Best Regards,
Can
 
Dr. Can Davut | Research Associate
 
Accelerator Physics Group | Department of Physics & Astronomy | The University of Manchester
 
Office : 7.25 Schuster Building
 
 
 
 
From: Adelmann Andreas <andreas.adelmann AT psi.ch> 
Sent: Friday, October 27, 2023 12:11 AM
To: Can Davut <can.davut AT manchester.ac.uk>
Cc: opal AT lists.psi.ch
Subject: Re: [Opal] Multi Objective Optimisation
 
Hi  Can  
you evaluate the objective at  1.0 m and track to 1.0 m. Now OPAL can stop 
at 0.999 m and then the objective is not evaluated. That is what I interpret from
the output. 
 
Put ZSTOP at 1.01 m  and the problem should be solved.
 
Also use powers of 2 for the mesh sizes i.e. 16,32,64. 
 
I suggest to do an quick run with the optimiser using 
10’000 particles 16x16x16 mesh and increase the timestep 
by one order of magnitude. The you need 2 cores per run and 
one run takes only 60 seconds on my laptop. 
 
Lets see if one generation runs on your side.
 
 
Cheers Andy 
------
Dr. sc. math. Andreas (Andy) Adelmann
Paul Scherrer Institut OHSA/D17 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA
Zoom Link: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09

-------------------------------------------------------
Friday: ETH HPK G 28   +41 44 633 3076
============================================
The more exotic, the more abstract the knowledge, 
the more profound will be its consequences.
Leon Lederman 
============================================


On 26 Oct 2023, at 23:53, Can Davut <can.davut AT manchester.ac.uk> wrote:
 
Hi Andy,
 
Thanks for your reply. 
 
All right I totally misunderstood the usage of REPARTFREQ then.
 
Please find attached zip file including everything.
 
Best,
Can
 
From: Adelmann Andreas <andreas.adelmann AT psi.ch> 
Sent: Thursday, October 26, 2023 10:16 PM
To: Can Davut <can.davut AT manchester.ac.uk>
Cc: opal AT lists.psi.ch
Subject: Re: [Opal] Multi Objective Optimisation
 
 
Hi Can 

 

On 25 Oct 2023, at 15:33, Can Davut <can.davut AT manchester.ac.uk> wrote:
 

Dear OPAL Users,

I would like to use the inbuilt multi-objective optimisation of OPAL but I
have encountered a couple of issues and kindly ask for your help.

- Although I define OPTION, REPARTFREQ = 14; to use 14 cores of my PC it
doesn't allow me to use more than 10 which is the default according to the
manual.

 
The REPARTFREQ has nothing to do with the number of cores. So I am confused 
what you are writing here!
 
 

 

- .tmpl and .in files are working if only I use INITIALPOPULATION=1 but
optimisation doesn't end once it is >1. .tmpl commands are given below.
 
Please send us a reproducer, otherwise it is not possible to track down the problem you
have. 
 
 
Thanks Andy
 

Attachment: LBand_template.zip
Description: LBand_template.zip



  • Re: [Opal] Multi Objective Optimisation, Adelmann Andreas, 03/14/2024

Archive powered by MHonArc 2.6.24.

Top of Page