Difference between revisions of "Error Messages/40312"
AManandhar (talk | contribs) m (→Remedies) |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | The first two indexes to | + | == Error message examples == |
+ | |||
+ | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> | ||
+ | The first two indexes to QpDefine must be the same length, equal to the number of variables | ||
in the quadratic program. | in the quadratic program. | ||
+ | </pre> | ||
− | = Cause = | + | == Cause == |
− | The first two parameters, | + | The first two parameters, «Vars» and «Vars2» passed to the [[QpDefine]] function should be indexes of the same length, but the passed parameters did not meet the requirement. |
− | = Remedies = | + | == Remedies == |
Correct the two parameters passed to the [[QpDefine]] function so that they are the same length. | Correct the two parameters passed to the [[QpDefine]] function so that they are the same length. | ||
− | Defining the index passed to | + | Defining the index passed to «Vars2» parameter can be defined as [[CopyIndex|CopyIndex(Vars)]], so chancing the «Vars» parameter would automatically update «Vars2». |
− | + | ==See Also== | |
+ | * [[QpDefine]] | ||
+ | * [[CopyIndex]] | ||
+ | * [[DefineOptimization]] | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[Arrays and Indexes]] |
Latest revision as of 00:13, 25 March 2016
Error message examples
The first two indexes to QpDefine must be the same length, equal to the number of variables in the quadratic program.
Cause
The first two parameters, «Vars» and «Vars2» passed to the QpDefine function should be indexes of the same length, but the passed parameters did not meet the requirement.
Remedies
Correct the two parameters passed to the QpDefine function so that they are the same length.
Defining the index passed to «Vars2» parameter can be defined as CopyIndex(Vars), so chancing the «Vars» parameter would automatically update «Vars2».
See Also
Comments
Enable comment auto-refresher