IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.InterfaceInverse Class Reference

Interface for Inverse Interpreter. More...

+ Inheritance diagram for IG.Lib.InterfaceInverse:
+ Collaboration diagram for IG.Lib.InterfaceInverse:

Public Member Functions

 InterfaceInverse ()
 
 InterfaceInverse (string commandFileName)
 
 InterfaceInverse (string workingDirctory, string commandFileName)
 Constructor. More...
 
 InterfaceInverse (string commandDirectory, string startDirectory, string commandFileName)
 Constructor. More...
 
override void AppendValue (bool value)
 Appends a boolean value to the interpreter command file contents. More...
 
override void AppendValue (string value)
 Appends a string value to the interpreter command file contents. More...
 
override void AppendValue (IVector value)
 Appends a vector value to the interpreter command file contents. More...
 
override void AppendValue (IMatrix value)
 Appends a matrix value to the interpreter command file contents. More...
 
virtual void StartAnalysisBlock ()
 Appends beginning of analysis block to the interpreter file contents. More...
 
virtual void EndAnalysisBlock ()
 Appends end of analysis block to the interpreter file contents. More...
 
virtual void Interactive (string message)
 Starts interactive interpreter. More...
 
virtual void Interpret (string filePath)
 Interprets a file. More...
 
virtual void SetVariable (string variableName, int value)
 Command - sets an integer interpreter variable. More...
 
virtual void SetVariable (string variableName, double value)
 Command - sets a double interpreter variable. More...
 
virtual void SetVariable (string variableName, bool value)
 Command - sets a boolean interpreter variable. More...
 
virtual void SetVariable (string variableName, string value)
 Command - sets a string interpreter variable. More...
 
virtual void SetVariable (string variableName, IVector value)
 Command - sets a vector interpreter variable. More...
 
virtual void SetVariable (string variableName, IMatrix value)
 Command - sets a matrix interpreter variable. More...
 
virtual void SetParamMom (IVector parameters)
 Sets the current parameters. More...
 
virtual void SetCalculateObjective (bool flagValue)
 Sets the flag for calculation of objective function. More...
 
virtual void SetCalculateConstraints (bool flagValue)
 Sets the flag for calculation of constraint functions. More...
 
virtual void SetCalculateGradObjective (bool flagValue)
 Sets the flag for calculation of objective function gradient. More...
 
virtual void SetCalculateGradConstraints (bool flagValue)
 Sets the flag for calculation of constraint function gradients. More...
 
virtual void FileAnalysis (string analysisCommand, string analysisInputPath, string analysisOutputPath)
 Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. More...
 
virtual void FileAnalysis (string analysisCommand, string workingDirectoryPath, string analysisInputFileName, string analysisOutputFileName)
 Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. More...
 
virtual void FileAnalysisStandard (string analysisExecutable, string analysisCommandName, string workingDirectory, string analysisInputFileName, string analysisOutputFileName)
 Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. IMPORTANT: It is assumed that analysis program is called as a shell with built-in command-line interpreter, such that command is invoked by executable name followed by interpreter command followed by working directory path. It is alsoassumed that analysis input and output files are exchanged in the working directory. More...
 
virtual void FileAnalysisStandard (string analysisExecutable, string analysisCommandName, string workingDirectory)
 Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. IMPORTANT: It is assumed that analysis program is called as a shell with built-in command-line interpreter, such that command is invoked by executable name followed by interpreter command followed by working directory path. It is assumed that analysis input and output files are exchanged in the working directory, and their names are standard names used by file analysis servers. More...
 
virtual void Analyse (IVector param)
 Command - runs a direct analysis at the specified parameters. More...
 
virtual void Analyse (IVector param, bool calcobj, bool calcconstr, bool calcgradobj, bool calcgradconstr)
 Command - runs a direct analysis at the specified parameters, with specified calculation flags. More...
 
virtual void TabAn1d (IVector pont0, IVector point1, int numPoints, bool centered, double factor, double scaling)
 Runs an 1D table of analyses. More...
 
virtual void TabAn1d (IVector pont0, IVector point1, int numPoints, bool centered, double factor, double scaling, bool printTab, bool printParam, bool printList, bool printObj, bool printConstr, bool printGradobj, bool printGradconstr)
 Runs an 1D table of analyses. More...
 
virtual void TabAn2d (IVector pont0, IVector point1, IVector point2, int numPoints1, bool centered1, double factor1, double scaling1, int numPoints2, bool centered2, double factor2, double scaling2)
 
virtual void TabAn2d (IVector pont0, IVector point1, IVector point2, int numPoints1, bool centered1, double factor1, double scaling1, int numPoints2, bool centered2, double factor2, double scaling2, bool printTab, bool printParam, bool printList, bool printObj, bool printConstr, bool printGradobj, bool printGradconstr)
 
virtual void MinSimplex (IVector initialGuess, IVector stepSizes, int maxIt, IVector tolX, double tolF, int printLevel)
 Runs the unconstaint nonlinear (modified Nelder-Mead) simplex minimization algorithm. More...
 
virtual void NlpSimplex (int numConstraints, IVector initialGuess, IVector stepSizes, int maxIt, IVector tolX, double tolF, double tolConstr, int printLevel)
 Runs the constraint nonlinear (modified Nelder-Mead) simplex minimization algorithm. More...
 
virtual void NlpSimplexBoundConstr (int numConstraints, IVector initialGuess, IVector stepSizes, int maxIt, IVector tolX, double tolF, double tolConstr, IVector lowerBounds, IVector upperBounds, double bigNumber, int printLevel)
 Runs the constraint nonlinear (modified Nelder-Mead) simplex minimization algorithm. More...
 
- Public Member Functions inherited from IG.Lib.InterfaceInterpreterBase
 InterfaceInterpreterBase ()
 
 InterfaceInterpreterBase (string commandFileName)
 
 InterfaceInterpreterBase (string workingDirctory, string commandFileName)
 Constructor. More...
 
 InterfaceInterpreterBase (string commandDirectory, string startDirectory, string commandFileName)
 Constructor. More...
 
virtual void ResetCommands ()
 
virtual void Append (string str)
 Appends a literal string to the contents of the command file plus a newline character. More...
 
virtual void AppendLine (string str)
 Appends a literal string to the contents of the command file. More...
 
virtual void AppendLine ()
 
virtual void AppendIndent ()
 Appends indentation to the contents of the command file. More...
 
virtual void AppendComment (string str, bool withNewlines)
 Appends a vomment to the contents of the command file. More...
 
virtual void StartCodeBlock ()
 Starts a new code block in the interpreter command file contents. More...
 
virtual void EndCodeBlock ()
 Ends a code block in the interpreter command file contents. More...
 
virtual void StartCommand (string commandName)
 Starts a new command in the interpreter command file contents. More...
 
virtual void EndCommand ()
 Ends (finalizes) a command in the interpreter command file contents. More...
 
virtual void AppendCommandArgumentSeparatorIfNecessary ()
 Appends a command line separator to the interpreter command file contents, if necessary (i.e. if any arguments have already been written to the command file contents). More...
 
virtual void AppendValue (int value)
 Appends an integer value to the interpreter command file contents. More...
 
virtual void AppendValue (double value)
 Appends a double value to the interpreter command file contents. More...
 
virtual void AppendCommandArgumentVariableReference (string variableName)
 Appends a variable reference to the current argument block. More...
 
virtual void AppendCommandArgument (int value)
 Appends an integer argument to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgument (double value)
 Appends a double argument to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgument (bool value)
 Appends a boolean argument to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgument (string value)
 Appends a string argument to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgumentPlain (string value)
 Appends a plain string argument (without decoration such as double quotes) to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgument (IVector value)
 Appends a vector argument to the command argument block of the interpreter command file. More...
 
virtual void AppendCommandArgument (IMatrix value)
 Appends a matrix argument to the command argument block of the interpreter command file. More...
 
virtual void WriteCommandFile ()
 Writes the current contents of the interpreter command file to the physical file. If the file exists then it is overwritten. After this method is called, ResetCommands() should be called if the object will be further used. More...
 
virtual void WriteAppendToCommandFile ()
 Appends the current contents of the interpreter command file to the physical file. After this method is called, ResetCommands() should be called if the object will be further used. More...
 
virtual void WriteAndRunCommandFile ()
 Writes interpreter command file and runs it. After this method is called, ResetCommands() should be called if the object will be further used. More...
 

Properties

virtual string AnalysisBlockName [get]
 String that introduces the analysis block. More...
 
virtual string CmdNameInterpret [get]
 Command name - interpret. More...
 
virtual string CmdNameInteractive [get]
 Command name - analyse. More...
 
virtual string CmdNameWrite [get]
 Command name - analyse. More...
 
virtual string CmdNameDWrite [get]
 Command name - analyse. More...
 
virtual string CmdNameSetVarInt [get]
 Command name - setting an integer variable. More...
 
virtual string CmdNameSetVarDouble [get]
 Command name - setting a double variable. More...
 
virtual string CmdNameSetVarBoolean [get]
 Command name - setting a boolean variable. More...
 
virtual string CmdNameSetVarString [get]
 Command name - setting a string variable. More...
 
virtual string CmdNameSetVarVector [get]
 Command name - setting a vector variable. More...
 
virtual string CmdNameSetVarMatrix [get]
 Command name - setting a matrix variable. More...
 
virtual string VarNameParamMom [get]
 
virtual string VarNameCalcObjective [get]
 
virtual string VarNameCalcConstraints [get]
 
virtual string VarNameCalcGradObjective [get]
 
virtual string VarNameCalcGradConstraints [get]
 
virtual string VarNameObjectiveMom [get]
 
virtual string VarNameConstraintsMom [get]
 
virtual string VarNameGradObjectiveMom [get]
 
virtual string VarNameGradConstraintMom [get]
 
virtual string CmdNameFileAnalysis [get]
 Command name - analyse. More...
 
virtual string AnalysisInputFileNameStandard [get]
 Standard analysis input file name. More...
 
virtual string AnalysisOutputFileNameStandard [get]
 Standard analysis output file name. More...
 
virtual string CmdNameAnalyse [get]
 Command name - analyse. More...
 
virtual string CmdNameTab1d [get]
 Command name - taban1d. More...
 
virtual string CmdNameTab2d [get]
 Command name - taban2d. More...
 
virtual string CmdNameMinSimp [get]
 Command name - taban2d. More...
 
virtual string CmdNameNlpSimp [get]
 Command name - taban2d. More...
 
virtual string CmdNameNlpSimpBoundConstr [get]
 Command name - taban2d. More...
 
- Properties inherited from IG.Lib.InterfaceInterpreterBase
object Lock [get]
 This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
 
virtual StringBuilder CommandBuilder [get, protected set]
 Command builder. More...
 
virtual string CommandFileString [get]
 Gets current state of commands as stirng. More...
 
virtual string InterpreterCommand [get, protected set]
 Gets or sets the command that invokes the interpreter. This may be a full path to the executable, or only executable name if the executable is located in a directory included in path. More...
 
virtual string CommandDirectory [get, protected set]
 Gets or sets the directory where command file will be located. More...
 
virtual string DefaultCommandFileName [get]
 Gets the default command file name for the current interpreter. More...
 
virtual string CommandFileName [get, protected set]
 Gets or sets the command file name where interpreter commands will be written. More...
 
virtual string CommandFilePath [get]
 Gets path to command file. More...
 
virtual string StartingDirectory [get, protected set]
 Gets or sets the command that invokes the interpreter. More...
 
virtual string CommandIntroduction [get, protected set]
 String that introduces a new command (and is written before the command name in the command file). Usually a newline. More...
 
virtual string CommandArgumentBlockBegin [get, protected set]
 String that begins command arguments block. More...
 
virtual string CommandArgumentBlockEnd [get, protected set]
 String that ends command argument block. More...
 
virtual string CommandArgumentSeparator [get, protected set]
 String that begins command arguments block. More...
 
virtual bool CommandArgumentsInNewLines [get, set]
 Whether command arguments are listed in separate lines or not. More...
 
virtual int CommandArgumentCount [get, protected set]
 The number of current argument. More...
 
virtual bool IsWithinArgumentBlock [get, protected set]
 The number of current argument. More...
 
virtual string CodeBlockBegin [get, protected set]
 String that begins a code block in interpreted files. More...
 
virtual string CodeBlockEnd [get, protected set]
 String that ends a code block in interpreted files. More...
 
virtual string VariableReferenceBegin [get, protected set]
 String that begins a code block in interpreted files. More...
 
virtual string VariableReferenceEnd [get, protected set]
 String that ends a code block in interpreted files. More...
 
virtual string IndentationString [get, set]
 String used for indentation of code. More...
 
virtual int IndentationLevel [get, protected set]
 Indentation level - how many indentation strings are added before each new row. More...
 
virtual string CommentBegin [get, protected set]
 String that begins a comment. More...
 
virtual string CommentEnd [get, protected set]
 String that ends a comment. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Additional Inherited Members

- Protected Member Functions inherited from IG.Lib.InterfaceInterpreterBase
virtual void AppendCommandVariableReference (string variableName)
 Appends a variable reference to the contents of the interpreter command file. More...
 
virtual void WriteCommandFile (bool appendContents)
 Writes the current contents of the interpreter command file to the physical file. After this method is called, ResetCommands() should be called if the object will be further used. More...
 
virtual void RunCommandFile ()
 Runs the interpreter command file. More...
 

Detailed Description

Interface for Inverse Interpreter.

This interface is used for testing, training and demonstration purposes.

$A Igor Jul09;

Constructor & Destructor Documentation

IG.Lib.InterfaceInverse.InterfaceInverse ( )
inline
IG.Lib.InterfaceInverse.InterfaceInverse ( string  commandFileName)
inline
IG.Lib.InterfaceInverse.InterfaceInverse ( string  workingDirctory,
string  commandFileName 
)
inline

Constructor.

Parameters
workingDirctoryDirectory whre command file is written to and working directory for interpreter's application. Relative or absolute path.
commandFileNameName of the command file to which commands are written and which is interpreted by the interpreter.
IG.Lib.InterfaceInverse.InterfaceInverse ( string  commandDirectory,
string  startDirectory,
string  commandFileName 
)
inline

Constructor.

Parameters
commandDirectoryDirectory whre command file is written to. Relative or absolute path.
startDirectoryDirectory in which interpreter application is started. Relative or absolute path.
commandFileNameName of the command file to which commands are written and which is interpreted by the interpreter.

Member Function Documentation

override void IG.Lib.InterfaceInverse.AppendValue ( bool  value)
inlinevirtual

Appends a boolean value to the interpreter command file contents.

Parameters
valueValue to be appended.

Reimplemented from IG.Lib.InterfaceInterpreterBase.

override void IG.Lib.InterfaceInverse.AppendValue ( string  value)
inlinevirtual

Appends a string value to the interpreter command file contents.

Parameters
valueValue to be appended.

Reimplemented from IG.Lib.InterfaceInterpreterBase.

override void IG.Lib.InterfaceInverse.AppendValue ( IVector  value)
inlinevirtual

Appends a vector value to the interpreter command file contents.

Parameters
valueValue to be appended.

Reimplemented from IG.Lib.InterfaceInterpreterBase.

References IG.Num.IVector.ToString().

override void IG.Lib.InterfaceInverse.AppendValue ( IMatrix  value)
inlinevirtual

Appends a matrix value to the interpreter command file contents.

Parameters
valueValue to be appended.

Reimplemented from IG.Lib.InterfaceInterpreterBase.

References IG.Num.IMatrix.ToString().

virtual void IG.Lib.InterfaceInverse.StartAnalysisBlock ( )
inlinevirtual

Appends beginning of analysis block to the interpreter file contents.

virtual void IG.Lib.InterfaceInverse.EndAnalysisBlock ( )
inlinevirtual

Appends end of analysis block to the interpreter file contents.

virtual void IG.Lib.InterfaceInverse.Interactive ( string  message)
inlinevirtual

Starts interactive interpreter.

Parameters
messageMessage to the user that is written before starting an interactive interpreter.
virtual void IG.Lib.InterfaceInverse.Interpret ( string  filePath)
inlinevirtual

Interprets a file.

Parameters
filePathPath to the file that will be interpreted.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
int  value 
)
inlinevirtual

Command - sets an integer interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
double  value 
)
inlinevirtual

Command - sets a double interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
bool  value 
)
inlinevirtual

Command - sets a boolean interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
string  value 
)
inlinevirtual

Command - sets a string interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
IVector  value 
)
inlinevirtual

Command - sets a vector interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetVariable ( string  variableName,
IMatrix  value 
)
inlinevirtual

Command - sets a matrix interpreter variable.

Parameters
variableNameName of the variable.
valueValue of the variable.
virtual void IG.Lib.InterfaceInverse.SetParamMom ( IVector  parameters)
inlinevirtual

Sets the current parameters.

Parameters
parametersVector containing parameter values.
virtual void IG.Lib.InterfaceInverse.SetCalculateObjective ( bool  flagValue)
inlinevirtual

Sets the flag for calculation of objective function.

Parameters
flagValueValue of the flag that is assigned.
virtual void IG.Lib.InterfaceInverse.SetCalculateConstraints ( bool  flagValue)
inlinevirtual

Sets the flag for calculation of constraint functions.

Parameters
flagValueValue of the flag that is assigned.
virtual void IG.Lib.InterfaceInverse.SetCalculateGradObjective ( bool  flagValue)
inlinevirtual

Sets the flag for calculation of objective function gradient.

Parameters
flagValueValue of the flag that is assigned.
virtual void IG.Lib.InterfaceInverse.SetCalculateGradConstraints ( bool  flagValue)
inlinevirtual

Sets the flag for calculation of constraint function gradients.

Parameters
flagValueValue of the flag that is assigned.
virtual void IG.Lib.InterfaceInverse.FileAnalysis ( string  analysisCommand,
string  analysisInputPath,
string  analysisOutputPath 
)
inlinevirtual

Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block.

Parameters
analysisCommandCommand that needs to be executed to run external direct analysis (together with command-line arguments).
analysisInputPathPath to the analysis input file (relative paths are NOT converted!).
analysisOutputPathPath to the analysis output file (relative paths are NOT converted!).
virtual void IG.Lib.InterfaceInverse.FileAnalysis ( string  analysisCommand,
string  workingDirectoryPath,
string  analysisInputFileName,
string  analysisOutputFileName 
)
inlinevirtual

Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block.

Parameters
analysisCommandCommand that needs to be executed to run external direct analysis.
workingDirectoryPathWorking directory where files are exchanged. Relative paths are NOT converted to absolute paths before use.
analysisInputFileNameName of the analysis input file.
analysisOutputFileNameName the analysis output file.
virtual void IG.Lib.InterfaceInverse.FileAnalysisStandard ( string  analysisExecutable,
string  analysisCommandName,
string  workingDirectory,
string  analysisInputFileName,
string  analysisOutputFileName 
)
inlinevirtual

Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. IMPORTANT: It is assumed that analysis program is called as a shell with built-in command-line interpreter, such that command is invoked by executable name followed by interpreter command followed by working directory path. It is alsoassumed that analysis input and output files are exchanged in the working directory.

Parameters
analysisExecutableName of the executable.
analysisCommandNameName of the interpreter command that invokes direct analysis that exchanges data through files.
workingDirectoryWorking directory path (relative paths are NOT converted!).
analysisInputFileNameName of the analysis input file.
analysisOutputFileNameName of the analysis output file.
virtual void IG.Lib.InterfaceInverse.FileAnalysisStandard ( string  analysisExecutable,
string  analysisCommandName,
string  workingDirectory 
)
inlinevirtual

Command - runs an external analysis program that exchanges intoermation through files. Before running the program, it writes analysis input file, and afterwards it reads analysis output. This command is usually put into anaysis block. IMPORTANT: It is assumed that analysis program is called as a shell with built-in command-line interpreter, such that command is invoked by executable name followed by interpreter command followed by working directory path. It is assumed that analysis input and output files are exchanged in the working directory, and their names are standard names used by file analysis servers.

Parameters
analysisExecutableName of the executable.
analysisCommandNameName of the interpreter command that invokes direct analysis that exchanges data through files.
workingDirectoryWorking directory path (relative paths are NOT converted!).
virtual void IG.Lib.InterfaceInverse.Analyse ( IVector  param)
inlinevirtual

Command - runs a direct analysis at the specified parameters.

Parameters
paramVector of parameters.
virtual void IG.Lib.InterfaceInverse.Analyse ( IVector  param,
bool  calcobj,
bool  calcconstr,
bool  calcgradobj,
bool  calcgradconstr 
)
inlinevirtual

Command - runs a direct analysis at the specified parameters, with specified calculation flags.

Parameters
paramVector of parameters.
calcobjWhether value of the objective function should be calculated.
calcconstrWhether values of constraint functions should be calculated.
calcgradobjWhether objective function gradients should b ecalculated.
calcgradconstrWhether constraint function gradients should be evaluated.
virtual void IG.Lib.InterfaceInverse.TabAn1d ( IVector  pont0,
IVector  point1,
int  numPoints,
bool  centered,
double  factor,
double  scaling 
)
inlinevirtual

Runs an 1D table of analyses.

Parameters
pont0Starting point of the table in the parameter space.
point1End point of the table in the parameter space.
numPointsNumber of analysis points.
centeredFlag for a centered table. If true then the table is centered around the starting point point0. If table is centered with geometrically growing intervals then the interval lengths first fall from point1 reflected over point0 until point0, and then grow from point0 to point1.
factorFactor of interval length growth. If 0 or 1 then intervals between table points are uniform. If it is greater than 1 then intervals grow in such a way that each successive interval length is the previous length multiplied by factor. If it is smaller than 1 then factors fall in the same way.
scalingAdditional scaling factor by which intervals are multiplied. The factor can be used e.g. if we want the table extend a bit over some special point of interest which we set as endpoint. Regardless of its size, the table remains to be centered (if centered is non-zero) or starting in point0.
virtual void IG.Lib.InterfaceInverse.TabAn1d ( IVector  pont0,
IVector  point1,
int  numPoints,
bool  centered,
double  factor,
double  scaling,
bool  printTab,
bool  printParam,
bool  printList,
bool  printObj,
bool  printConstr,
bool  printGradobj,
bool  printGradconstr 
)
inlinevirtual

Runs an 1D table of analyses.

Parameters
pont0Starting point of the table in the parameter space.
point1End point of the table in the parameter space.
numPointsNumber of analysis points.
centeredFlag for a centered table. If true then the table is centered around the starting point point0. If table is centered with geometrically growing intervals then the interval lengths first fall from point1 reflected over point0 until point0, and then grow from point0 to point1.
factorFactor of interval length growth. If 0 or 1 then intervals between table points are uniform. If it is greater than 1 then intervals grow in such a way that each successive interval length is the previous length multiplied by factor. If it is smaller than 1 then factors fall in the same way.
scalingAdditional scaling factor by which intervals are multiplied. The factor can be used e.g. if we want the table extend a bit over some special point of interest which we set as endpoint. Regardless of its size, the table remains to be centered (if centered is non-zero) or starting in point0.
printTabWhether data is also printed in table form.
printParamWhether a table of parameters in sampled points is printed together with the corresponding table indices and factors defining relative position with respect to point0 and point1.
printListIf true then data is also printed in list form.
printObjWhether objective function value is printed.
printConstrWhethe constraint function value is printed.
printGradobjWhether gradient of the objective function is printed.
printGradconstrEhether Gradients of constraint functions are printed.
virtual void IG.Lib.InterfaceInverse.TabAn2d ( IVector  pont0,
IVector  point1,
IVector  point2,
int  numPoints1,
bool  centered1,
double  factor1,
double  scaling1,
int  numPoints2,
bool  centered2,
double  factor2,
double  scaling2 
)
inlinevirtual
Parameters
pont0Starting point of the table in the parameter space.
point1The first end point of the table, defines the first table direction together with point0.
point2The second end point of the table, defines the second table direction together with point0.
numPoints1Number of analysis points (divisions) in the first direction.
centered1Flag for a centered table in the first direction. If true then the table is centered around the starting point point0. If table is centered with geometrically growing intervals then the interval lengths first fall from point1 reflected over point0 until point0, and then grow from point0 to point1.
factor1Factor of interval length growth in the first direction. If 0 or 1 then intervals between table points are uniform. If it is greater than 1 then intervals grow in such a way that each successive interval length is the previous length multiplied by factor. If it is smaller than 1 then factors fall in the same way.
scaling1Additional scaling factor by which intervals are multiplied in the first direction. The factor can be used e.g. if we want the table extend a bit over some special point of interest which we set as endpoint. Regardless of its size, the table remains to be centered (if centered is non-zero) or starting in point0.
numPoints2Number of analysis points (divisions) in the second direction.
centered2Flag for a centered table in the second direction.
factor2Factor of interval length growth in the second direction.
scaling2Additional scaling factor by which intervals are multiplied in the second direction.
virtual void IG.Lib.InterfaceInverse.TabAn2d ( IVector  pont0,
IVector  point1,
IVector  point2,
int  numPoints1,
bool  centered1,
double  factor1,
double  scaling1,
int  numPoints2,
bool  centered2,
double  factor2,
double  scaling2,
bool  printTab,
bool  printParam,
bool  printList,
bool  printObj,
bool  printConstr,
bool  printGradobj,
bool  printGradconstr 
)
inlinevirtual
Parameters
pont0Starting point of the table in the parameter space.
point1The first end point of the table, defines the first table direction together with point0.
point2The second end point of the table, defines the second table direction together with point0.
numPoints1Number of analysis points (divisions) in the first direction.
centered1Flag for a centered table in the first direction. If true then the table is centered around the starting point point0. If table is centered with geometrically growing intervals then the interval lengths first fall from point1 reflected over point0 until point0, and then grow from point0 to point1.
factor1Factor of interval length growth in the first direction. If 0 or 1 then intervals between table points are uniform. If it is greater than 1 then intervals grow in such a way that each successive interval length is the previous length multiplied by factor. If it is smaller than 1 then factors fall in the same way.
scaling1Additional scaling factor by which intervals are multiplied in the first direction. The factor can be used e.g. if we want the table extend a bit over some special point of interest which we set as endpoint. Regardless of its size, the table remains to be centered (if centered is non-zero) or starting in point0.
numPoints2Number of analysis points (divisions) in the second direction.
centered2Flag for a centered table in the second direction.
factor2Factor of interval length growth in the second direction.
scaling2Additional scaling factor by which intervals are multiplied in the second direction.
printTabWhether data is also printed in table form.
printParamWhether a table of parameters in sampled points is printed together with the corresponding table indices and factors defining relative position with respect to point0 and point1.
printListIf true then data is also printed in list form.
printObjWhether objective function value is printed.
printConstrWhethe constraint function value is printed.
printGradobjWhether gradient of the objective function is printed.
printGradconstrEhether Gradients of constraint functions are printed.
virtual void IG.Lib.InterfaceInverse.MinSimplex ( IVector  initialGuess,
IVector  stepSizes,
int  maxIt,
IVector  tolX,
double  tolF,
int  printLevel 
)
inlinevirtual

Runs the unconstaint nonlinear (modified Nelder-Mead) simplex minimization algorithm.

Parameters
initialGuessInitial guess.
stepSizesVector step to construct the initial simplex.
maxItMaximal number of iterations.
tolXTolerance on parameter values.
tolFTolerance on function values.
printLevelLevel of output produced: 1 - data about arguments and optimization results are printed. 2 – basic information about iterations and more detailed information about results are also printed. 3 – simplex (co-ordinates of apices and values of the objective function) is also printed during iterations. 4 – Complete results are printed, included values of the constraint functions. 5 – at the end, all results of all analyses are also printed. Sets of results in all simplices over al iterations are also printed in the list form readable by Mathematica.
virtual void IG.Lib.InterfaceInverse.NlpSimplex ( int  numConstraints,
IVector  initialGuess,
IVector  stepSizes,
int  maxIt,
IVector  tolX,
double  tolF,
double  tolConstr,
int  printLevel 
)
inlinevirtual

Runs the constraint nonlinear (modified Nelder-Mead) simplex minimization algorithm.

Parameters
numConstraintsNumber of constraint functions.
initialGuessInitial guess.
stepSizesVector step to construct the initial simplex.
maxItMaximal number of iterations.
tolXTolerance on parameter values.
tolFTolerance on function values.
tolConstrTolerance for constraint residuum (scalar argument; if it is 0 then none of the constraints may be violated in the solution).
printLevelLevel of output produced: 1 - data about arguments and optimization results are printed. 2 – basic information about iterations and more detailed information about results are also printed. 3 – simplex (co-ordinates of apices and values of the objective function) is also printed during iterations. 4 – Complete results are printed, included values of the constraint functions. 5 – at the end, all results of all analyses are also printed. Sets of results in all simplices over al iterations are also printed in the list form readable by Mathematica.
virtual void IG.Lib.InterfaceInverse.NlpSimplexBoundConstr ( int  numConstraints,
IVector  initialGuess,
IVector  stepSizes,
int  maxIt,
IVector  tolX,
double  tolF,
double  tolConstr,
IVector  lowerBounds,
IVector  upperBounds,
double  bigNumber,
int  printLevel 
)
inlinevirtual

Runs the constraint nonlinear (modified Nelder-Mead) simplex minimization algorithm.

Parameters
numConstraintsNumber of constraint functions.
initialGuessInitial guess.
stepSizesVector step to construct the initial simplex.
maxItMaximal number of iterations.
tolXTolerance on parameter values.
tolFTolerance on function values.
tolConstrTolerance for constraint residuum (scalar argument; if it is 0 then none of the constraints may be violated in the solution).
lowerBoundsVector of lower bounds on prameters.
upperBoundsVector of upper bounds on parameters.
bigNumberLarge positive value which is used for deciding whether components of lower and upper Bounds.
printLevelLevel of output produced: 1 - data about arguments and optimization results are printed. 2 – basic information about iterations and more detailed information about results are also printed. 3 – simplex (co-ordinates of apices and values of the objective function) is also printed during iterations. 4 – Complete results are printed, included values of the constraint functions. 5 – at the end, all results of all analyses are also printed. Sets of results in all simplices over al iterations are also printed in the list form readable by Mathematica.

Bound constraints are specified by vector arguments lowbounds and upbounds, whose components specify lower and upper bounds, respectively, for individual components of the parameter vector. If for some index the specified lower bound is larger than the corresponding upper bound then it is understood that no bounds are defined for this component of the parameter vector. If absolute value of some component of either lower or upper bound is greater than bignum, then it is also assumed that the corresponding bound is not defined (which allows to define for a given component of the parameter vector only lower or only upper bound). If there are components of the parameter vector for which only lower or only upper bound is defined, then the large positive number bignum must be specified such that components of lower or upper bound vectors whose absolute vlue is larger than bignum are not taken into account. bignum can be set to 0. In this case, the default value is taken, but this value can not fit the actual problem that is solved. If lowbounds and upbounds are not specified then the normal nonlinear constraint simplex algorithm is performed.

Property Documentation

virtual string IG.Lib.InterfaceInverse.AnalysisBlockName
get

String that introduces the analysis block.

virtual string IG.Lib.InterfaceInverse.CmdNameInterpret
get

Command name - interpret.

virtual string IG.Lib.InterfaceInverse.CmdNameInteractive
get

Command name - analyse.

virtual string IG.Lib.InterfaceInverse.CmdNameWrite
get

Command name - analyse.

virtual string IG.Lib.InterfaceInverse.CmdNameDWrite
get

Command name - analyse.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarInt
get

Command name - setting an integer variable.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarDouble
get

Command name - setting a double variable.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarBoolean
get

Command name - setting a boolean variable.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarString
get

Command name - setting a string variable.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarVector
get

Command name - setting a vector variable.

virtual string IG.Lib.InterfaceInverse.CmdNameSetVarMatrix
get

Command name - setting a matrix variable.

virtual string IG.Lib.InterfaceInverse.VarNameParamMom
get
virtual string IG.Lib.InterfaceInverse.VarNameCalcObjective
get
virtual string IG.Lib.InterfaceInverse.VarNameCalcConstraints
get
virtual string IG.Lib.InterfaceInverse.VarNameCalcGradObjective
get
virtual string IG.Lib.InterfaceInverse.VarNameCalcGradConstraints
get
virtual string IG.Lib.InterfaceInverse.VarNameObjectiveMom
get
virtual string IG.Lib.InterfaceInverse.VarNameConstraintsMom
get
virtual string IG.Lib.InterfaceInverse.VarNameGradObjectiveMom
get
virtual string IG.Lib.InterfaceInverse.VarNameGradConstraintMom
get
virtual string IG.Lib.InterfaceInverse.CmdNameFileAnalysis
get

Command name - analyse.

virtual string IG.Lib.InterfaceInverse.AnalysisInputFileNameStandard
get

Standard analysis input file name.

virtual string IG.Lib.InterfaceInverse.AnalysisOutputFileNameStandard
get

Standard analysis output file name.

virtual string IG.Lib.InterfaceInverse.CmdNameAnalyse
get

Command name - analyse.

virtual string IG.Lib.InterfaceInverse.CmdNameTab1d
get

Command name - taban1d.

virtual string IG.Lib.InterfaceInverse.CmdNameTab2d
get

Command name - taban2d.

virtual string IG.Lib.InterfaceInverse.CmdNameMinSimp
get

Command name - taban2d.

virtual string IG.Lib.InterfaceInverse.CmdNameNlpSimp
get

Command name - taban2d.

virtual string IG.Lib.InterfaceInverse.CmdNameNlpSimpBoundConstr
get

Command name - taban2d.


The documentation for this class was generated from the following file: