

May 9, 2023 at 12:30 pmKKSubscriber
i would like to use the results of the sensitivity coefficients in opislang to weight the objective function for the optimisation. is this possible?

May 10, 2023 at 12:57 pmAshish KhemkaAnsys Employee
Hi,
Please see if the following links help:
An Ansys optiSLang Overview and Optimization Example with Ansys Icepak  PADT (padtinc.com)
sensetivity analyse with Optislang (ansys.com)
Regards,
Ashish Khemka

May 11, 2023 at 6:22 amKKSubscriber
I cannot export the coefficients to a .txt file, for example, can I? Which parameter influences my structure the most?
E.g. Emodulus 64 %, poisson number 20%, density 16 % and then take these directly into an objective function as weighting (with signal processing). 
May 11, 2023 at 7:39 amMarkusAnsys Employee
Hi,
The sensitivity coefficients are the importance of the individual parameters contributing to the variation of the response. I do not see a reason why using them in the objective function. The optimizer will adjust all given input parameters.
Instead, I would recommend scaling the components of the objective function to the same order of magnitude. Here you see an example:
If you do not scale it, the optimizer will tend to improve the component of objective with the larger numerical value. After scaling, the objectives have a rather equal importance.
If you have multiple objectives you may also start with a MultiObjective Optimization (more information here: 3.2. MultiObjective Optimization (ansys.com)) and conduct the SingleObjective Optimization afterwards.
Best regards,
Markus

May 11, 2023 at 7:51 amKKSubscriberIs it not possible to implement a simple least squares objective function in Optislang?J(p) = zWz or after linearisation (GWG)p = GWzz = resiude vectorW = weighting matrixG = weighting matrix (partial derivative of the residuals after the paramers)p = parameter changeI would like to know if it is possible to implement a least squares objective function using Optislang, or if there are simpler approaches that can take my weighting matrices directly from Optislang. Furthermore, I would be interested to know which approach is considered the best or simplest to realise the alignment between test and simulation. Are there any proven methods that are particularly recommended and what factors should be taken into account when choosing?

May 11, 2023 at 4:09 pmMarkusAnsys Employee
Hi,
yes, you can implement a least square objective function. There are different ways of doing that.
1 You can calculate the least squares of vectors/signals in the “Variables” tab of the ETK node or the Signal Processing e.g. using Sum of squared error (SSE), or the Root squared error (RSE).
For the objective formulation you are using then a scalar value e.g. RSE. You find examples in the help on how to do this in the software:
In Ansys Workbench: Calibration of a Damped Oscillator in Ansys Workbench
In optiSLang: Calibration of a Damped Oscillator (ansys.com)2 You can also use vectors or signals in the objective formulation. It’s also possible to include a weighting vector.
To realize alignment between test and simulation is in general a Model Calibration/ Parameter Identification question. There is in Ansys Learning Hub (Connect  Ansys optiSLang  Ansys optiSLang Model Calibration and Parameter Identification (sapjam.com)) an advanced optiSLang course on that topic:
This talks a lot about signal/vector usage, the workflows, best practices etc.
I hope this helps.
Markus 
May 12, 2023 at 7:10 amKKSubscriber
Thank you markus.
I assume you are referring to the "How to define objective with scattering reference". My objective function would be:
objective = euclid[(y*  y) * w]
But where do I get the vector weights w?
Can I export them in the sensitivity analysis or read them directly into ansys signal processing somewhere?
Don't I already have to define the same objective function for the sensitivity analysis? 
May 12, 2023 at 9:47 amMarkusAnsys Employee
Hi,
Yes, I refer to that. The context of this is how to deal with a scattering in the reference curve. If you repeat the measurement, it sometimes shows some not constant scatter or noise along a signal.
Consequently, in regions of low scatter, the fit (to the simulation) may should be accurate. In regions of high scatter, the fit may can be less accurate.
So, the weighting vector can come from the evaluation of different reference curves. This is not a result of the sensitivity analyses but an Information that needs to be provided by the user.
If you have this vector, you can either type the vector in or read it automatically with ETK from a text file.
Best regards,
Markus

 You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
 Errors about integrate executable into ANSYS Workbench using ACT
 Local Sensitivity and Sensitivities: what difference?
 How many designs are generated while performing optimization using Optislang with NLPQL?
 Optislang workbench addin
 Parameter relationships for Optimization
 Design of Experiment points: Design Exploration
 ANSYS Optislang
 DOE all design points give the same results as the first calculation
 DesignXplorer vs optiSLang for Workbench CFD Optimization
 Parametric study: Batch mode

5370

3363

2471

1310

1020
© 2023 Copyright ANSYS, Inc. All rights reserved.