Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

Genetic optmization algorithm crashing after 30 iterations: R6025 pure virtual function call

    • NathanS
      Subscriber

      Hello Everyone, 


      I am running a magnetic transient simulation. I have several variables that I want to vary to optimize the design. The simulation seems to be running fine - until the 30th iteration, and then it crashes - giving me this message: 



      Does anyone have any idea what might be causing this? I made sure that the variables are constrained to physically possible values. 


      I have also attached the crash log and dump files. Any assistance would be appreciated! Thanks! 

    • Sorceress Gia
      Ansys Employee

      Have you tried manually setting the design variables to the values that cause the crash and see if it generates a valid geometry and runs/solves as a single simulation (without using the optimetrics tools)?

    • NathanS
      Subscriber

      Hi Peter, 


         Thanks for your response. I tried simulating the structure with the values given in the 30th iteration - and it worked just fine. That being said - I think it crashes on the 31st iteration - and I am not sure what value that is. I decided to run the simulation with only one variable. Even with just one variable in the optimization, it still crashed (and I am certain there was no possibility of an invalid geometry in this case).  

    • Sorceress Gia
      Ansys Employee

      In the case with one variable, did it still crash on exactly the 31st iteration?

    • NathanS
      Subscriber

      Yes- that is correct. 

    • Sorceress Gia
      Ansys Employee

      This seems like it could be an odd bug - however you are using a much older version of the software. Is it possible for you upgrade from v17.2 to the current v19.3? - If your university has a recurring license you should be able to download and install the latest version of the ANSYS License Server and ANSYS Electronics Suite from the ANSYS Customer Portal: https://support.ansys.com/portal/site/AnsysCustomerPortal

    • NathanS
      Subscriber

      Hi Peter, 


      Thanks for the advice. I downloaded the newest version of the software. However - I am having difficulty finding the license file. Do you know where I am supposed to find it? 


      Thanks, 


      Nathan 

    • Sorceress Gia
      Ansys Employee

      Most likely your university is running a license server and you'll need to define it's hostname or IP address and port during the Electronics Desktop installation. - To find this out you can download a program called 'tcpview' from Microsoft. Run tcpview and then monitor the output when you run the old version of Electronics Desktop... You should see a connection from Electronics Desktop to your campus license server - use this hostname/IP/port in the Electronics Desktop installation when prompted for license server information...

    • NathanS
      Subscriber

      Hi Peter, 


      I was able to successfully install the latest version of the software. Unfortunately, the problem is still occurring after the 30th iteration. Here is the file with the error code: https://uwmadison.box.com/s/8ko0or3ysgxbi7gz0s7ou841aqyeirpg 


      I think the problem is with the particular parameter that I am trying to optimize. The parameter that I am trying to optimize is the following output variable: 


      DeltaBx = integ(deriv(Bx))   


      Where Bx = ScalarX(Bx,By,Bz)  at a certain point location in my simulation. 


      I tried running the simulation by simply using Mag_B as the optimization variable, and it was able to run just fine, with no crashing after 30 iterations. 


      Any suggestions would be appreciated! 

Viewing 8 reply threads
  • The topic ‘Genetic optmization algorithm crashing after 30 iterations: R6025 pure virtual function call’ is closed to new replies.