Difference between revisions of "Minfx"

From relax wiki
Jump to navigation Jump to search
(Removed the =minfx= sectioning for better page formatting and use in the 'Did you know...' section of the main page, and increased the sectioning depth.)
(→‎Linux and Mac: Use of the new {{current version minfx}}. This requires the magic word {{#tag: ...}} to generate the <source> tags programmatically.)
Line 7: Line 7:
 
Remember to check, if there are newer versions of [http://download.gna.org/minfx minfx]. <br>
 
Remember to check, if there are newer versions of [http://download.gna.org/minfx minfx]. <br>
 
The [https://gna.org/projects/minfx/ minfx] library can be installed on all UNIX systems by typing:
 
The [https://gna.org/projects/minfx/ minfx] library can be installed on all UNIX systems by typing:
<source lang="bash">
+
{{#tag:source|
 
# Change to bash, if in tcsh shell
 
# Change to bash, if in tcsh shell
 
bash
 
bash
  
v=1.0.11
+
v={{current version minfx}}
  
 
cd $HOME/Downloads
 
cd $HOME/Downloads
Line 24: Line 24:
  
 
cd ..
 
cd ..
 +
|lang="bash"
 +
}}
 
</source>
 
</source>
  
Line 36: Line 38:
 
# Test
 
# Test
 
relax -i
 
relax -i
 
 
</source>
 
</source>
  

Revision as of 16:40, 19 October 2015

The minfx project is a Python package for numerical optimisation, being a large collection of standard minimisation algorithms. The name minfx is simply a shortening of the mathematical expression min f(x).

Install

Guides to install on different systems.

Linux and Mac

Remember to check, if there are newer versions of minfx.
The minfx library can be installed on all UNIX systems by typing:

# Change to bash, if in tcsh shell
bash

v=1.0.12

cd $HOME/Downloads
curl http://download.gna.org/minfx/minfx-$v.tar.gz -o minfx-$v.tar.gz
tar -xzf minfx-$v.tar.gz
cd minfx-$v

# Then either
sudo pip install -e .
# Or
pip install .

cd ..

</source>

From source code

cd path_to/relax

svn co svn://svn.gna.org/svn/minfx/trunk minfx_down
ln -s minfx_down/minfx/ minfx 

# Test
relax -i

Windows

See also