Constrained optimization - With new plagin in attach - Poruke
Transport-Plagin-Unit.sm (18,44 KiB) preuzeto 135 put(ova).
SMathOptimization.1_0_0_0.zip (18,97 KiB) preuzeto 37 put(ova). PLAGIN

SMathOptimization.1_0_0_0.zip (18,97 KiB) preuzeto 37 put(ova). PLAGIN

Izmenjeno 29. 11. 2026. 15:25:03
1 korisnika je svidelo ovu objavu
Davide Carpi 27. 11. 2026. 07:58:57
Izmenjeno 29. 11. 2026. 15:28:36
Izmenjeno 22. 11. 2026. 08:30:55
Where to get this plugin?
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
WroteWhere to get this plugin?
Hi Martin!
See pls the first message and this
SMathOptimization.1_0_0_0.zip (18,97 KiB) preuzeto 31 put(ova).

Izmenjeno 23. 11. 2026. 14:42:59
1 korisnika je svidelo ovu objavu
Oscar Campo 24. 11. 2026. 10:27:45
Valery, thanks a lot, I didn't see the file below the image.
Here is a curve-fitting example, the worksheet is trilingual (including the legend) and generated by AI.
I'll add the function as a minerr() replacement in the mcd converter. The Buchmayr-sheets, which I use for conversion testing, are just Mathcad 7, which according to Claude had no minimize() and maximize().

Parameterfit_Minimize_neu.sm (21,73 KiB) preuzeto 112 put(ova).
Here is a curve-fitting example, the worksheet is trilingual (including the legend) and generated by AI.
I'll add the function as a minerr() replacement in the mcd converter. The Buchmayr-sheets, which I use for conversion testing, are just Mathcad 7, which according to Claude had no minimize() and maximize().

Parameterfit_Minimize_neu.sm (21,73 KiB) preuzeto 112 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Valery Ochkov 24. 11. 2026. 16:08:07
Thanks, Martin!
One fine example!
One fine example!
Hello.
I'm strongly suggesting using the process described here: https://docs.smath.com/developer-guide/#_2 or in Russian: https://docs.smath.com/ru/developer-guide/#_2
Otherwise, we have a risk of sharing viruses in libraries from ZIP files. Besides that, we are working on new version of SMath Studio which will require recompilation of the plugins - we will recompile plugins from public repository, but we can't handle ones shared with a community using ZIP files.
Best regards.
I'm strongly suggesting using the process described here: https://docs.smath.com/developer-guide/#_2 or in Russian: https://docs.smath.com/ru/developer-guide/#_2
Otherwise, we have a risk of sharing viruses in libraries from ZIP files. Besides that, we are working on new version of SMath Studio which will require recompilation of the plugins - we will recompile plugins from public repository, but we can't handle ones shared with a community using ZIP files.
Best regards.
Izmenjeno 24. 11. 2026. 11:19:03
1 korisnika je svidelo ovu objavu
Valery Ochkov 24. 11. 2026. 19:13:30
Izmenjeno 25. 11. 2026. 08:31:42
One answer from AI
An exact percentage of the new car’s price can’t be given — the market value depends not only on age and mileage but also on the make, model, trim level, condition, sales region, and demand.
How to estimate the percentage of value
A combined approach is usually used: both age and mileage are taken into account.
Impact of age
According to typical depreciation curves, a passenger car loses about 40–50 % of its value in the first 3 years, and by 5–6 years it’s already down by 55–65 %. So, after 5.5 years, a car usually costs roughly 35–45 % of the new price (excluding mileage and condition).
Impact of mileage
34,000 miles is approximately 54,700 km ($1\ \text{mile} \approx 1.609\ \text{km}$, so $34,000 \times 1.609 = 54,706\ \text{km}$).
For a 5.5‑year‑old car, this mileage is considered below average: the typical average annual mileage in Russia is often estimated at 15,000–20,000 km, which would mean 82,500–110,000 km over 5.5 years. A mileage of 55,000 km is a plus for the price: it indicates less wear and makes the car more attractive.
Final estimate
Given the “good” mileage, you can expect the upper end of the depreciation range:
- Approximately 40–48 % of the new car’s price.
---
## Practical ways to get a more accurate estimate
1. Online car valuation calculators** (on classifieds sites and with dealers) — enter the make, model, year, mileage, trim, and region: the system will show a market price range.
2. Analyze listings for the exact same model** in your region: check 10–15 ads for 2018–2019 models with similar mileage and calculate an average price.
3. Get an appraisal from a dealer or an independent expert** — this will give the most accurate result, taking into account the condition of the body, interior, and mechanical parts.
If you tell me the make, model, and region, I’ll help you find comparable cars and calculate a more precise percentage. 😊
An exact percentage of the new car’s price can’t be given — the market value depends not only on age and mileage but also on the make, model, trim level, condition, sales region, and demand.
How to estimate the percentage of value
A combined approach is usually used: both age and mileage are taken into account.
Impact of age
According to typical depreciation curves, a passenger car loses about 40–50 % of its value in the first 3 years, and by 5–6 years it’s already down by 55–65 %. So, after 5.5 years, a car usually costs roughly 35–45 % of the new price (excluding mileage and condition).
Impact of mileage
34,000 miles is approximately 54,700 km ($1\ \text{mile} \approx 1.609\ \text{km}$, so $34,000 \times 1.609 = 54,706\ \text{km}$).
For a 5.5‑year‑old car, this mileage is considered below average: the typical average annual mileage in Russia is often estimated at 15,000–20,000 km, which would mean 82,500–110,000 km over 5.5 years. A mileage of 55,000 km is a plus for the price: it indicates less wear and makes the car more attractive.
Final estimate
Given the “good” mileage, you can expect the upper end of the depreciation range:
- Approximately 40–48 % of the new car’s price.
---
## Practical ways to get a more accurate estimate
1. Online car valuation calculators** (on classifieds sites and with dealers) — enter the make, model, year, mileage, trim, and region: the system will show a market price range.
2. Analyze listings for the exact same model** in your region: check 10–15 ads for 2018–2019 models with similar mileage and calculate an average price.
3. Get an appraisal from a dealer or an independent expert** — this will give the most accurate result, taking into account the condition of the body, interior, and mechanical parts.
If you tell me the make, model, and region, I’ll help you find comparable cars and calculate a more precise percentage. 😊
Izmenjeno 25. 11. 2026. 06:39:08
About this calculation (Old car price)
A story I witnessed in West Germany back in the 1980s. A German professor (I was on an internship at the University of Stuttgart at the time) decided to sell his car quickly for 2,000 marks and put it up at that very low price at the local used-car "flea market." For quite a while potential buyers kept coming up to him, looking the car over, asking questions — all to no avail… Then a rather sharp young man rolls up, buys the car without so much as a glance, as they say, changes the price tag on it and resells it right there, before the astonished professor's eyes, for 4,000 marks... That dealer knew how to judge the value of a used car correctly, and he understood that a price set too low is just as useless for bargaining as one set too high.
A story I witnessed in West Germany back in the 1980s. A German professor (I was on an internship at the University of Stuttgart at the time) decided to sell his car quickly for 2,000 marks and put it up at that very low price at the local used-car "flea market." For quite a while potential buyers kept coming up to him, looking the car over, asking questions — all to no avail… Then a rather sharp young man rolls up, buys the car without so much as a glance, as they say, changes the price tag on it and resells it right there, before the astonished professor's eyes, for 4,000 marks... That dealer knew how to judge the value of a used car correctly, and he understood that a price set too low is just as useless for bargaining as one set too high.
Izmenjeno 25. 11. 2026. 07:42:46
New version of the plagin with examples
SMathOptimization.1_1_0_0.zip (72,5 KiB) preuzeto 23 put(ova).
SMathOptimization_Examples.sm (27,2 KiB) preuzeto 86 put(ova).
SMathOptimization.1_1_0_0.zip (72,5 KiB) preuzeto 23 put(ova).
SMathOptimization_Examples.sm (27,2 KiB) preuzeto 86 put(ova).
1 korisnika je svidelo ovu objavu
Martin Kraska 25. 11. 2026. 21:46:25
Seems that I can rewrite my book once the plugin becomes a regular part of the online gallery! Great work!
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Valery Ochkov 29. 11. 2026. 18:58:28
WroteYou can easily say "why do I care?" but,
Wouldn't it be better if plugin informations were in English?
No problem! We will do it!
SMath Optimization 1.1: two problems with Find and units
While simplifying the worksheets of my textbook (FindRoot replaced by Find) I found two cases where Find fails although the system is fine. Both attached worksheets were tested with SMath 1.5.0.9678 and SMath Optimization 1.1.0.0.
1. Equation vector built with stack(): "incompatible dimension: residual" Find_stack_units.sm (17,6 KiB) preuzeto 68 put(ova).
Spatial equilibrium of a rigid body with six unknown support forces S.1 ... S.6. The force rows Gf are in N, the moment rows Gm in N m.
In cases 2 and 3, lastError says "Find: incompatible dimension: residual". The equations are the same in all four cases, only the way the vector is assembled differs. Collecting the force and moment conditions with stack() is the natural way in the textbook (GGB := stack(ΣF, ΣM.A)).
2. Plain 0 on the right-hand side of a vector element Find_zero_units.sm (14,55 KiB) preuzeto 71 put(ova).
Everywhere else in SMath, products of 0 with a unit are simplified to 0.
Besides these things, I'd vote for providing the unknowns as a vector just like in roots(), be generous with matrix or system and allow for assumed zero right hand side.
While simplifying the worksheets of my textbook (FindRoot replaced by Find) I found two cases where Find fails although the system is fine. Both attached worksheets were tested with SMath 1.5.0.9678 and SMath Optimization 1.1.0.0.
1. Equation vector built with stack(): "incompatible dimension: residual" Find_stack_units.sm (17,6 KiB) preuzeto 68 put(ova).
Spatial equilibrium of a rigid body with six unknown support forces S.1 ... S.6. The force rows Gf are in N, the moment rows Gm in N m.
Find(G, S.1, ..., S.6) G := mat(...) with all six rows: works
Find(stack(Gf, Gm), S.1, ..., S.6) error 70
Find(stack(Gf, Gm/m), S.1, ..., S.6) error 70 (all rows in N)
Find(stack(Gf/N, Gm/(N*m)), S.1, ..., S.6) works
2. Plain 0 on the right-hand side of a vector element Find_zero_units.sm (14,55 KiB) preuzeto 71 put(ova).
G := [A + B - 10 N; B*2 m - 10 N*1 m; M - A*1 m] (A, B, M undefined)
A := 1 N B := 1 N M := 1 N*m (guess values)
Find(G, A, B, M) works
Find(mat(el(G,1)≡0*N, el(G,2)≡0*N*m, el(G,3)≡0*N*m, 3, 1), A, B, M) works
Find(mat(el(G,1)≡0, el(G,2)≡0, el(G,3)≡0, 3, 1), A, B, M) error 70
the same equations written out explicitly with ≡0 works
Besides these things, I'd vote for providing the unknowns as a vector just like in roots(), be generous with matrix or system and allow for assumed zero right hand side.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Valery Ochkov 29. 11. 2026. 18:58:47
Valery, your seem to be committed to supporting units in the numerical functions, yet you deliberately disguise them in the worksheet by giving the regions a close to black text color. Is that some general style preference?
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Valery Ochkov 29. 11. 2026. 18:58:57
WroteValery, your seem to be committed to supporting units in the numerical functions, yet you deliberately disguise them in the worksheet by giving the regions a close to black text color. Is that some general style preference?
No
- Novi postovi
- Nema novih postova






