2.2.1.2.14 NLFitSession::SetParamBounds

Description

To set parameter lower/upper bounds, introduced from Origin version 8.5.1.

Syntax

bool SetParamBounds(int nParam, int nLimitControl, double dLimitValue, bool bIsLower, int nDataset = 0)

Parameters

nParam
[input] The index of parameter in function.
nLimitControl
[input] 0 for <=; 1 for <; 2 for empty, means no limitation.
dLimitValue
[input] The limitation value.
bIsLower
[input] True for lower limitation control, false for upper.
nDataset
[input] The dataset index. -1 for all datasets.

Return

return ture if set bounds successfully, else return false.

Examples

EX1

Please refer to the example in Examples::Fit on multiple datasets with one function, parameters shared

Remark

See Also

SetParamFix , SetParamShare

Header to Include

Originlab\NLFitSession.h