MATLAB Function Reference | ![]() ![]() |
Create/alter boundary value problem (BVP) options structure
Syntax
options = bvpset('name1',value1,'name2',value2,...) options = bvpset(oldopts'name1',value1,...) options = bvpset(oldopts,newopts) bvpset
Description
options = bvpset('name1',value1,'name2',value2,...)
creates a structure options
in which the named properties have the specified values. Any unspecified properties have default values. It is sufficient to type only the leading characters that uniquely identify the property. Case is ignored for property names.
options = bvpset(oldopts,'name1',value1,...)
alters an existing options structure oldopts
.
options = bvpset(oldopts,newopts)
combines an existing options structure oldopts
with a new options structure newopts
. Any new properties overwrite corresponding old properties.
bvpset
with no input arguments displays all property names and their possible values.
BVP Properties
RelTol
- Relative tolerance for the residual [ positive scalar {1e-3
} ]
This scalar applies to all components of the residual vector, and defaults to 1e-3
(0.1% accuracy). The computed solution is the exact solution of
. On each subinterval of the mesh, the residual
satisfies
AbsTol
- Absolute tolerance for the residual [ positive scalar or vector {1e-6
} ]
A scalar tolerance applies to all components of the residual vector. Elements of a vector of tolerances apply to corresponding components of the residual vector. AbsTol
defaults to 1e-6.
FJacobian
- Analytic partial derivatives of ODEFUN
[ function ]
For example, when solving , set this property to
@FJAC
if DFDY = FJAC(X,Y)
evaluates the Jacobian of with respect to
. If the problem involves unknown parameters
,
[DFDY,DFDP] = FJAC(X,Y,P)
must also return the partial derivative of with respect to
.
BCJacobian
- Analytic partial derivatives of BCFUN
[ function ]
For example, for boundary conditions , set this property to
@BCJAC
if [DBCDYA,DBCDYB] = BCJAC(YA,YB)
evaluates the partial derivatives of with respect to
and to
. If the problem involves unknown parameters
,
[DBCDYA,DBCDYB,DBCDP] = BCJAC(YA,YB,P)
must also return the partial derivative of with respect to
.
Nmax
- Maximum number of mesh points allowed [ positive integer {floor(1000/n)}
]
Stats
- Display computational cost statistics [ on
| {off
} ]
See Also
@
(function_handle
), bvp4c
, bvpget
, bvpinit
, bvpval
![]() | bvpinit | bvpval | ![]() |