optimization

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi

I want to know that can I use Hypermath function like fmincon or I my self write code in Hypermath and link it to model in Hyperwork and do optimization?

 

If yes, is there any source that i can use?

 

Best,

Mohammad

 

Answers

  • tinh
    tinh Altair Community Member
    edited August 2017

    Hi Mohammad

    I am not sure optistruct can invoke user defined hypermath function for its optimizing work or not. If it can, you shoud try searching it in optistruct manual.

    Hoping someone has known about this...

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    Hi Mohammad

    I am not sure optistruct can invoke user defined hypermath function for its optimizing work or not. If it can, you shoud try searching it in optistruct manual.

    Hoping someone has known about this...

    Thank you.

    Do you know that, Is it possible to link model with fmincon?

     

    Best,

    Mohammad

  • tinh
    tinh Altair Community Member
    edited August 2017

    Hi

    I am sorry. I don't know how to do

    How linking do you need?

    I did not ever use hypermath. I think hypermath cannot access hm database 

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    Hi Mohammad,

     

    I think this can be done using DRESP3. I am checking with a HM expert on the same. I shall update you soon. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    Hi

    I am sorry. I don't know how to do

    How linking do you need?

    I did not ever use hypermath. I think hypermath cannot access hm database 

     

    in Hypermath i can define a function and write code and also it has functions.

    instated of define a function, i would like to define my model as function.

    then do optimization.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    Hi Mohammad,

     

    I think this can be done using DRESP3. I am checking with a HM expert on the same. I shall update you soon. 

    Thank you so much for your consideration.

     

    Honestly i have model in hyperwork and i wanted to do this by MSc.Nastran and matlab but my model is very complex and also i cant define any node to check the value of that in nastran output.

    there for i should find a way, i search and i `m  going a little through hypermath and i found out that it has optimization function just like matlab.

    i just wonder that, can i connect hypermath and hyperwork together and use my model as function, then see this just program language to do my project.

     

    Thanks,

    mohammad

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    HyperMath tutorial 4030 shows an optimization example using HyperMath.  You would need to replace the analytical functions with code that modifies, run, and reads data from your 'HyperWorks' session.  The API into a HyperMesh session is written in tcl, so a HyperMath function would need to execute tcl to modify a hm session.

     

    There is no example I know of to do this, mostly because another Altair product such as HyperStudy can easily run optimization on a finite element model without any custom coding.  It is its raison d'etre.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    HyperMath tutorial 4030 shows an optimization example using HyperMath.  You would need to replace the analytical functions with code that modifies, run, and reads data from your 'HyperWorks' session.  The API into a HyperMesh session is written in tcl, so a HyperMath function would need to execute tcl to modify a hm session.

     

    There is no example I know of to do this, mostly because another Altair product such as HyperStudy can easily run optimization on a finite element model without any custom coding.  It is its raison d'etre.

    Thank you for your respone.

    i didn't know anything about Hyperstudy, Thank you, i wanted do this with MINITAB and SPSS.

    I want to develop an optimization code and apply it for structural optimization, and i should find a way to do this, i stick into problem in Msc.Nastran then I search for other way.

    you mean by Hypermath, i can not access to data from optistruc i just need to find deflection of nodes and then set new parameters and again find new deflection automatically.

     

  • tinh
    tinh Altair Community Member
    edited August 2017

    I think you can.

    Just let optistruct output nodal displacement then you can read that value to process. After that you can modify parameter in fem file or use tcl to modify model  in hm

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2017

    I think you can.

    Just let optistruct output nodal displacement then you can read that value to process. After that you can modify parameter in fem file or use tcl to modify model  in hm

    Honestly I am new in Hypermath.

    This is exactly what i want, i want to read specific nodes displacement and fetch it in function then do calculation in obtain new design variables and update my model and repeat this iterations until find optimum values.

    But i don't know how to read Optistruc output and how to modify fem file, this is what i want to.

    Do you have sample or manual for this?

     

    I really appreciated for your comment.

    Best,

    Mohammad