Can LVs minimization functions minimize a function with a summation in it?

Hello all,
I am trying to minimize U-X, where U is a n point array of measured data, and X=f(U), a n-point summation function of 7 variables:
I have made efficient sub-VI's to calculate this function, and normally would solve this using an amoeba like approach, however, LV's minimization routines appear to need analytic functions.  I can write this equation as above, but am not sure that I can provide this as an input to a minimization routine.
I am wondering:
1)  Can this function be entered analytically to LV, allowing me to use built in solvers?  If so, how?
2)  If not, how can I minimize this?  I have seen some very complicated and only modestly explained Lev-Mar examples, but can't make heads or tails of them.
A note: I am actually only trying to fit the baseline of the data, not the whole spectrum, but if someone can point the way on the minimization approach, I can figure out the rest (I may use a  minimum entropy approach, i.e. minimizing the derivative of the sum of the difference between the data and the results of the function call).
I include my function VI below, as well as an ascii string of typical data, 5000 points long.  Any ideas would be strongly appreciated!
Thanks,
RipRock
PS:  I know I am asking a lot here.  Serious thanks in advance. 
Solved!
Go to Solution.
Attachments:
DashPotCorr1a.vi ‏72 KB
ExampleData.txt ‏47 KB

Hi all,
One more thing - to help out a bit more, here is a simple VI to read in the data, calculate the correction, and plot the two.  I have provided default values that more or less work for this data (manual minimization!).
Thanks,
RipRock
PS:  Here is what the result looks like:
Attachments:
ExampleCode.vi ‏22 KB

Similar Messages

  • How can I Create function with an  out Parameter

    how all
    how can I Create function with an out Parameter
    I try to create it it sucess but how can I CALL it , it give me error
    please I want A simple example
    thanks

    3rd post on same question by same user :
    Re: how can I Create function with an  out Parameter
    how can I Create function with an  out Parameter

  • Can't minimize all windows with alt, c, M

    Is this option, command and letter M?  It doesn't do anything.  What am I doing wrong?

    As far as I know there is no global minimize command that will affect all open windows for all programs, all at the same time.
    Is it possible that the person at the Apple Store was showing that a bunch of open windows for folders, i.e. Finder windows, could all be minimized at once? Since Finder is considered a program for things like this, then Command-Option-M will minimize all open folder windows (provided Finder is the active app) simultaneously.
    Hiding windows is a different thing.
    When a program's windows are hidden, they seem to disappear but are not minimized to the Dock. The basic command for this is Command-H. Pressing that combo will hide the windows for the current active app and switch active status to the next open app.
    The Option key and clicking can be used to do this. For example, with one or more windows open in TextEdit, Option-click on the Desktop - all of TextEdit's windows will disappear (get hidden) and the active program will switch to Finder.
    HIdden windows can be made to re-appear by clicking the icon for the program in the Dock, thus switching the 'active' status to that program.
    You can hide all windows except for a chosen active program in one action - with that program frontmost (active), press Command-Option-H. You can accomplish the same effect by holding down Command-Option and clicking in a window for the app whose windows you want to remain visible - windows for all other open programs will be hidden.

  • Can we write function with variable number of argument

    Hi
    Can anybody tell that can we pass variable number of arguments to a function in oracle 10gR2.
    As in function decode we can pass variable no. of arguments upto 255 arguments, similarly can we creat a function which accept any no. of variables.

    I'm not sure that this is what you were asking about, but depending on the logic you want to implement, you can declare the maximum possible number of parameters to your function, give them default values, and then pass to your func as many parameters as you want:
    SQL> create or replace function test(p_a number:=null, p_b number:=null) return varchar2 is
      2    Result varchar2(100);
      3  begin
      4    result:='a='||p_a||', b='||p_b;
      5    return(Result);
      6  end test;
      7  /
    Function created
    SQL> select test() from dual;
    TEST()
    a=, b=
    SQL> select test(1) from dual;
    TEST(1)
    a=1, b=
    SQL> select test(1,2) from dual;
    TEST(1,2)
    a=1, b=2
    SQL> drop function test;
    Function dropped
    SQL>

  • The rest of my question/gripe: i'd gladly pay a subscription fee if/when firefox can provide reliability, function with other software like java,adobe,flash, et al. and figure out a way to deal with user frustration with a paid staff. otherwise, why engag

    the details are in my question. for starters, please fix the interface with gmail--and notify all users about it!
    == This happened ==
    Every time Firefox opened
    == see previous statement

    There is no Flash player version 15... as in your code:
    <param name="swfversion" value="15.0.0.0" />
    For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
    If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
    Best wishes,
    Adninjastrator

  • How to Remove "OLAP Functions with right-click" in Workbooks (By VBA?)

    Dear Experts:
    After we created workbooks, to prevent end users from using certain BEx functions, we greyed out some "icons"
    on SAP BEx Menu in the workbooks. But now we have one problems: because we also made "Setting" unable on the menu bar, now we are not able to remove one marked selection: "OLAP Functions with right-click". Is there any way we can disable "OLAP Functions with right-click", then users can only use the normal Excel functions in the workbooks??
    Thank you very much and BR
    SzuFen

    Hello,
    Go to Business Explorer Menu, Select Settings, Uncheck OLAP Function with Right Click and save it as existing workbook.
    I have tried it. It works, when you reopen, it will be still disable..
    Hope it helps.
    San.
    Message was edited by: SAN

  • When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.

    When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message.  I use Exchange 2010 only local users.

    I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
    http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
    CRM Advisor

  • I can't execute oracle functions with c#.  i'm using oracle 9i version.

    i have a problem trying to execute an oracle function with c#.net. The Oracle version i'm using is Oracle 9i.
    This is the function definition: (it's defined and working right because i have tryed it with SQLWorksheet)
    CREATE OR REPLACE Function NRegistros return integer is
    Numero integer(4);
    begin
    select count(*) into Numero from singles;
    return Numero;
    END NRegistros;
    But with c#.Net i can't acces it because i get an error: "this is not a procedure or is not defined". And i think the code is right. In fact in the same code you can see that i'm using an stored procedure and i have not problems. But with the function i have problems. Is it possible that "OracleClient" can't work with Oracle9i functions??. This is the code:
    OracleParameter Parametro = new OracleParameter("Name", OracleType.VarChar,10);
    OracleParameter ParametroFuncion = new OracleParameter("Retorno", OracleType.Int32, 4);
    Parametro.Direction = ParameterDirection.Output;
    ParametroFuncion.Direction = ParameterDirection.ReturnValue;
    OracleConnection Conexion = new OracleConnection("Data Source=DISCOS;User Id=SYSTEM;Password=a0000;");
    Conexion.Open();
    OracleCommand Todos = new OracleCommand();
    OracleCommand Procedimiento = new OracleCommand();
    OracleCommand Funcion = new OracleCommand();
    Todos.Connection = Conexion;
    Todos.CommandType = CommandType.Text;
    Todos.CommandText="select * from singles";
    Procedimiento.Connection = Conexion;
    Procedimiento.CommandType = CommandType.StoredProcedure;
    Procedimiento.CommandText = "Procedimiento";
    Procedimiento.Parameters.Add(Parametro);
    Funcion.Connection = Conexion;
    Funcion.CommandType = CommandType.StoredProcedure;
    Funcion.CommandText = "NRegistros";
    OracleDataReader Lector = Todos.ExecuteReader();
    BindingSource Discos = new BindingSource();
    Discos.DataSource = Lector;
    dgvSingles.DataSource = Discos;
    Procedimiento.ExecuteNonQuery();
    Funcion.ExecuteNonQuery();
    lblRegistroProcedimiento.Text = Procedimiento.Parameters["Name"].Value.ToString();
    lblNregistros.Text=Funcion.Parameters["Retorno"].Value.ToString();
    Conexion.Close();
    Edited by: user11921281 on 22-nov-2009 20:32

    thank you very much. It was a stupid error, sorry. There was one line left :
    OracleParameter Parametro = new OracleParameter("Name", OracleType.VarChar,10);
    OracleParameter ParametroFuncion = new OracleParameter("Retorno", OracleType.Int32, 4);
    Parametro.Direction = ParameterDirection.Output;
    ParametroFuncion.Direction = ParameterDirection.ReturnValue;
    OracleConnection Conexion = new OracleConnection("Data Source=DISCOS;User Id=SYSTEM;Password=a0000;");
    Conexion.Open();
    OracleCommand Todos = new OracleCommand();
    OracleCommand Procedimiento = new OracleCommand();
    OracleCommand Funcion = new OracleCommand();
    Todos.Connection = Conexion;
    Todos.CommandType = CommandType.Text;
    Todos.CommandText="select * from singles";
    Procedimiento.Connection = Conexion;
    Procedimiento.CommandType = CommandType.StoredProcedure;
    Procedimiento.CommandText = "Procedimiento";
    Procedimiento.Parameters.Add(Parametro);
    Funcion.Connection = Conexion;
    Funcion.CommandType = CommandType.StoredProcedure;
    Funcion.CommandText = "NRegistros";
    Funcion.Parameters.Add(ParametroFuncion); //<--------------------- That one !!! (yes it was a stupid error jeje)
    OracleDataReader Lector = Todos.ExecuteReader();
    BindingSource Discos = new BindingSource();
    Discos.DataSource = Lector;
    dgvSingles.DataSource = Discos;
    Procedimiento.ExecuteNonQuery();
    Funcion.ExecuteNonQuery();
    lblRegistroProcedimiento.Text = Procedimiento.Parameters["Name"].Value.ToString();
    lblNregistros.Text=Funcion.Parameters["Retorno"].Value.ToString();
    Conexion.Close();

  • How can I use AGO function with aggregates

    I use aggregated table and a detailed table
    I have time hierarchy whose lowest level is date. For sales I
    created year-to-year (YTD) comparision with AGO function. It
    works OK.
    BUT, I want to speed it up, so I used aggregates. I created new
    time table grouped by MONTH and corresponding agg_SALES table. I
    created connections and mapped the fields. It works OK for
    normal queries, that means my queries at month level use
    aggregates. BUT when I add YTD measures or YAGO measure in query, it goes to
    then SALES table whose grain is date.
    How can I force BI Server to use AGO function with aggregates?
    I use OBIEE 10.1.3.4
    Thank you
    Ishaq
    (Question originally taken from ITtoolbox and posted by Gorazd)
    SORRY - THE QUESTION IS IN THE WRONG FORUM
    Edited by: ishaq12 on Nov 19, 2008 12:21 PM

    Hi,
    you can not do it in Administration tool but you can set agregation for that field in Answers (fx->Agregation rule->Sum) and effect should be the same. Note that it may not work properly on Oracle 10g as generated SQL is not 100% recognized, on 11g everything is OK (at least in my case).
    Regards,
    Marko
    Edited by: user10449532 on 2008.11.19 06:29

  • Can I perform the "control  F3" function with my magic mouse?

    If I press "control + F3" all of my open Safari windows pop up in an orgainzed fashion showing each page complete and seperate in a smaller form.  I want to know if I can perform this function using my magic mouse, not trackpad.
    I know that if I double tap my mouse that the windows will do a similar alignment, but it is not the same.  If I double tap then they are kind of made smaller but placed on top of each other.  I want them seperated completely like they are when I press "control + F3." 
    Any help with this?  Thanks.

    https://discussions.apple.com/thread/3194480?start=0&tstart=0

  • To function with the format VTR. Can anyone help?

    ok i have final cut pro but i use a dvd recorder to record all of my shows and I was trying to figure out if Final cut Pro has a way to function with the format VTR. Can anyone help?

    If you want to record directly to the DVD recorder, you'll most likely find that most DVD recorders with a Firewire input will NOT record directly from your Mac.  I'm only aware of a couple of models (long since discontinued) that would allow it.  So what you have to do it to connect your Mac via Fireiwre to a digital-to-analog converter (most any DV camcorder, VTR or DV converter box), then connect the converting device to your DVD recorder using the analog connections.
    If you want to capture from the DVD recorder (hard drive or disc), you can usually do that via Firewire directly to your Mac: in FCP, set Device Control to "Non-Controllable Device" and use Capture Now. Do not expect FCP to control the DVD recorder like it can with camcorders and VTRs.
    -DH

  • HT4046 why i can't enable the voiceOver function with my new labtop(window 7 64bits) with my ipod shuffle?

    why i can't enable the voiceOver function with my new labtop(window 7 64bits) with my ipod shuffle?

    even try to update the latest itunes but still can't fix it
    is it window's problem?
    it work fine in my orginal desktop with window XP
    PS: ipod shuffle 3rd

  • Can Itouch be charged and fully functional with Pioneer AVIC-Z3 auto stereo

    I am considering getting the Pioneer AVIC-Z3 navigation/stereo Head in my car. I am told that the Pioneer unit will not charge an Itouch that has higher than version 1.15 because of charging voltages/pin changes. I was also told that a Scosche Passport will not solve this problem with the Pioneer systems.
    1- Pioneer reps told me that if my Itouch has version 1.15 it will charge and have full functionality with the Pioneer Z3 as that was when the Z3 was designed for. My Itouch has version 2.2 I believe. Can I "downdate" to version 1.15 and how?
    Anyone have any experience and advice with this matter. This may be a deal breaker.
    Thank you.
    Don

    Pioneer reps told me that if my Itouch has version 1.15
    It's NOT the software version you are running that counts! First generation touches support both FireWire and USB charging; Second generation touches charge only with USB.
    The allowable FireWire voltage range is something like 8 volts to 36 volts so auto charger manufactures didn't have to do anything to use the 12 volts a car has.
    Second generation touch charging support requires the manufacturers add a regulated power supply to furnish the USB 5.0 volts.

  • I have transefer function like (1/(s^2+s+​5)) and i have a square wave input , i want to use this transfer function with this input to see the output , how can i do that , with example please.

    i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail

    "st" wrote:
    > answer me at my mail
    give a valid e-mail first, and your name, we don't like to help anonymous
    people
    > try to send me example.
    how much do you pay ?
    > i have transefer function like (1/(s^2+s+5)) and i have a square wave
    > input , i want to use this transfer function with this input to see
    > the output , how can i do that
    First you have to know what you are doing, like an engineer : you have a
    Laplace, continuous time transfer function but LabView handles discrete
    signals only. Use matlab/simulink if you want to simulate continuous time
    systems easily...
    If you definitely want to use LabView, the first step is to discretize your
    continuous-time transfer function, i.e. decide a sampling rate and convert
    it to a "z transfor
    m". Then you can directly use the "IIR Filter.vi" as I
    said earlier.
    Philippe Guglielmetti - www.dynabits.com me at my mail

  • I hope to develop a function with java like IE's save as.How can I do?

    I hope to develop a function with java like IE's save as.How can I do?

    hi ,
    Considering IE browser page as an object, U can use Serialization where u can save that object.(i.e state of the object) And then when u open it thru de-serialization, u can restore the page/object .
    Hope that helps U .
    Techie.

Maybe you are looking for

  • One of the user names does not show up on the login screen

    There are two admin accounts set up on the computer but only one of them shows up on the login screen. Any ideas why and how to change it? Thanks a lot. Tomek

  • Sub routine in Function module

    Hello i want to create a subroutin in a function module is it better to do like this FUNCTION TEST. perform f_routine using im_bukrs im_werks. ENDFUNCTION. form f_routine using im_bukrs im werks. // here i have to use using import parameter since i w

  • Problems installing upgrade Indesign on Windows 7 PC

    2 years ago, I upgraded Indesign CS3 to Indesign CS6 on my Windows XP computer. Now, I want to install this upgraded version of Indesign on my new Windows 7 PC, but I keep getting this error message "The file archive part of Adobe CS6 is missing". Ca

  • Motifs in illustrator CC moving around the artboard of their own accord! Help!

    I'm designing some motifs in Illustrator CC but every few minutes the design moves either left or right, entirely of its own accord. I'm using a PC, touch pad only and this is sometimes happening when I'm not touching the computer at all. Any help wo

  • ORA - Listener question!!

    Hi Friends, In the listener.ora parameter is set to ADMIN_RESTRICTIONS_LISTENER = ON To rotate the log without having to download the listener, we need these restrictions are in 'OFF'. Is it imperative for the proper functioning of SAP on Oracle ADMI