mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7761 Objective Function : Change formula and add several options
This commit is contained in:
@@ -213,9 +213,6 @@ RimSummaryCaseCollection::RimSummaryCaseCollection()
|
||||
m_statisticsEclipseRftReader = new RifReaderEnsembleStatisticsRft( this );
|
||||
|
||||
m_commonAddressCount = 0;
|
||||
|
||||
m_objectiveFunctions.push_back( std::make_shared<RimObjectiveFunction>( this, RimObjectiveFunction::FunctionType::M1 ) );
|
||||
m_objectiveFunctions.push_back( std::make_shared<RimObjectiveFunction>( this, RimObjectiveFunction::FunctionType::M2 ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -865,30 +862,6 @@ void RimSummaryCaseCollection::clearEnsembleParametersHashes()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::shared_ptr<RimObjectiveFunction>> RimSummaryCaseCollection::objectiveFunctions() const
|
||||
{
|
||||
return m_objectiveFunctions;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::shared_ptr<RimObjectiveFunction>
|
||||
RimSummaryCaseCollection::objectiveFunction( RimObjectiveFunction::FunctionType functionType )
|
||||
{
|
||||
for ( auto objectiveFunc : m_objectiveFunctions )
|
||||
{
|
||||
if ( objectiveFunc->functionType() == functionType )
|
||||
{
|
||||
return objectiveFunc;
|
||||
}
|
||||
}
|
||||
return m_objectiveFunctions.front();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user