Esempio n. 1
0
 def exportCode(self, ocpOptions, integratorOptions, codegenOptions, phase1Options):
     print"Exporting an " + self.hashPrefix.upper() + " solver ..."
     assert isinstance(ocpOptions, OcpExportOptions)
     assert isinstance(integratorOptions, RtIntegratorOptions)
     
     # At the moment this is the only supported Hessian approximation
     assert ocpOptions['HESSIAN_APPROXIMATION'] is 'GAUSS_NEWTON'
     
     return exportOcp.exportOcp(self, ocpOptions, integratorOptions,
                                codegenOptions, phase1Options)
Esempio n. 2
0
 def exportCode(self, ocpOptions, integratorOptions, codegenOptions,
                phase1Options):
     assert isinstance(ocpOptions, OcpExportOptions)
     assert isinstance(integratorOptions, RtIntegratorOptions)
     return exportOcp.exportOcp(self, ocpOptions, integratorOptions,
                                codegenOptions, phase1Options)
Esempio n. 3
0
 def exportCode(self, ocpOptions, integratorOptions, codegenOptions, phase1Options):
     assert isinstance(ocpOptions, OcpExportOptions)
     assert isinstance(integratorOptions, RtIntegratorOptions)
     return exportOcp.exportOcp(self, ocpOptions, integratorOptions, codegenOptions, phase1Options)
Esempio n. 4
0
 def exportCode(self, CXX='g++'):
     exportOcp.exportOcp(self, CXX)