11-17-2010 11:47 AM
Hi all,
I have been working on a minimization problem (for details, see this post). I have figured out how to run an unconstrained minimization, but can't quite figure out why my objective function wire remains broken. Here is a screen shot:
Any ideas?
I include below this example main VI, a subroutine that does the minimization, and a subroutine that gets called during the minimization. As it seems I am limited to 3 attachments, I will add some sample data to the first reply that I will generate.
Many thanks,
RipRock
Solved! Go to Solution.
11-17-2010 11:48 AM
And here is the sample data
11-17-2010 01:24 PM
Hello all,
I just figured it out. For those who may be confused as well, the answer is: Follow the directions! RTFM! In other words, if you use the provided template located at labview\vi.lib\gmath\NumericalOptimization\ucno_objective function template.vit, instead of recreating the code in the example, it works.
Sorry for these posts - and thanks for your consideration,
RipRock
01-06-2011 08:49 AM
Hi RipRock,
Could you please post your solution that worked? I'm having a similar problem, but the directions remain vague, and I'm still not sure how to proceed even after reading the directions.
Thanks.
01-06-2011 07:14 PM
Basically all I did wrong was I created my own function to minimize from scratch. The help very clearly says to copy the template and use that. Here is the function copied into the LV provided template.
All the best,
RipRock
01-07-2011 09:56 AM
Thanks, great help.
05-28-2018 05:53 AM
Sorry for bumping this old thread.
I just encountered this problem again using LV2016. However, even though I used the template as per instruction, I still encountered class conflict error.
The solution is to right-click the Static VI Reference, and make sure that the "Strictly Typed VI Reference" is checked.
Hope I am able to help other people encountering the same problems. Cheers!