Preconditioner or preconditioning for Constrained Nonlinear Optimization VI and Downhill Simplex nD VI

Dear users,
do optimisation algorithms, such as the Constrained Nonlinear Optimization VI and the Downhill Simplex nD VI, use internal preconditioning or does the user have to do it on their own? There is no note or word in the help about (pre)scaling the functions or the variables. On the other hand, there is no word about any nonnecessity to do so.
Cheers,

Hello ghighuphu,
the VI's "just" do their algorithm, so they aren't using internal preconditioning. The user have to do this by himself.
Best regards

Similar Messages

  • Constrained Nonlinear Optimization

    Hello,
    I have some trouble using the  "Constrained Nonlinear Optimization.vi"
    Apart from the manual I could not find much information on the algorithm on the internet... It look like often my program gets stuck in a loop inside the subvi "isisubopt.vi" (L-->inf , matrix inversion results in a matrix of zeros). This happens with some datasets, not with others, but when it gets stuck, there is no possibility to leave the loop and thus I have to quit the vi.
    Is there reason for this eternal loop, and it there any way to avoid this situation?
    Thanks, Dirk 

    Hi Dirk,
    I'm not familiar with the algorithm, but the Wikipedia page is likely a good start point. There's a PDF at the bottom called "Introduction to Sequential Programming".
    What is the difference in your data sets? Same size?
    Jeff | LabVIEW Software Engineer

  • Curve Fit of ODE, should I use Lev-Mar or Constrained Nonlinear Optimization?

    I wanna do a curve fitting of differential equations, following is the equations:
    dx/dt = u*x-a*x
    ds/dt = b*u*x+c*x
    dp/dt = d*u*x+e*x+f*p
    and u = um*s/(km+s+s^2/ki)
    I've tried "nonlinear curve fit( Lev-Mar)", but I met difficulties when writing the f(x,a) of Lev-Mar.
    Then I tried "Constrained Nonlinear Optimization", I found that the example "Estimate Nonlinear Spring Constant.vi"
    in the "labview\examples\math\curvefit.llb" was similar to the fitting I tried to do, but there was only one parameter
    need to estimate in this example,but what I need is to estimate 3 parameters.
    However,I modified the example to my equations, it failed again.
    How can I achieve this? is it possible to do this fit only using Labview VIs or need Matlab Script Node?
    Any help will be appreciated.

    I forgot to mention that in the equations above,  a,b,c,d,e,f is constant,
    and the data of x,s,p corresponding with the data of time is already known,
    and which parameters I wanna identify is um,km,and ki
    帖子被myafu在12-22-2006 01:33 AM时编辑过了

  • Non-varying variable in Constrained Nonlinear Optimization

    I have built a labview VI so as to execute an optimization problem that I had previously solved using Matlab's fmincon. The transition wasn't difficult and the VI mostly works except for one variable.
    The VI is expected to optimize an array of four variables: the first three will be input to a control systems function, and the last is converted to int to be used for array allocation (think of it as a time switch for the second and the third variable). When I run the code, that last variable doesn't change, not by one iota. To confirm this, I set a breakpoint with a probe and watch as Labview would modify the three other variable but still has the fourth variable at 140.00000 . I've tried varying the criteria and settings, but to no avail.
    What am I missing, or is this somehow normal?
    Solved!
    Go to Solution.

    not all optimization routines use partial derivatives (hence "non-linear")
    I've attached the main file that decouples the variables. The resulting output will be the input to a control system whose output will be compared to a specific predetermined plot.
    Attachments:
    sequenceToRateError.vi ‏18 KB
    Times.ctl ‏5 KB

  • Constrained nonlinear curve fit can properly handle the function like ln(1+b(x-xc)/a) ?

    Hi all,
    I met some problems about using constrained nonlinear curve fitting vi. It seems to me that this vi can't properly deal with the function like ln(1+b(x-xc)/a), a,b, and xc are the parameters, and b is in the range of 0 and -1. The reason I said that is as I used the other nonlinear fitting function in the other software, like Originlab, the fitting function can work properly.
    The error message from LV occurs as 1+b(x-xc)/a is less than zero. 
    However, due to a,b are both adjustable parameters, how could this situation happen ?
    Now I attach the vi files. The attachment includes main vi, mathmatical formula, and an input XY txt file.
    I appreciate any help or suggestion from you!!
    Here is the error message
    Joy
    Solved!
    Go to Solution.
    Attachments:
    LN-fitting.vi ‏21 KB
    LN-fittingmodel.vi ‏18 KB
    Book2.txt ‏1 KB

    Thanks for reply. whitenoiz 
    Actually I have more than 100 XY data set to test my vi. Some of the data set can be fit flawlessly. And the best fit parameters obtained from my vi are exactly the same as those from other analytical software, like OriginLab. In this case, I know my vi is valid. And in this scenario, I also found 1+b(x-xc)/a is always larger than zero with the best fit parameters (a and b). However, for certain XY data set, the error message will pop up if I use LV built-in vi, but I still can obtain the best fit parameters with OriginLab. And then I realized that error message always pops up as 1+b(x-xc)/a is less than zero, which it means to me that as LV built-in vi handles this type mathematical function, this built-in vi will encounter some difficulties. 
    I will step through my code, and also focus on the Matrix Left DivisionMV.vi, try yo find where the problem is.
    Best regards,
    Joy

  • Constrained Nonlinear Curve Fit VI: Termination Revisited (LabVIEW 8.5)

    Hello:
    In the Constrained Nonlinear Curve Fit VI, the Help for the VI states that if the number of iterations exceeds max iterations specified in the termination control, the fitting
    process terminates. Would this not indicate that if the above condition is met, the number of iterations recorded (an output of this VI) should be equal to the max iterations specified (since the VI is exits at this point).  I believe I have seen situations where this condition is met, yet the number of iterations recorded is greater than the max iterations I have specified in the termination control.  Has anyone else seen this?
    Thanks,
    Don

    Don,
    Just wanted to clarify the termination criteria for the nonlinear curve fitting routines.  There are two criteria used to terminate the fitting process:
    "max iteration" and "tolerance".  The main while loop terminates when either of these conditions is met, so:
    IF( (current_iteration > max_iteration) OR (current_tolerance <= tolerance) ) THEN (terminate loop)
    "current iteration" is just the current loop counter(starts at 1 for the first iteration).  This term is mainly a guard against having the fitting process run too long.
    tolerance is computed as the relative change between the current and previous weighted least squares values.
    Let wls = SUM_OVER_ALL_X( weight(x)*(f(x,a)-data(x))^2 )
    current_tolerance = ABS(current_wls - previous_wls)/(ABS(current_wls) + machine_epsilon)
    where ABS indicates absolute value.  Adding machine_epsilon to the denominator is just a guard against division by zero.
    For the bound nonlinear curve fit VIs, if the "method" input is chosen to be LAR or bi-square, then wls is defined as:
    wls = SUM_OVER_ALL_X( weight(x)*reweight(x)*(f(x,a)-data(x))^2 )
    where reweight(x) is a term reducing the weight of high-leverage data points.
    For both the constrained and unconstrained fitting routines, if the weight input is unwired then all points are considered to have a weight of 1.
    Christian has nicely covered the difference between the number of iterations and the number of function calls.  If your
    When the fitting process terminates the best result obtained so far is returned.  As you noted, this may be a good result, although the algorithm may not have completely converged yet.
    -Jim

  • Need examples for non-linear optimization

    In the mathematics - optimization section there is a VI which is..... unconstrained optimization
    I am using the downhill simplex option and the input that describes the objective function is "another VI" which I will create.
    Are there any examples on how to use this VI since I am not sure how to use the "objective function" input which is a reference to another VI and how to set up the "function data" input either (i.e do you use it specify constants ???? how do you do this ????)

    Hi sammy,
    You can find more information about this command by right-clicking on the VI and choosing Help. You can then choose the Downhill Simplex option for a detailed description of how to use this VI. The following information is provided in the Help about the "objective VI" you must build:
    objective function is a reference to the VI that implements the
    function to optimize. Create this VI by starting from the VI template located at
    labview\vi.lib\gmath\NumericalOptimization\ucno_objective
    function template.vit.
    Also, more help information can be viewed here:
    Downhill Simplex nD (Not in Base Package)
    I didn't find an example program in our Developer Zone, but you might be able to find one by searching the Discussion Forums.
    Hope this helps!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • DR Standby System  for SCM5.0 Optimizer

    Hi,
    We are in the way of implementing of DR Standby System for SCM5.0 Optimizer Window base system.
    Can anybody help us to build this please?
    Thanking you
    Regards
    Pranav

    hi pranav,
    i am giving somewat helpfull info pls check it out.
    This section describes how you set up a standby database with SAP DB [Page 118]. .... Database Manager GUI (DBMGUI) on Windows-based operating systems .see thsi link
    www.sapdb.org/7.4/pdf/usermansapdb_eng.pdf -
    www-03.ibm.com/systems/storage/solutions/sap/pdf/sap-dynamiclandscape.pdf -
    regards
    karthik

  • How to prevent for a particular org manually created IR/ISO should not be considered for Constrained EDD plans

    We have a situation that around IRs with ~500 parts which manually created in Org A and ISO Created in Org B and ISO picked as well. But due to some reasons, shipment will get delay for 1 month and till that time plan should not be considered this IR' as supply in Org A.
    Currently our Constrained EDD plan is considering this IR quantities as supply for the Org A demands and not generating any Planned orders. Seems we don't option to firm IRs by changing the need by date after 1 month. Also its not respect the need by date of IR and its getting reschedule in action and pegged to the current Demand in Org A. Please advise if you have any thoughts.

    We have a situation that around IRs with ~500 parts which manually created in Org A and ISO Created in Org B and ISO picked as well. But due to some reasons, shipment will get delay for 1 month and till that time plan should not be considered this IR' as supply in Org A.
    Currently our Constrained EDD plan is considering this IR quantities as supply for the Org A demands and not generating any Planned orders. Seems we don't option to firm IRs by changing the need by date after 1 month. Also its not respect the need by date of IR and its getting reschedule in action and pegged to the current Demand in Org A. Please advise if you have any thoughts.

  • [svn:fx-beta1] 6785: Two simple beta 1 fixes to avoid NPEs in p / and span / code gen for FXG- SWF optimization.

    Revision: 6785
    Author:   [email protected]
    Date:     2009-05-11 06:59:56 -0700 (Mon, 11 May 2009)
    Log Message:

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • How do I keep an image constrained in one size, and not become enlarged?

    I would like to disable the feature where images on iweb will expand when clicked on.
    I had thought I edited the photos to keep them one size- 300 x 300 px. After I added them to a web page on iweb, I used the site inspector, and tried to put the information and constrain the size .
    I could only adjust the width, as the height was in grey, and unable to be adjusted. The box for constrain proportions was also in grey, and was unable to pick that.
    I tried using different images, but was unable to adjust this.

    To change the size of the thumbnails in a photo page use the Setting pane and increase or decrease the spacing between images:
    Click to view full size
    If you add 300 pixel x 300 pixel photos into a photo page then the large size image that comes up when you click on a thumbnail will be 300 x 300. Is that what you want? You don't need to reduce the size of the image to get a specific thumbnail size. You just need to adjust the spacing between them as described above.
    OT

  • Differences Between Optimizer Solution and Planner Solution in Project Server Events

    Dear All,
    Does anyone know the differences between Optimizer Solution and Planner Solution in Project Server? 
    In http://msdn.microsoft.com/en-us/library/office/gg204879(v=office.15).aspx and http://msdn.microsoft.com/en-us/library/office/gg200978(v=office.15).aspx, they stated same definitions for both Optimizer Solution and Planner Solution.
    Thank you.

    Not entirely sure, but I'd guess they are the same.  This is probably a relic of the old Portfolio Server which had Planner and Optimizer as separate modules.  My guess is that some of that got grandfathered in to Project Server, but due
    to functionality creep, ended up meaning pretty much the same thing.
    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

  • [svn:fx-trunk] 12930: Optimize transformSize and transformBounds, reduce allocation of Point objects.

    Revision: 12930
    Revision: 12930
    Author:   [email protected]
    Date:     2009-12-14 16:23:58 -0800 (Mon, 14 Dec 2009)
    Log Message:
    Optimize transformSize and transformBounds, reduce allocation of Point objects.
    This change addresses a couple of FIXMEs I had put in the internal MatrixUtil class. The parameters were changed to numbers instead of points and I unrolled the matrix multiplication to significantly reduce the number of multiplications and additions. Both methods now return reference to the same internal static Point object to further reduce dynamic object allocation.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests, mustella tests/gumbo/layout
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/sparkTest/src/layouts/WheelLayout.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayo ut.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as

  • Complaint for the contractor repair store and appler customers service

    Case description: I can't start my iphone last week. So I made a phone call from the APPLE(**********)in China to get a chace to check what happened.
    And after the customer service check, they suggest me to go to the contractor store to repair which located in PUDONG, Shanghai as there is full of request for the apple store. I accept that and went to the contractor. The contractor say there is hardware issue and you should pay round RMB 2,000 to change a new one.
    They don't accept the credit card and they only accept cash. I went back home as I haven't got enough cash on hand.
    The second day, I apply for the request on website and fortunately I got the chance to get the apply store to check.
    And I went to there, the apple guy from the genious bar check and say it's the software issue and can be fixed right now.
    Now I could get into using the iphone 5. I take some phone calls to tell the Apple what had happened for myself,but they feedback me they can't tell you what's their action plan and when they could give me the answer about that. So poor answer!!! I have been worked for International company for more than ten years, this is the first time I heard from that the tough and poor answer. So I decide to tell everyone to note that.
    You can't believe the apple contractor repair store and it's a bull **** answer from the apple customers service in China!
    I want to complaint
    1. The different feedback from the Appler store and Contractor Store when I took the same issue iphone 5 to them.
    2. The customer service is very tough and they can't listen to the consumer complaint from heart. It seems they will not deal with the problem but aviod to that.
    (Please note I made this phone call at 14:04 China time in Shanghai.)
    I suggest that:
    1. RE- Evaluation the certification of the contrator at TAO LIN Road, Pu Dong Shanghai
    2. RE-Check each case this contrator deal with
    3. Make sure the custom service would be apologize to me
    4. Pay for the extra time and cost(1 Dollar) to me
    (I have iphone 4S, iphone 5, ipad 2, ipad mini) Could I become the VIP guy? LOL!
    5. The most important thing is that they should optimize the service procedure RIGHT NOW!
    It's the real case happen from myself, please forward the information to the Apple top management officer if anyone from Apple.
    I love Apple production,but too sad to have a bad experience for that. I'll consider about SAMSUMG if APPLE don't make any change.
    <Edited by Host>

    This is a user-to-user tech support site not Apple customer service. Apple doesn't read posts here. You would know that if you read the forum Terms of Use to which you agreed when you joined.
    No one here is insterested in your complaints or threats.

  • How to create constrained or unconstrained Kerberos and know whether the back end is constrained or unconstrained Kerberos?

    Hello Community
        I am considering Kerberos Authenication but there seems to be
    2 kinds of Kerberos: constrained and unconstrained.
        Since when creating Kerberos you are only offered things like "Negotiate\Kerberos"
    Or "Negotiate" or "Setspn" the question is how do you create a constrained
    or unconstrained Kerberos and since the back end has to match how do you
    do you know whether the back end uses constrained or unconstrained Kerberos?
        Thank you
        Shabeaut

    Kerb is used for one of several scenarios:
    - connecting SP to SQL databases, which provides assurances around the connection between the SP service accounts and the SQL service accounts
    - connecting SP to external systems (such as SQL databases, which may be used by BCS, Excel, PerformancePoint, PowerPivot, etc).
    Constrained Delegation is not necessary for SP to use Kerb when connecting to SQL. it IS necessary for SP to talk to external systems (since Constrained Delegation is also known as "Kerberos with protocol transition", since it's
    transitioning a Claims based auth token to a kerberos based auth token).
    The difference is a setting in AD's Delegation tab, for the service account that will be collecting the users' login (presumably the webapp), and for the service account that will be performing the double-hop (presumably the service apps)... in addition
    to the kerb setting, you also need to specify EXACTLY which endpoints can be reached using the Kerb + CD... unconstrained delegation (the default) allows the Kerb token to be passed anywhere... constrained delegation only allows the Kerb token to be used
    by the places you specify (in the delegation tab)... such as the SQL server that the PerformancePoint scorecards will be querying.
    Links:
    - Microsoft's Kerberos guide : http://www.microsoft.com/en-us/download/details.aspx?id=23176
    - more links : http://www.sbrickey.com/Tech/Blog/Post/SharePoint_Troubleshooting_Kerberos_and_External_Data_from_Excel_Services
    - some health analyzers to find problems and recommend solutions : http://sdssharepointlibrary.codeplex.com/releases/view/92022
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

Maybe you are looking for

  • Can i use iCloud for pages documents iMac?

    can i use iCloud for pages documents iMac?

  • Error building PKG grub-reiser4

    helo,    I have this error building makepkg in grub-reiser4 aur package makepkg ./PKGBUILD: line 12: syntax error near unexpected token `)' ./PKGBUILD: line 12: `           '4876f193005df5fca8ca9647729d1e23')' ==> Making package: grub 0.97-2 (Sun Dec

  • I purchased an upgrade to my one note app.  How can I get that to transfer to my new iPad?

    I purchased an upgrade for my OneNote app, how do I get that to transfer to my new iPad?   I downloaded the app but the upgrade is not loaded on this new iPad.

  • Hibernate child object creation problem

    hi, i have two java classes named "user" and "writer" writer is subclass of user. with hibernate mapping files , i 'm mapping objects with table-per-subclass strategy... here is my mapping code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibern

  • Photo syncing not happening during sync

    I got a new computer and moved all my media over to it. I the backed up my iphone and ran a sync. My calendar, contacts, apps, and music all synced with no problem. However the photo folders that i have chosen to sync are not doing so. Periodically i