Error 216: Unknow function fmincon

Khanh Tran Vu
Khanh Tran Vu Altair Community Member
edited September 2022 in Community Q&A

Hello everyone. 

I have an error 216 when using an external function (by Compose) in HyperStudy.

However, the function 'fmincon' is existed and can be working correctly in Compose enviroment.
How can I fix this problem ?
Thank you.

 

image

image

 

Best Answer

  • Diana M._20503
    Diana M._20503
    Altair Employee
    edited September 2022 Answer ✓

    Hi Diana,

    Thank you for spending your time.

    When I try to register function, it shows the error 

    image

     

    Also, I register the function from Compose for HyperStudy like this:

    image

    the 'fmincon' function is included the 'optimal_load' function.

     

    Hello,

    I understand that you have registered the function optimal_load to be used within HyperStudy. This is ok.

    If you still have this message concerning the fmincon function, I think you need to define it as well, like for instance below and also register it.

    function fmincon(a,b);
    end

    Hope it helps.

    Diana

Answers

  • Diana M._20503
    Diana M._20503
    Altair Employee
    edited August 2022

    Hello,

    Could you tell if you have registered the function from Compose prior to open the HyperStudy session?

    If not, please do the following. In Compose select the function name, then right click and select Register Function.

    Once you have done this, open(or restart) HyperStudy.

    Does this help?

    regards,

    Diana

  • Khanh Tran Vu
    Khanh Tran Vu Altair Community Member
    edited August 2022

    Hello,

    Could you tell if you have registered the function from Compose prior to open the HyperStudy session?

    If not, please do the following. In Compose select the function name, then right click and select Register Function.

    Once you have done this, open(or restart) HyperStudy.

    Does this help?

    regards,

    Diana

    Hi Diana,

    Thank you for spending your time.

    When I try to register function, it shows the error 

    image

     

    Also, I register the function from Compose for HyperStudy like this:

    image

    the 'fmincon' function is included the 'optimal_load' function.

     
  • Diana M._20503
    Diana M._20503
    Altair Employee
    edited September 2022 Answer ✓

    Hi Diana,

    Thank you for spending your time.

    When I try to register function, it shows the error 

    image

     

    Also, I register the function from Compose for HyperStudy like this:

    image

    the 'fmincon' function is included the 'optimal_load' function.

     

    Hello,

    I understand that you have registered the function optimal_load to be used within HyperStudy. This is ok.

    If you still have this message concerning the fmincon function, I think you need to define it as well, like for instance below and also register it.

    function fmincon(a,b);
    end

    Hope it helps.

    Diana