Variable with limited decimal number.

Igor Jobim
Igor Jobim Altair Community Member
edited October 2022 in Community Q&A

Hi.
I use optfeko to optimize a model.
I get a pretty large number for the variable.
How can I set the variable to something like 100.00?
Thank you for any help.

 

image

image

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Torben Voigt
    Torben Voigt
    Altair Employee
    edited October 2022

    Hi @Igor Jobim ,

    you can achieve this by using "Grid search":

    image

    In the attached example (Feko 2022.1.2) I optimize the length of a dipole, where the corresponding variable may only take values = -100 mm to 100 mm in 10 mm steps. For the grid search I therefore choose 21 points.

    Hope this helps!

    Best regards,
    Torben

  • Igor Jobim
    Igor Jobim Altair Community Member
    edited October 2022

    Thanks for your reply @Torben Voigt.
    I read the manual to better understand how "Grid search" works.
    The model has four variables to be analyzed in the optimization. Immediately when starting optfeko appears:
    "WARNING 21327: Grid Search may be inefficient due to the large number of analyzes requested".
    Maybe I didn't explain correctly what I need.
    I want the variable to receive a short number such as 101.64 or 101.6 instead of 1.016419981e+02.
    Thank you again.

  • Torben Voigt
    Torben Voigt
    Altair Employee
    edited October 2022

    Hi @Igor Jobim,

    Unfortunately there is no possibility in Feko's optimizer. Maybe HyperStudy (https://www.altair.com/hyperstudy/) is something for you? 

    Best regards,
    Torben

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.