03-04-2016 08:12 AM
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.
03-04-2016 09:03 AM
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.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-04-2016 09:12 AM
i m using mathematical Optimization, this one: I 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)
03-04-2016 09:18 AM
Oh. Okay. Well I dragged your VI to the VI reference without changing anything and it works. No broken run arrow.
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> ---'
03-04-2016 09:24 AM
Yes it works but the result of the optimization function f(minimum)="Inf", i dont know why?
03-04-2016 09:35 AM - edited 03-04-2016 09:36 AM
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.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-04-2016 09:57 AM
When i try to add initial parameter on begining state, when i run the program, i have this code error:
03-04-2016 10:12 AM - edited 03-04-2016 10:13 AM
You need to set Objective Functions to be a large enough array as well. This worked for me:
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> ---'
03-07-2016 02:54 AM
03-07-2016 03:00 AM
i attach the optimization file which doesn't work,