IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Class containing direct analysis (in optimization) based on neural network optimization. More...
Public Member Functions | |
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... | |
Public Member Functions inherited from IG.Neural.ApproximationFileServerNeural | |
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... | |
Protected Member Functions | |
virtual void | AnalysisToApproximationInput (IVector anInput, ref IVector approximationInput) |
Converts analysis input parameters to approximation input parameters. More... | |
virtual void | ApproximationToAnalysisOutput (IVector approxOuptut, 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... | |
Properties | |
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... | |
Properties inherited from IG.Neural.ApproximationFileServerNeural | |
virtual string | Directory [get, protected set] |
Gets or sets working directory of the current object. More... | |
NeuraApproximationFileManager | NeuralFileManager [get, set] |
Properties inherited from IG.Num.IAnalysis | |
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... | |
Private Attributes | |
OptFileManager | _optFileManager |
Class containing direct analysis (in optimization) based on neural network optimization.
|
inline |
Constructor, sets object's working directory to the specified path.
workingDirectoryPath |
|
inlinevirtual |
Performs analysis - calculates requested results and writes them to the provided data structure.
analysisData | Data structure where analysis request parameters are obtained and where analysis results are written. |
Implements IG.Num.IAnalysis.
References IG.Num.IAnalysisResults.Parameters.
|
inlineprotectedvirtual |
Converts analysis input parameters to approximation input parameters.
anInput | Input parameters for direct analysis. |
approximationInput | Input parameters for response approximation. |
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.
approxOuptut | Vector of approximated output values. |
anResults | Direct analysis results. |
References IG.Num.IAnalysisResults.CalculatedObjective, and IG.Num.IAnalysisResults.ReqObjective.
|
inlinevirtual |
Clears all messages in the neural network approximator's file client/server directory.
Reimplemented from IG.Neural.ApproximationFileServerNeural.
|
inlinevirtual |
Performs server-side direct analysis. Reads analysis input from standard location, calculates output and writes it to the standard location.
|
inlinevirtual |
Calculates analysis results by using the analysis server.
inputParameters | Intput parameters for which approximation is calculated. |
outputValues | Vector where approximation output values are stored. |
|
inlinevirtual |
Performs client-side test calculation of analysis response.
inputFilePath | Path to the JSON file where input parameters are read from. The file pointed at must exist. |
reqObjective | Flag indicating whether objective function must be calculated. |
reqConstraints | Flag indicating whether constraint functions must be calculated. |
reqGradObjective | Flag indicating whether objective function gradientmust be calculated. |
reqGradOConstraints | Fleg indicating whether constraint function gradients must be calculated. |
deletedFilePath | Path of a file where the calculated analysis response in JSON is written to. It can be null or empty string, in this case response is not written to a file (but it is output on console). |
|
private |
|
getset |
|
getset |
Number of parameters.
|
getset |
Number of objective functions (normally 1 for this type, but can be 0).
|
getset |
Number of constraints.
|
getset |
Number of equality constraints.