Difference between revisions of "Error Messages/40585"

m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Error Message Examples  =
+
[[Category: Error messages]]
  
  The value of the Setting parameter to LP_Definition is not a 1-D array (after array abstraction).
+
== Error message examples  ==
  Since the optional 'Parameter' parameter is not specified, the value to the setting parameter  
+
 
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
  The value of the «Setting» parameter to LP_Definition is not a 1-D array (after array abstraction).
 +
  Since the optional «Parameter» parameter is not specified, the value to the «Setting» parameter  
 
  needs to be a 1-D array where the index values contain the optimizer parameter name.   
 
  needs to be a 1-D array where the index values contain the optimizer parameter name.   
 +
</pre>
  
= Cause  =
+
== Cause  ==
 
 
The '''Setting''' parameter passed to the function ([[LpDefine]] or [[QpDefine]] or [[NlpDefine]]) was not a 1-D array indexed by the '''Parameter''' it is setting, and no '''Parameter''' parameter is passed to the function either. The '''Setting''' parameter must either be indexed by '''Parameter''' or the '''Parameter''' parameter must be passed.
 
 
 
The '''Setting''' and '''Parameter''' parameters to the above functions can be used to set the search settings. (To get a list of Parameters that can be set for an engine, you can use the [[SolverInfo]] function.) These two parameters can be used in the following ways to set the search settings.
 
  
'''Specifying both the parameters:'''<br> <code>LpDefine( ... , Parameter: [ 'MutationRate', 'SolutionAccuracy'] , Setting: [0.15, 1m]);</code>  
+
The «Setting» parameter passed to the function ([[LpDefine]] or [[QpDefine]] or [[NlpDefine]]) was not a 1-D array indexed by the <code>Parameter</code> it is setting, and no «Parameter» parameter is passed to the function either. The «Setting» parameter must either be indexed by <code>Parameter</code> or the «Parameter» parameter must be passed.
  
'''Specifying only the Setting parameter:'''
+
The «Setting» and «Parameter» parameters to the above functions can be used to set the search settings. (To get a list of parameters that can be set for an engine, you can use the [[SolverInfo]] function.) These two parameters can be used in the following ways to set the search settings.
  
Index IndexOfParameters<br> <code>Definition: ['MutationRate', 'SolutionAccuracy'];</code>  
+
Specifying both parameters:
 +
:<code>LpDefine( ... , Parameter: [ 'MutationRate', 'SolutionAccuracy'] , Setting: [0.15, 1m]);</code>  
  
Object SettingToLP<br> <code>Definition: Table(IndexOfParameters)( 0.15, 1m );</code>  
+
Specifying only the «Setting» parameter:
 +
:Index IndexOfParameters
 +
:<code>Definition: ['MutationRate', 'SolutionAccuracy'];</code>  
  
Defining the optimization problem: <code>LpDefine( ... , Setting: SettingToLp);</code>  
+
Object SettingToLP
 +
:<code>Definition: Table(IndexOfParameters)(0.15, 1m);</code>  
  
<br>
+
Defining the optimization problem:
 +
:<code>LpDefine( ... , Setting: SettingToLp);</code>  
  
Please click here for documentation on setting the search parameter for functions [[Lpdefine#Specifying_Search_Control_Parameters|LpDefine]] and [[Nlpdefine#Specifying_Search_Control_Settings|NlpDefine.]]
+
See [[Lpdefine#Specifying_Search_Control_Parameters|LpDefine]] and [[Nlpdefine#Specifying_Search_Control_Settings|NlpDefine]] for documentation on setting the search parameter for functions.
  
= Remedies  =
+
== Remedies  ==
  
You can resolve this issue either by passing in the '''Parameter''' parameter to the optimization functions or by passing a 1-D array indexed by '''Parameter''' to the '''Setting''' parameter.  
+
You can resolve this issue either by passing in the «Parameter» parameter to the optimization functions or by passing a 1-D array indexed by <code>Parameter</code> to the «Setting» parameter.  
  
<br> <comments />
+
==See Also==
 +
* [[DefineOptimization]]
 +
* [[SolverInfo]]

Latest revision as of 23:03, 9 March 2016


Error message examples

 The value of the «Setting» parameter to LP_Definition is not a 1-D array (after array abstraction).
 Since the optional «Parameter» parameter is not specified, the value to the «Setting» parameter 
 needs to be a 1-D array where the index values contain the optimizer parameter name.  

Cause

The «Setting» parameter passed to the function (LpDefine or QpDefine or NlpDefine) was not a 1-D array indexed by the Parameter it is setting, and no «Parameter» parameter is passed to the function either. The «Setting» parameter must either be indexed by Parameter or the «Parameter» parameter must be passed.

The «Setting» and «Parameter» parameters to the above functions can be used to set the search settings. (To get a list of parameters that can be set for an engine, you can use the SolverInfo function.) These two parameters can be used in the following ways to set the search settings.

Specifying both parameters:

LpDefine( ... , Parameter: [ 'MutationRate', 'SolutionAccuracy'] , Setting: [0.15, 1m]);

Specifying only the «Setting» parameter:

Index IndexOfParameters
Definition: ['MutationRate', 'SolutionAccuracy'];

Object SettingToLP

Definition: Table(IndexOfParameters)(0.15, 1m);

Defining the optimization problem:

LpDefine( ... , Setting: SettingToLp);

See LpDefine and NlpDefine for documentation on setting the search parameter for functions.

Remedies

You can resolve this issue either by passing in the «Parameter» parameter to the optimization functions or by passing a 1-D array indexed by Parameter to the «Setting» parameter.

See Also

Comments


You are not allowed to post comments.