fcostbenefit

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.4, Creation date: 2023-10-14, Last change: 2025-09-15

cost or benefit fnct



See Also:

Example Illustration

 missing image of fcostbenefit(c,r,t)

Syntax

[ff,PL,SG]=fcostbenefit([c,r,t])

Input Parameter

c: [plateau-width center-shift center-value]; default is [0 0 1]
r: [ramp width and minimal value[ ;default is [2 0]
t: type of functiopn  "lin", "atan", "bell"; default is bell (1/1+x^2)

Output Parameter

ff: handle to cost equation
PL: Point list of function
SG: Solid Geometry of function

Examples


fcostbenefit([10 0],10,'bell'); ff=ans; axis equal, ff(4)
fcostbenefit([10 2],10,'atan'); ff=ans; axis equal, ff(8)
fcostbenefit([10 2],10,'bell'); ff=ans; axis equal, ff(8)
fcostbenefit([1 4],2,'bell'); ff=ans; axis normal; ff(10)




Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21