EgtNesting 2.2b1 :

- aggiunta funzione SetReportFile.
This commit is contained in:
Dario Sassi
2020-02-04 07:38:11 +00:00
parent df8a590c04
commit 2afaf0d608
3 changed files with 13 additions and 0 deletions
+11
View File
@@ -238,6 +238,14 @@ AutoNester::SetInterpartGap( double dGap)
return true ;
}
//----------------------------------------------------------------------------
bool
AutoNester::SetReportFile( const string& sReportFile)
{
m_sReportFile = sReportFile ;
return true ;
}
//----------------------------------------------------------------------------
bool
AutoNester::Compute( bool bMinimizeOnXvsY, int nMaxTime)
@@ -263,6 +271,9 @@ AutoNester::Compute( bool bMinimizeOnXvsY, int nMaxTime)
return false ;
// passo i codici al nester
CNS_UnLockLaunchingOrderOxy( m_pOrder, sKeyId.c_str(), sKeySign.c_str()) ;
// se richiesto debug
if ( ! IsEmptyOrSpaces( m_sReportFile))
CNS_GenerateLaunchingOrderProblem( m_pOrder, m_sReportFile.c_str()) ;
// lancio l'esecuzione
m_pComp = CNS_LaunchLocalComputation( m_pOrder, nMaxTime) ;
return ( m_pComp != nullptr) ;