Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


7 Pages«<567
Options
Go to last post Go to first unread
Offline Jean Giraud  
#121 Posted : 26 July 2018 16:43:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Ber7 Go to Quoted Post
However, AlgLib Solver works faster and depends little on X0 matrix.


Thanks Ber7 for recasting this project, thanks to all contributors.
Algib solver gives a new dimension to Smath. I have no immediate
applications wrt my own discipline [Process Control], but that
kind of solver may find more applications.
The attached document is in my own Smath style for uniformity,
i.e: 'x' is uniquely reserved for the independent variable rather
than often used as parameter.

Jean

Solve al_nleqsolve Ber7_Nicolas.sm (39kb) downloaded 29 time(s).

Offline Ber7  
#122 Posted : 26 July 2018 16:57:26(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Thanks to Jean, thanks to Uni, AlgLib is really a wonderful solver!
Offline Jean Giraud  
#123 Posted : 26 July 2018 19:04:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Ber7 Go to Quoted Post
Thanks to Jean, thanks to Uni, AlgLib is really a wonderful solver!


Yes Sir ! We didn't have a hint of such a solver Mathcad/Mathsoft.
Just need more applications from "Russia for ever" !

Cheers all.
Offline ola_nicolas  
#124 Posted : 26 July 2018 21:58:28(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 112
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Hello.

Originally Posted by: Ber7 Go to Quoted Post
However, AlgLib Solver works faster and depends little on X0 matrix.See # 29
https://en.smath.info/forum/yaf_topics32_Extensions.aspx
Overdetermined.sm (16kb) downloaded 35 time(s).


I'm sorry, but again I have problems using this type of algorithm - see the attached image.

Overdetermined Ber7.PNG
Offline Jean Giraud  
#125 Posted : 26 July 2018 23:30:25(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
I'm sorry, but again I have problems using this type of algorithm - see the attached image.


Just open and run my latest work sheet, posted today.
If you run 6671, your al_nleqsolve(,,,) needs be updated as well.
"Out of index..." => too many equalities wrt parameters.

Jean

Offline ola_nicolas  
#126 Posted : 28 July 2018 09:56:42(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 112
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Hello.

There are no updates for my 6671. For my SMath directory, I still have errors.

Nicolas

Overdetermined system.PNG
Offline Jean Giraud  
#127 Posted : 28 July 2018 14:07:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
There are no updates for my 6671. For my SMath directory, I still have errors.

My Smath is as well in C:\Program
But all the work sheets are in C:\Smath 6179
.........
Where you have all your Smath work sheets, add a New Folder,
name it "SmathFile" [typical or else]
address CWD:=CurrentDirectory(......)

SmathFile.PNG
Offline ola_nicolas  
#128 Posted : 28 July 2018 20:28:06(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 112
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Hello.

What do you call SMath Worksheet? I searched for these two words across my computer and I have no results. Is there a folder where you store all SMath files? I do not have a single folder for this purpose. I store sm files for each domain and I therefore have a whole library of sm files stored in folders with different names. That's why I do not store these folders in the C partition of the system, but in a D partition structured by domains of interest.

... Is OK. I have entered the address of one of these folders, where I stored the examples from Ber7. I see it works. Perhaps that address should be the folder where the file is stored.

Nicolas.

Edited by user 28 July 2018 20:47:46(UTC)  | Reason: Not specified

Offline ola_nicolas  
#129 Posted : 28 July 2018 22:26:07(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 112
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Hello.

I think I understood the maneuver explained by Jean Giraud, but I still can not get a goal, in the case of the file attached by Ber7 to post # 120. Probably the link is more subtle and I can not achieve it.

Nicolas.
Offline Jean Giraud  
#130 Posted : 28 July 2018 23:04:04(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
What do you call SMath Worksheet? I searched for these two words across my computer and I have no results. Is there a folder where you store all SMath files? I do not have a single folder for this purpose. I store sm files for each domain and I therefore have a whole library of sm files stored in folders with different names. That's why I do not store these folders in the C partition of the system, but in a D partition structured by domains of interest.

=======================
When you click on the Samth icon from the task bar, what does it do ?
It opens a work sheet of the number pages needed to complete the project.
All my work sheets are stored in a single folder C:\Smath 6179 [about 1600]
A global single file where to store/transit some reference modules, transit
some data to avoid re-computation, store images ...etc is all what I need
and this file is in C:\SmathFile ... from CWD:= CurrentDirectory("C:\SmathFile"Wink
then, I address whatever can be filed for purpose.

My C:\Smath6179 contains 1554 work sheets, all categorized mnemonic,
easy to retrieve, for instance: Solve is a large category [101 work sheets].
Much easier to glance top to bottom through 1554 than having about 50 different
folders according to projects categories.
In < 2 sec, I retrieve any of my specific project [Instrumentation],
just the time to scan down 101 items.

BTW, you don't have to spool to file 'sol' ... just = but wise to
copy/paste in β:= as an independent/isolate vector.

Cheers

Offline CBG  
#131 Posted : 02 August 2018 05:45:39(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
I believe that the function:


Tesla_Function.png


does not exactly represent the values of the Triode ECC83 graph (Tesla Graph).

Here is a comparison:

Tesla_Combinada.png

Levenberg_Marquardt_Code_CBG_Jean_Tesla_Test.sm (1,487kb) downloaded 22 time(s).

Best Regards


Carlos
Offline Jean Giraud  
#132 Posted : 02 August 2018 17:27:15(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Quite right, Carlos.

The proposed function fails to fit the data sets.
Tentatively, al_nleqsolve and Levenberg-Marquardt do find a set of parameters.
As applied to fit all curves, then do not fit .
If there is an eventual compatibility, the problem is to initialize.
I tried quite a few with the most robust al_nleqsolve, not to avail.

Of all the models that were tried, I have conserved the 2 constants + 2 parameters
Genfit Minimize Tesla(5) Auto_Iterate
No matter how much maths one can invent, it is not true an invented 6 parameters
will fit 8 data sets each having his own set of 2 parameters. If such miraculous
maths would exist, I bet it would have been explored/exploited in Mathcad/Mathsoft.

Jean

Solve al_nleqsolve Ber7_Nicolas Copy.sm (56kb) downloaded 17 time(s).
Genfit Minimize Tesla(5) Auto_Iterate.sm (239kb) downloaded 19 time(s).
Page2 Tesla.sm (179kb) downloaded 18 time(s).


Offline ola_nicolas  
#133 Posted : 03 August 2018 21:39:00(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 112
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Hello.

You're right Carlos. In fact, this was the first challenge, which was actually missed. Jean Giraud is not right. MatCAD has solved the problem, so mathematical tools exist. Proof is the chart I brought in the first post. Perhaps they will be in SMath in a while too. Until then, I accepted the second challenge, that of studying in detail the current mathematical tools that SMath puts at my disposal. From this point of view, it was a very useful experience. I thank you all for your help.

Nicolas.
Offline Jean Giraud  
#134 Posted : 03 August 2018 22:25:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
Jean Giraud is not right. MatCAD has solved the problem, so mathematical tools exist.


OK, Nicolas ... then plot the fitted family of results over the data sets.
Or, attach enough information so that I can spare some times in Mathcad 11.
This is paramount wrt Smath designers, especially from so much efforts.

Cheers Nicolas ... Jean

Offline Jean Giraud  
#135 Posted : 04 August 2018 19:21:47(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
OK, Nicolas ... then plot the fitted family of results over the data sets.
Or, attach enough information so that I can spare some times in Mathcad 11.
This is paramount wrt Smath designers, especially from so much efforts.

1. Checked the Mathcad 7 param model is same in Smath
2. if so => run that 7 parameters in attached document.
3. if it solves => attach in forum so it can be tried

Jean

Solve al_nleqsolve Ber7_Nicolas [6671].sm (22kb) downloaded 17 time(s).

nleq6671.PNG

Offline Ber7  
#136 Posted : 05 August 2018 00:07:43(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
The values of beta4 and beta5 strongly depend on vector of guesses

Solve al_nleqsolve Ber7_Nicolas 1.sm (19kb) downloaded 24 time(s).
Offline Jean Giraud  
#137 Posted : 06 August 2018 01:45:19(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Ber7 Go to Quoted Post
The values of beta4 and beta5strongly depend on vector of guesses


The reformated model is now robust.
The native beta's fit exceptionally well the first data set !
Slightly modified for the remaining data sets.
The Mathcad coefficients are given as well for comparing.
Puzzling why the same coefficients produced crappy Mathcad plots ?
All in all, a very interesting project exploiting exp(,) reflexive.
Smath solves decently this 7 parameters project.
Thanks Collabs contributors.

Jean

Solve al_nleqsolve Ber7_Nicolas [6179] READ 1rst.sm (74kb) downloaded 18 time(s).

thanks 1 user thanked Jean Giraud for this useful post.
on 06/08/2018(UTC)
Offline Jean Giraud  
#138 Posted : 06 August 2018 18:36:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
This Smath document reconciliates this entire thread [137].
At this point, one may want to redefine the equalities for where a more accurate fit
may reveal so wrt the region of interest of the family. This kind of exercise looks
superfluous [IMHO], considering the data sets represent poorly a family of information
which family of information deviates from a real family of functions. All in all, the
productive recovering model depends upon only one variable => the grid voltage 'b'.

Same result from Levenberg-Marquardt but awfully slow !
The model may be overkilled, RemToDo from refitted data sets.

Comments/suggestions will be appreciated ... cheers, Jean

Solve al_nleqsolve TESLA [6 x 6].sm (8kb) downloaded 20 time(s).
Solve al_nleqsolve TESLA [7 x 7].sm (9kb) downloaded 20 time(s).
Solve al_nleqsolve Ber7_Nicolas [6179] RECONCILIATION Copy.sm (81kb) downloaded 20 time(s).
Users browsing this topic
7 Pages«<567
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.