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

Similar Messages

  • I need example for VARIABLES with Customer Exit.

    hi every body i need example for Variable for Customer Exit.

    Hi,
    You can define 'Formula' variables in your customer exit..for example..
    you need to calculate no of machine running hours per month, in order to
    caculate the machine total utilization time..in this context.. you need to know
    how may hours are there in an month by month..
    you can define a variable and write the code in the customer exit for deriving the total no. of hours available for that month and get that value into a variable for further calution like deducting the down time and set up time so on..in your
    calculated KF..
    Hope this helps..
    Assign points if useful..
    Cheers,
    Pattan.

  • Confidence bounds for non-linear fit

    Is it possible to get the confidence bounds for the fitted coeficients when using non-linear fits?

    Hello Dahl
    Do you mean like Upper Bound and Lower Bound output terminals of NI_Gmath.lvlib::Nonlineat Curve fir intervals.vi?
    Message Edited by Eirikur on 01-09-2008 01:25 PM
    Regards,
    Eirikur Runarsson
    Platinum Applications Engineer
    NI Denmark

  • Constrained non-linear optimization

    [fmin, xmin, nIter, kfTolr, kTolr] =
    optimize(sFct, x0, eqFct, ineqFct, cType, tolr, maxIter, maxFctcalls,
    callback)
    I should much appreciate an example of how to use the above
    analysis function. Especially the eqFct and ineqFct functions.
    How are the constraints used within these functions or are they
    used in the calling function?The functions return vectors, but how
    are the returned vectors used? Should sFct call any of them?
    How are the functions conjoined to determine the La Grange multipliers?
    Do I have to add the LG mulitpliers or are they automatically taken care
    of?
    Thanks!

    I think it works that way
    SC
    function sFct(x)
    y=abs(x[1]^2-x[1]-6+x[2]);
    return y;
    end function;
    function ineqFct(x)
    ->it is of the way hx)<0, if I want x[1]>1, (1-x[1]<0) and x[1]<6 (x[1]-6<0)
    and x[2]>3 (3-x[2]<0)
    y[1]=1-x[1];
    y[2]=x[1]-6;
    y[3]=3-x[2];
    return y;
    end function;
    function eqFct(x)
    ->it is of the way h(x)=0, if I want for instance x[1]=6*x[2]
    (x[1]-6*x[2]=0)
    y[1]=x[1]-6*x[2];
    return y;
    end function;
    [fmin, xmin, nIter]=optimize(sFct, {v:100,10},eqFct,ineqFct ,);

  • Need example for BAPI query. Please, help.

    Hi,
    badly need help on BAPI_ACC_ACTIVITY_ALLOC_POST.
    Does anybody have some example code for jCO query?
    Thanks.
    Vladimir

    Hi,
    Try this code...
    package jco;
    import com.sap.mw.jco.*;
    public class jcosample
       public static void main(String args[])
           JCO.Client myConnection = null;
           JCO.Repository mRepository = null;
           JCO.Function myFunction = null;
           try
           myConnection = JCO.createClient("client","username","password" ,"language","ip address","system no");           
           myConnection.connect();
           mRepository = new JCO.Repository("WIPRO",myConnection);
           try
                  if (mRepository == null )
                         System.out.println("NuLL");
                  try
                         IFunctionTemplate ft=mRepository.getFunctionTemplate("BAPI_COMPANYCODE_GETLIST");                                                 
                         myFunction=ft.getFunction();                    
                  }catch (Exception ex)
                         throw new Exception(ex + "Problem retrieving JCO.Function object.");
            if (myFunction == null)
                     System.exit(1);
                  myConnection.execute(myFunction);                                  
                  }catch (Exception ex)
                         ex.printStackTrace();
                         System.exit(1);
                myConnection.execute(myFunction);
                JCO.Table codes = null;
                  codes =myFunction.getTableParameterList().getTable("COMPANYCODE_LIST");
                  int size;
                 size =codes.getNumRows();
                  if (size == 0)
                      System.out.println("No value matches the selection cretaria");
                  else
                     for (int i = 0;i<=size; i++)
                            codes.setRow(i);                      System.out.print(codes.getString("COMP_CODE"));                     System.out.println(codes.getString("COMP_NAME"));
           }catch( Exception e)
                  e.printStackTrace();
    Hope that helps...
    Note: in case for the BAPI that inserts or modified data you must call the BAPI_TRANSACTION_COMMIT also for the changes to get reflected in the Database.
    Please let me if that helps you.
    Cheers
    Kathir~

  • Need Help for Non Transactional Data

    Hi,
    I need your help for getting the non-transactional data. I am looking for some solution where I can have employee list with both transaction and non transaction along with the measure in the report.
    Thanks in advance.
    Phani.

    Looks like you either want a procedure with OUT parameters, or to return a record (which you'd need to declare somewhere that your function and calling procedure can both see)

  • Need Example for AVG() function in script logics...

    Hi Everyone,
                      I need to calculate average for all the account members ...
    so if anybody worked with this AVG() in Script logics please share with me...................

    What do you mean by calculate average? Average for the period or for some other parent or..? Where do you want to store this average? How do you want to use this average???

  • Need example for code use with Simple Type Enumeration

    Hello,
    I've created a Simple Type Enumeration in my Web DynPro Project's Local Directory.
    I see that there is an option there to generate a class representation of this Enumeration. Can someone please show me an example code of how to use this Class. For example, to go over the Enumeration and get all the values?

    hi Roy,
    Try this.
    Iterator chk =
    wdContext.nodeB().getNodeInfo().getAttribute("val").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet().entrySet().iterator();
    I will check it and tel u in some time...
    Regards
    Bharathwaj
    Message was edited by: Bharathwaj R

  • Solving Coefficien​ts for Non-Linear Equation

    I have the following equation that I need to solve a, b and c. y = a+bexp(-x/c). Is there a VI that is written to help me?

    i don't understand what do you suppose to mean?
    you have not a,b and c values and you wanna solve 3 unknown variables with just one equation?
    do you think is that possible?
    even you had x and y values!
    but if you have 4 values and you just want to find another variables value it's so easy
    you can easily use a formula node.
    i have write a simple program for you to solve this equation and i attached it to this answer.
    it's with LabVIEW 5.
    Attachments:
    formula_node_example.vi ‏25 KB

  • Need Examples for asm in sun c compiler

    I am having problem with writting inline assembly level language using asm in sun c compiler. I needed few examples like passing variables to inline asm and getting result from the passed varriable. This is somthing like gnuc asm ( Here we have four argument, we can get the result from the argument what we passed)

    The asm() syntax is not well supported by our compiler.
    The preferred way of doing this is using .il templates to inline assembly
    code.
    http://developers.sun.com/tools/cc/articles/inlining.html

  • Need example for reliable messaging over http in oracle service bus 10g

    Hi
    i want to setup the reliable proxy service that will poll the end system if it is down and send msg when it is up
    i dnt kw how to do it.
    i used WS-policy XML and set out the timeout interval and all other properties.
    and used WS transport protocol in proxy service.
    but when i request if wait for the timeout i have specified in WS-policy and than show this msg
    <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
         <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>
         BEA-381412: Conversation timed out.
    weblogic.messaging.saf.SAFTransportException: Send failed
         </faultstring>
         <detail>
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-381412</con:errorCode>
         <con:reason>
         Conversation timed out.
    weblogic.messaging.saf.SAFTransportException: Send failed
         </con:reason>
         <con:location>
         <con:node>RouteTo_testwsrmbix</con:node>
         <con:path>response-pipeline</con:path>
         </con:location>
         </con:fault>
         </detail>
         </soapenv:Fault>
         </soapenv:Body>
         </soapenv:Envelope>
    It does not send even a single request to the end system.
    I want it like :
    when i make my end system down it must wait for timeout interval and than send the request when system is up
    PLease help me,its urgent.
    i have simple create a web service and using the wsdl to use my end system

    This exam is currently not available. It will become available again in approximately 8 weeks. You can view the exam topics to begin preparing for this exam on the exam details page http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=&lang=&p_exam_id=1Z0_451.
    There are currently no sample questions available for this exam. You will need to use the exam topics to prepare.
    Regards,
    Brandye Barrington
    Certification Forum Moderator
    Certification Program Manager

  • Need URL for non-intel Mac OS X Firefox

    Firefox 7 for Intel Mac overwrote a version of Firefox that worked on my non-Intel Mac. No Firefox right now. Can't find usable version of Firefox on Mozilla website.

    Found the answer. The correct URL is http://www.mozilla.org/en-US/firefox/all-older.html . The working version is 3.6+
    Mac owners take notice---There is no link to the above URL on the Firefox website.
    The advice to upgrade to version 4 is bogus.

  • PPro CS5 Crash Course for Non-Linear Editors

    Backstory: I was asked this morning to teach a crash course in Premiere CS5 for the students in the film program at my school in the Introduction to Editing class who have been using FCP. They have to edit several projects using RED footage, and rather than spend a huge amount of time transcoding it to a format which FCP can work with, the prof has just decided to have his students use PPro CS5 (which is also on their editing computers). Since the prof doesn't use PPro, he's asked me to teach the class for him.
    I created a very brief crash course powerpoint to assist me in giving them the fundamentals of the program, and supply them with a resource to refer back to as they work on their projects after class is over tomorrow morning. I created this for students who already have done some editing in an NLE, and so don't need to be taught WHAT everything is and HOW to cut footage and put together a timeline. This is just to introduce editors to PPro CS5 who are not already familiar with the PPro workflow.
    Anyway, I wondered if some of you gurus would want to take a look at it and give me your feedback on what I've covered well, what I might have missed, and any other thoughts y'all had.
    You can view a PDF of the document at www.bryan.edu/pprocs5 The viewer will bring it up embedded in the page at about 40-50%, so you'd be best off to click the download link and open it in Acrobat where you can go full size with it.

    Thanks for the input!
    I actually taught hem REDCINE-X last week so that they could use it to export their files to an intermediate codec that FCP would understand, and preserve the new colorspace. Unfortunately these computers are so slow that the export process was gonna take nearly a week for all the files they need to work with, so the prof opted to swtich over to PPro midstream since it can handle the raw 4k and supports the new colorspace.
    I didn't mention the saving thing... forgot about it; but the conforming issue did come up and we were able to talk about that in class!
    The class went okay, I guess... I don't know what it is about students these days, but most of them (like all but one) weren't really paying very good attention and they were just sorta goofing off, talking amongst themselves, etc... made it really frustrating to teach this platform!
    Oh well.

  • Why is the tab functionality not working in Responsive layout? I need accessibility for non-mouse users.

    I have generated Responsive HTML5 output. The tab key does not do anything. I want users to be able to tab through the topics and expand or collapse the drop-down hotspots. Tab appears to do nothing. If I generate the same content in WebHelp output users can tab between topics and expand/collapse drop-down hotspots. Is there some sort of setting I have to select to get it to work in Responsive HTML5?

    Thanks Phil Flowers !
    Good tip !
    I' ll be ****.....it actually works too !
    This solves the issue of repetatively unplugging  and plug back in the wired USB keyboard to the TB display. 
    Now...if only the Apple support team would acknowledge the problem in the iMac community at large and step up with a hardware / software fix! 
    Love the TB display......but really...............a non funtioning USB keybord ( apple product )  ???  
    Maybe they missed the Computer Design & Engineering class that day.....or medicinal marijauna in the valley ? 
    The support from Apple on this issue reminds me of the 70's video game system ATARI.......The video game PONG comes to mind ....blip....blip....blip.....back and forth with the ball.......  And yet we were entertained & amused at the time !
    Oh well......they got my dollars too !   Just another unit sold !
    Cheers !

  • Need example for using query string parameters in Web Dynpro

    Hello,
    Is it possible to transfer a Web DynPro application parameters at the query string (URL)?
    Can someone please show me an example of how to pass it and how to retreive it using code inside an application?
    Thank you in advance

    Hi,
    when launching WD apps in the Portal you have to define a WD iView in the Portal. This can be started using the NavigationTarget parameter.
    Parameters (ie. Business Parameters) that should be passed to the WebDynpro application can be defined in the iView itself - the iView attribute is called "Application Parameters". Here you can also define variable expressions like "emailaddr=<User.email>" so that the value of the email address is evaluated on runtime.
    This way you don't have to care about URL encodings at all
    The following user expressions can be used:
    <User.displayname>
    <User.uniquename>
    <User.firstname>
    <User.lastname>
    <User.salutation>
    <User.jobtitle>
    <User.department>
    <User.email>
    <User.telephone>
    <User.mobile>
    <User.fax>
    <User.streetaddress>
    <User.city>
    <User.zip>
    <User.country>
    <User.state>
    <User.timezone>
    udo

Maybe you are looking for

  • [iPhone] Can't download file with FTP

    Dear everybody. I want to download a text file at : ftp://username:[email protected] Current, I use below code: NSString *s = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"ftp://username:[email protected]"] encoding:NSUTF8StringEncoding er

  • Behaviour of "Disable/Delete User After End Date" Task

    Hi Expert, We ran the given OOTB task "Disable/Delete User After End Date" and the behavior is always delete. How,if possible, to change the behavior to disable? Thanks in advance. SK

  • My 6510 won't print in black.

    My 6510 won't print in black.  The ink cartridge is not empty and all of the other colors work.

  • XF86 keys reassigned after suspend/resume

    Hi all, I have this issue with my laptop that I have had for quite a while and been unable to solve. At first I used systemctl suspend to suspend it but when I woke it back up, the keyboard was often unresponsive resulting in having to reboot, defeat

  • L520 | Ersatz Trackpad

    Guten Tag, ich habe eine Frage bezüglich Ersatzteile. Gibt es noch eine Möglichkeit an ein Trackpad für den L520 heranzukommen? Sollte es nur in Form mit einem Gehäuse möglich sein, ist das kein Problem. Danke schonmal. VG et_matt