Xpress Optimization

Examples of calling Python from Mosel

The examples in this set demonstrate using the "python3" Mosel module to start an in-process Python 3 interpreter, execute Python scripts and transfer data between Mosel and Python. For information on compatible Python versions and installation instructions please see the chapter python3 of the Mosel Language Reference (PDF or online manual).



Portfolio optimization using pandas to calculate covariance
 
Invert a Mosel matrix with NumPy
 
Python I/O driver example
 

 

  Comments or suggestions about the examples? Please e-mail support@fico.com