キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

global_optimization_problem

Hi,

 

 

I have a little pb with my application, i have tried to use a global optimization but my VI reference doesn't work(where there is the objective function), because i have a Flat sequence  in the Vi (it is necessary to seek a value from a excel file),to be more precise i attach my VIs

 

I really appreciate any help you can provide.

0 件の賞賛
メッセージ1/20
5,727件の閲覧回数

First off, what do you mean by global optimization? Do you mean diagram clean-up? You can select sections of your code at a time and click Clean Up Diagram and it will only organize that section.

 

That being said, you don't need your sequence structure. It isn't doing anything to help your code. Remove it and then perform clean-up.

Clean up.PNG

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 件の賞賛
メッセージ2/20
5,708件の閲覧回数

i m using mathematical Optimization, this one: optilisqa.PNGI have two VI, one VI its the global_Optimization and the second on is Optimization phase_avant( where im using the MATHEMATICAL vi Global Optimisation which objective function is referring to the first VI)

 

 

 

 

 

0 件の賞賛
メッセージ3/20
5,699件の閲覧回数

Oh. Okay. Well I dragged your VI to the VI reference without changing anything and it works. No broken run arrow.

Drag and drop.PNG

Open both VIs > Drag the icon from the top right of your Global Optimization VI > Drop it on on the static VI reference

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 件の賞賛
メッセージ4/20
5,690件の閲覧回数

Yes it works but the result of the optimization function f(minimum)="Inf",  i dont know why?

0 件の賞賛
メッセージ5/20
5,684件の閲覧回数

Well I'm not familiar with this function, but you can trace down in to it to see where the Inf comes from. It looks like it gets set as a constant within the Init VI. Thi Init VI goes to that case only if Population initial value is empty. So if you want F(min) to have a value, you need to set an initial condition for your population using the Beginning State input.

Inf.PNG

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 件の賞賛
メッセージ6/20
5,675件の閲覧回数

When i try to add initial parameter on begining state, when i run the program, i have this code error:error2.PNG

0 件の賞賛
メッセージ7/20
5,660件の閲覧回数

You need to set Objective Functions to be a large enough array as well. This worked for me:

Front Panel Optimization.PNG

The values and what to input, that's all up to you and your requirements.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 件の賞賛
メッセージ8/20
5,654件の閲覧回数
スポイラ
Hello,

thanks for your respond, but it doesn't work for me; i do the same thing i have still the error message:


enough_array.PNG
0 件の賞賛
メッセージ9/20
5,593件の閲覧回数

i attach the optimization file which doesn't work,

 

 

 

0 件の賞賛
メッセージ10/20
5,587件の閲覧回数