NEW Optimization desvar without relationship

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

Hi Guys,

 

 i define not the Function, i want to define desvar b und h, the 2 variable have no relationship

 

 

b =: 2, 4, 6,21,33,44:

 

h =: 7, 9, 4,20,40,80;

 

if b = 21 -> h= 40

if b = 33 -> h= 20

if b = 44 -> h= 88

if b = 2 -> h= 9

if b = 4 -> h= 4

if b = 6 -> h= 7

 

 

 

How can i define this Typ Parameter in HW, (from excel import ???)

 

 

Thanks VeryMuch!

 

Leslie

 

 

 

 

 

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2014

    Hi Leslie,

     

    Maybe you can achieve this using Dequation.

     

    Please refer to Dequation in OptiStruct help on how to use it.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2014

    Prakash Pagadala

     

    at first i define not the Function, i want to define desvar b und h, the 2 variable have no relationship

     

    something is impossible, but not easy

     

     

    b =: 2, 4, 6,21,33,44:

     

    h =: 7, 9, 4,20,40,80;

     

    if b = 21 -> h= 40

    if b = 33 -> h= 20

    if b = 44 -> h= 88

    if b = 2 -> h= 9

    if b = 4 -> h= 4

    if b = 6 -> h= 7

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2014

    Hi,

     

    Yes you are right. from the values I can see that B and H are not proportionate.

     

    in such case,  I doubt if it is possible to give such conditions in OptiStruct.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2014

    Prakash Pagadala

    with optiSlang/iSight/  i can import excel-datei for  this Typ desvar (of course solver is ansys ^ ^)