Matlab as Model File

Rahul_P1
Rahul_P1
Altair Employee
edited October 2020 in Community Q&A

Hi,

I actually have the following problem using HyperStudy! I want to set up an optimisation where my function is evaluated by a Matlab script.

Just for simplification (in reality it is more sophisticated) my function y=ax^2+bx is written in a Matlab file. With hyperstudy (and its implemented algorithms) i want to find the right x with the objective minimize y.

so are you aware of a way how to solve my function in Matlab?

would be nice if someone knows the answer.
Thanks a lot
Thomas

Answers

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited February 2015

    Hi,

    no one has a suggestion? Isn´t there any similar problem. Maybe someone wants to use a FE Solver not implemented in HyperStudy, like FeMap, Abaqus, LS Dyna or something? Isn´t there a solution for that?

    thanks a lot

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited February 2015

    Hi Thomas,

    The procedure to link an external solver is in the HyperStudy help,More On Files > Solver Script Files

    In HyperStudy, each model is associated with a solver script. Solver scripts determine what HyperStudy will execute for that model. A solver script can simply point to an executable such as phthon.exe or a batch file such as radioss.bat.

    For more information on how to register solver script files in HyperStudy, refer to Register Solver Scripts - Please see - How to Use HyperStudy > Graphical User Interface > Menu Basics > Edit > And then go to register solver script.

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited February 2015

    Hi,

    thanks for the answer. This should help I think!

    best regards

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited February 2015

    Thomas,

    Also, Please see how to parameterize your input file and then read the responses from your output file, by following the tutorial here
    HS-1020: Working with a Parameterized File Model for Size Variables.