# Optimization Without Using Derivatives: the PRIMA Package, its Fortran Implementation, and Its Inclusion in SciPy

**URL:** <https://fortran-lang.discourse.group/t/optimization-without-using-derivatives-the-prima-package-its-fortran-implementation-and-its-inclusion-in-scipy/5798>\
**Category:** Announcements\
**Created:** [May 16, 2023, 7:54am UTC](https://fortran-lang.discourse.group/t/optimization-without-using-derivatives-the-prima-package-its-fortran-implementation-and-its-inclusion-in-scipy/5798 "2023-05-16T07:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![zaikunzhang](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/zaikunzhang/32/785_2.png) [@zaikunzhang](https://fortran-lang.discourse.group/u/zaikunzhang)\
**Post date:** [May 18, 2023, 9:38am UTC](https://fortran-lang.discourse.group/t/optimization-without-using-derivatives-the-prima-package-its-fortran-implementation-and-its-inclusion-in-scipy/5798/16 "2023-05-18T09:38:56Z")

</div>

Welcome @ito ! Thank you very much for offering to help!

I hope the modern Fortran code of PRIMA is understandable even for those who are not familiar with modern Fortran. The syntax and style are extremely close to MATLAB. Indeed, I purposely refrained from using Fortran-specific constructs during the development, so that the code is easy to be translated into other languages. At least, it is easy if the target language is MATLAB.

I was thinking about developing some tool to translate the code automatically, or semi-automatically with minimum postprocessing that will be done manually. This is indeed how we obtained the [MATLAB implementation of NEWUOA](https://github.com/libprima/prima/tree/main/matlab/interfaces/%2Bnewuoa_mat), one of the five solvers in PRIMA. Most of the MATLAB code was generated by some Ocaml scripts. The code was then post-processed using some bash script and by hand. Do you think this is possible for Python?

Many thanks again!

---

_[View the full topic](https://fortran-lang.discourse.group/t/optimization-without-using-derivatives-the-prima-package-its-fortran-implementation-and-its-inclusion-in-scipy/5798)._
