HQP
1.9.6
|
This source code distribution uses the GNU autoconf/make mechanism.
HQP can be compiled and tested by invoking:
$ ./configure
$ make
Basically two libraries are built: hqp and omu. Furthermore an example is created in ./hqp_docp
, testing HQP alone, and a demo collection in ./odc
, testing HQP together with the front-end Omuses.
An up-to-date reference documentation can be created from the sources using Doxygen with
$ make doc
The results of make (object codes, lib, executables) can be removed with
$ make clean
The results of make and configure (makefiles) can removed with
$ make distclean
The compilation of HQP relies on the following software:
Moreover, HQP uses the Tool Command Language
tcl
for the runtime and tcl-dev
for include files) Unpack the distribution file by invoking
tar -xzf hqp<version>.tar.gz
This creates the new directory hqp containing everything.
cd to the created directory and invoke
./configure
This creates the files ./makedirs, ./makedefs ./odc/Makefile, ./hqp_docp/Makefile, lib/pkgIndex.tcl, and ./doc/Doxyfile. Following options can be specified:
Feature options:
--with-matlab=/usr/local/matlab
--with-matlab-libs=/usr/local/matlab/extern/lib/glnx86
Installation options:
Build options:
Use a specific Tcl installation, which is not found automatically:
--with-tcl=/usr/local/lib
Compile the distribution by invoking
make
(or
make -f Makefile.hqp
to skip building Omuses and Odc)
Directly after compilation, a test run of an example in ./odc is performed automatically that should produce the result "optimal". Some more examples are given in ./odc (please see also the documentation in ./doc).
Optionally install the libraries and includes by invoking
make install
The following directories and files are created:
$prefix / lib / Hqp<version> / pkgIndex.tcl / libhqp-<version>.so / libomu-<version>.so / libhqp.so -> libhqp-<version>.so / libomu.so -> libomu-<version>.so / include / hqp-<version> / *.h / hqp -> hqp-<version>
See ./hqp_docp/README
if you want to use HQP directly for multistage optimization, bypassing Omuses (no support for differential equations or automatic differentiation).
See ./hqp_cute/README if you want to use HQP in the testing environment CUTE.
Get in contact with the developers through GitHub.
Gernerally for using an other compiler, say cl, invoke
CC=cl ./configure
The POSIX/GNU build tools are still needed (tar, gzip, sh, make, patch). They are provided for Windows by MinGW or Cygwin. These environments also include gcc and tcl, besides more.
Alternatively the native Windows compiler cl can be configured for the actual compilation (CC=cl ./configure), provided it finds in the PATH environment – the Visual Studio Command Prompt that comes with Visual Studio Tools sets the path; the POSIX shell for building HQP might be started from there. Tcl should be installed from a binary distribution available for Windows in this case and configured via –with-tcl
(see above).