IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Analysis server based on neural approximations for IJS, for Robert's data. More...
Public Member Functions | |
AnalysisFileServerNeuralExtBase (string workingDirectory) | |
![]() | |
AnalysisFileServerNeural (string workingDirectoryPath) | |
Constructor, sets object's working directory to the specified path. More... | |
virtual void | Analyse (IAnalysisResults analysisData) |
Performs analysis - calculates requested results and writes them to the provided data structure. More... | |
override void | ClearMessages () |
Clears all messages in the neural network approximator's file client/server directory. More... | |
virtual void | ServerAnalyse () |
Performs server-side direct analysis. Reads analysis input from standard location, calculates output and writes it to the standard location. More... | |
virtual void | ClientCalculateAnalysisResults (AnalysisResults anRes) |
Calculates analysis results by using the analysis server. More... | |
virtual void | ClientTestCalculateAnalysisResults (string inputFilePath, bool reqObjective, bool reqConstraints, bool reqObjectiveGradient, bool reqConstraintGradients, string outputFilePath) |
Performs client-side test calculation of analysis response. More... | |
![]() | |
ApproximationFileServerNeural (string workingDirectoryPath) | |
virtual void | ServerCalculateApproximation () |
Performs server-side calculation of the approximation. Reads input from standard location, calculates output and writes it to the standard location. More... | |
virtual void | ClientCalculateApproximation (IVector input, ref IVector output) |
Calculates the neural network based approximated values. More... | |
virtual void | ClientTestCalculateApproximation (string inputFilePath, string outputFilePath) |
Performs client-side test calculation of neural network based approximation where input parameters are read from a specified JSON file, and calculated output values are written to the specified file. More... | |
Static Public Member Functions | |
static void | InstallCommands_ijs_11_05 (ICommandLineApplicationInterpreter app) |
Installs Tadej's commands for neural networks on the applications's command interpreter. More... | |
static string | CmdAnalyseServer_ijs_11_05 (CommandThread interpreter, string cmdName, string[] args) |
Command. Calculates approximation according to input parameters written in a file, and outputs resulting approximated values to a file. More... | |
static string | CmdAnalyseClient_ijs_11_05 (CommandThread interpreter, string cmdName, string[] args) |
Command. Sends request to a server to calculate an approximation. More... | |
Protected Member Functions | |
override void | AnalysisToApproximationInput (IVector anInput, ref IVector approximationInput) |
Converts analysis input parameters to approximation input parameters. More... | |
override void | ApproximationToAnalysisOutput (IVector approxOutput, IAnalysisResults anResults) |
Converts approximation output to direct analysis results. Sets objective function to sum of squares of approximated values. WARNING: This method should be overridden in derived classes. More... | |
Additional Inherited Members | |
![]() | |
OptFileManager | OptimizationFileManager [get, set] |
int | NumParameters [get, set] |
Number of parameters. More... | |
int | NumObjectives [get, set] |
Number of objective functions (normally 1 for this type, but can be 0). More... | |
int | NumConstraints [get, set] |
Number of constraints. More... | |
int | NumEqualityConstraints [get, set] |
Number of equality constraints. More... | |
![]() | |
virtual string | Directory [get, protected set] |
Gets or sets working directory of the current object. More... | |
NeuraApproximationFileManager | NeuralFileManager [get, set] |
![]() | |
int | NumParameters [get, set] |
Number of parameters. More... | |
int | NumObjectives [get, set] |
Number of objective functions (normally 1 for this type, but can be 0). More... | |
int | NumConstraints [get, set] |
Number of constraints. More... | |
int | NumEqualityConstraints [get, set] |
Number of equality constraints. More... | |
Analysis server based on neural approximations for IJS, for Robert's data.
|
inline |
|
inlineprotectedvirtual |
Converts analysis input parameters to approximation input parameters.
anInput | Input parameters for direct analysis. |
approximationInput | Input parameters for response approximation. |
Reimplemented from IG.Neural.AnalysisFileServerNeural.
References IG.Num.VectorBase.Copy().
|
inlineprotectedvirtual |
Converts approximation output to direct analysis results.
Sets objective function to sum of squares of approximated values.
WARNING:
This method should be overridden in derived classes.
approxOutput | Vector of approximated output values. |
anResults | Direct analysis results. |
Reimplemented from IG.Neural.AnalysisFileServerNeural.
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.IAnalysisResults.Calculated, IG.Num.IAnalysisResults.CalculatedObjective, IG.Num.InputOutputDataDefiniton.LoadJson(), IG.Num.InputOutputElementDefinition.MaximalValue, IG.Num.InputOutputElementDefinition.MinimalValue, IG.Num.IAnalysisResults.NumConstraints, IG.Num.IAnalysisResults.NumObjectives, IG.Num.IAnalysisResults.Objective, IG.Num.IAnalysisResults.Parameters, IG.Num.IAnalysisResults.ReqObjective, and IG.Num.InputOutputElementDefinition.TargetValue.
|
inlinestatic |
Installs Tadej's commands for neural networks on the applications's command interpreter.
References IG.Lib.ICommandLineApplicationInterpreter.AddCommand().
Referenced by IG.Lib.AppExtendedShell.AppExtendedShell().
|
inlinestatic |
Command. Calculates approximation according to input parameters written in a file, and outputs resulting approximated values to a file.
interpreter | Interpreter on which commad is run. |
cmdName | Command name. |
AppArguments | Command arguments. |
References IG.Num.OptFileManager.ClearAnBusy(), IG.Neural.NeuraApproximationFileManager.ClearNeuralBusy(), IG.Neural.ApproximationFileServerNeural.NeuralFileManager, IG.Neural.AnalysisFileServerNeural.OptimizationFileManager, IG.Neural.AnalysisFileServerNeural.ServerAnalyse(), IG.Num.OptFileManager.SetAnBusy(), IG.Num.OptFileManager.SetAnInputReady(), IG.Neural.NeuraApproximationFileManager.SetNeuralBusy(), and IG.Neural.NeuraApproximationFileManager.SetNeuralInputReady().
|
inlinestatic |
Command. Sends request to a server to calculate an approximation.
interpreter | Interpreter on which commad is run. |
cmdName | Command name. |
AppArguments | Command arguments. |
References IG.Neural.AnalysisFileServerNeural.ClientTestCalculateAnalysisResults(), and IG.Lib.UtilStr.ToBoolean().