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