示例#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)
示例#2
0
文件: Ocp.py 项目: psinha/rawesome
 def exportCode(self, ocpOptions, integratorOptions, codegenOptions,
                phase1Options):
     assert isinstance(ocpOptions, OcpExportOptions)
     assert isinstance(integratorOptions, RtIntegratorOptions)
     return exportOcp.exportOcp(self, ocpOptions, integratorOptions,
                                codegenOptions, phase1Options)
示例#3
0
文件: Ocp.py 项目: jgillis/rawesome
 def exportCode(self, ocpOptions, integratorOptions, codegenOptions, phase1Options):
     assert isinstance(ocpOptions, OcpExportOptions)
     assert isinstance(integratorOptions, RtIntegratorOptions)
     return exportOcp.exportOcp(self, ocpOptions, integratorOptions, codegenOptions, phase1Options)
示例#4
0
 def exportCode(self, CXX='g++'):
     exportOcp.exportOcp(self, CXX)