#7761 Objective Function : Change formula and add several options

This commit is contained in:
Magne Sjaastad
2021-06-09 16:25:19 +02:00
parent c89e00b966
commit 4de91e885b
24 changed files with 883 additions and 537 deletions

View File

@@ -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();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------