OpenPisco.Optim.Criteria.Criteria module#

OpenPisco.Optim.Criteria.Criteria.CheckIntegrity(GUI=False)[source]#
class OpenPisco.Optim.Criteria.Criteria.CriteriaBase(other=None)[source]#

Bases: object

AssertSuitableSolutionId(i)[source]#
GetName()[source]#
abstract GetNumberOfSolutions()[source]#
classmethod GetNumberOfSolutions(self)[source]#

Retrieve the number of solutions of the current criterion :return: number of solutions :rtype: int

GetScalarsOutputs() dict[source]#
GetSensitivity()[source]#
classmethod GetSensitivity()[source]#

Get the current value of the sensitivity :return: current value of the sensitivity :rtype: ndarray

GetTargetValue()[source]#
GetUpperBound()[source]#
GetValue()[source]#
classmethod GetValue()[source]#

Get the current value of the criterion :return: current value of the criterion :rtype: float

SetName(name)[source]#
SetTargetValue(value)[source]#
SetUpperBound(bound)[source]#
UpdateCriteriaWhenIterationAccepted()[source]#
abstract UpdateValues(point, phi)[source]#
classmethod UpdateValues(self, point)[source]#

Update value and sensitivity of the criterion for the current levelset

Parameters

point (LevelSet) – current level set

Returns

paramater indicating if the update was successfull

Return type

bool

class OpenPisco.Optim.Criteria.Criteria.CriteriaFunctionPointer(other=None)[source]#

Bases: CriteriaBase

GetNumberOfSolutions()[source]#
classmethod GetNumberOfSolutions(self)[source]#

Retrieve the number of solutions of the current criterion :return: number of solutions :rtype: int

GetSolution(i)[source]#
UpdateValues(point)[source]#
classmethod UpdateValues(self, point)[source]#

Update value and sensitivity of the criterion for the current levelset

Parameters

point (LevelSet) – current level set

Returns

paramater indicating if the update was successfull

Return type

bool

class OpenPisco.Optim.Criteria.Criteria.PhysicalCriteriaBase(other=None)[source]#

Bases: CriteriaBase

abstract GetCriteriaSolution(i)[source]#
classmethod GetCriteriaSolution(self, i)[source]#

Retrieve the solution of index i. The index i should be smaller than the total number of solutions :param int i : index of the current solution :return: solution :rtype: ndarray

abstract GetCriteriaSolutionName(i)[source]#
classmethod GetCriteriaSolutionName(self, i)[source]#

Retrieve the name of the solution of index i. The index i should be smaller than the total number of solutions :param int i : index of the current solution :return: solution name :rtype: str

GetSolution(i)[source]#
GetSolutionName(i)[source]#
SetAdjointProblemLikeDirect(problemArg=None)[source]#
SetAuxiliaryQuantities(point)[source]#
SetProblem(problem)[source]#
UpdateCriteriaValues(point)[source]#
OpenPisco.Optim.Criteria.Criteria.UnimplementedFunction(name)[source]#