Difference between revisions of "Error Messages/40312"

(Created page with '= 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 tw…')
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Error Message Examples  =
+
[[Category: Error messages]]
  
  The first two indexes to [[QpDefine]] must be the same length, equal to the number of variables
+
== 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, '''Vars''' and '''Vars2''' passed to the [[QpDefine]] function should be indexes of the same length, but the passed parameters did not meet the requirement.
+
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 '''Vars2''' parameter can be defined as [[CopyIndex|CopyIndex(Vars)}}, so chancing the '''Vars''' parameter would automatically update '''Vars2'''
+
Defining the index passed to «Vars2» parameter can be defined as [[CopyIndex|CopyIndex(Vars)]], so chancing the «Vars» parameter would automatically update «Vars2».
  
<br><comments />
+
==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


You are not allowed to post comments.