LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

global_optimization_problem

You didn't do the same thing. You need to make the array inputs as size 6. From what I can see, yours are at least 7 elements. Right-click and got to Data Operations, then Clear Array or Delete Element.

 

(I say 6 because that is what your Population Size value is. The number of elements in the arrays we're talking about need to match the value for Population. Read the error message. It says as such.)

Cheers


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

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


0 Kudos
Message 11 of 20
(1,809 Views)

i understand that, but even if i smatch the array size with the poulation size, i have the same error,  have 7 elements and istill_error.PNG

0 Kudos
Message 12 of 20
(1,791 Views)

Are you sure you have 7 elements? If you scroll down, is there anything there? The VIs you've included have empty arrays, so I can't see exactly what inputs you're using.

Cheers


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

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


0 Kudos
Message 13 of 20
(1,776 Views)

i have the exactly 7 elements for each array:

error3.PNG

0 Kudos
Message 14 of 20
(1,764 Views)

Well then there must be something else causing the error. Go to Edit > Set Curent Values as Default, Save, and reattach your VIs, so we can see exactly what your settings are. Is it the same error still?

Cheers


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

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


0 Kudos
Message 15 of 20
(1,761 Views)
0 Kudos
Message 16 of 20
(1,756 Views)

Aha! You need to set "Indices de Pareto" to a single element, not 7. I think this is because you have a single element Population array.

 

Now all of this said, I repeat, I am not familiar with the function or what you are doing. You probably shouldn't be just messing with the inputs until the VI runs and hoping to get outputs that actually mean something to you. Do you know why you're using this function? Do you know what to expect as outputs?

Cheers


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

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


0 Kudos
Message 17 of 20
(1,739 Views)

i m just trying to understand how to use optimization tools in Labview, because i m going to use the optimization to minimize a function with a range of parameters, in my case  to minimize the manufacturing cycle time and id like to have the value of parameters which minimize the cycle time; but i note that not many labview user know using the optimization on LabView, so i have a doubt about the relevance of Labview to solve these problems; 

0 Kudos
Message 18 of 20
(1,735 Views)

it still does not work, what s wrong with this function,  it is so hard to use it Smiley Sad i ve had enough 

0 Kudos
Message 19 of 20
(1,727 Views)

See my attached VI. It runs because the Population array has to have 7 elements and the parameter array need to match the bounds that you have set.

 

As far as using LabVIEW for optimization, it can be done. Have you looked at the examples related to this specific VI to see how that compare to your application?

 

Refer to the following VIs for examples of using the Global Optimization VI:

  • Find Global Min on Surface VI: labview\examples\math\optimiz.llb
  • Two Circles Optimization VI: labview\examples\math\optimiz.llb

Cheers


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

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


0 Kudos
Message 20 of 20
(1,720 Views)