IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.OptConstrained.Example2dTest Class Reference

A simple test optimization problem (nonlinear constrained, 2 parameters, 2 constraints). More...

+ Inheritance diagram for IG.Num.OptConstrained.Example2dTest:
+ Collaboration diagram for IG.Num.OptConstrained.Example2dTest:

Public Member Functions

override void Analyse (IAnalysisResults analysisData)
 Performs the direct analysis, i.e. calculation of the response functions of the optimization problem. More...
 

Properties

override int NumParameters [get, set]
 Number of parameters. More...
 
override int NumObjectives [get, set]
 Number of objectives. More...
 
override int NumConstraints [get, set]
 Number of constraints. More...
 
- Properties inherited from IG.Num.AnalysisBase
object Lock [get]
 
virtual int NumParameters [get, set]
 Number of parameters. More...
 
virtual int NumObjectives [get, set]
 Number of objective functions (normally 1 for this type, but can be 0). More...
 
virtual int NumConstraints [get, set]
 Number of constraints. More...
 
virtual int NumEqualityConstraints [get, set]
 Number of equality constraints. More...
 
- 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...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Private Attributes

double A =0.1
 
double B =0.005
 
double CX =0.2
 
double CY =-1
 
double TX =0.6
 
double TY =1
 

Additional Inherited Members

- Protected Attributes inherited from IG.Num.AnalysisBase
int _numParameters = -1
 
int _numObjectives = -1
 
int _numConstraints = -1
 
int _numEqualityConstraints = -1
 

Detailed Description

A simple test optimization problem (nonlinear constrained, 2 parameters, 2 constraints).

Problem solved is: min f(x,y)=(sin(sqrt(A*(x-CX)^2+B*(y-CY)^2)))^2, subject to x>=TX+y^2 and y>=TY, where A=0.1, B=0.005, CX=0.2, CY=-1, TX=0.6, and TY=1 :

f(x,y)=(sin(sqrt(A*(x-CX)^2+B*(y-CY)^2)))^2

c_1(x,y)=TX+y*y-x

c_2(x,y)=TY-y

Known local solution:

x=1.6, y=1, f(x,y) = 0.200889 .

Member Function Documentation

Member Data Documentation

double IG.Num.OptConstrained.Example2dTest.A =0.1
private
double IG.Num.OptConstrained.Example2dTest.B =0.005
private
double IG.Num.OptConstrained.Example2dTest.CX =0.2
private
double IG.Num.OptConstrained.Example2dTest.CY =-1
private
double IG.Num.OptConstrained.Example2dTest.TX =0.6
private
double IG.Num.OptConstrained.Example2dTest.TY =1
private

Property Documentation

override int IG.Num.OptConstrained.Example2dTest.NumParameters
getset

Number of parameters.

override int IG.Num.OptConstrained.Example2dTest.NumObjectives
getset

Number of objectives.

override int IG.Num.OptConstrained.Example2dTest.NumConstraints
getset

Number of constraints.


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