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)
def exportCode(self, ocpOptions, integratorOptions, codegenOptions, phase1Options): assert isinstance(ocpOptions, OcpExportOptions) assert isinstance(integratorOptions, RtIntegratorOptions) return exportOcp.exportOcp(self, ocpOptions, integratorOptions, codegenOptions, phase1Options)
def exportCode(self, CXX='g++'): exportOcp.exportOcp(self, CXX)