## ipo interior-point optimisation library |
||
---|---|---|

## Links
Home · |
## Namespaces and #include files## The ipo namespaceThis namespace contains classes for ipo models, variables, arrrays, objectives and constraints. If you have installed ipo, usually all you will need to do to make these classes available is put the following line in your code. #include<ipo/Model.hpp>The classes are all in the ipo namespace; so for example, to create an ipo model you can use using namespace ipo; Model model;or ` ipo::Model model;`
## The ipo_function namespaceThis most important class in this namespace is the Function class. An ipo:Objective or ipo:Constraint object needs a twice continuously differentiable function with a vector argument. And the functions must be supplied as objects of a subclass of Function. You need the following line in any code that declares a Function. #include<ipo_function/Function.hpp> ## The ipo_function::concrete namespaceSome simple Function objects are tedious to construct individually. The classes in this namespace allow you to create sums and sums of squares of variables and also linear and quadratic combinations of variables. For example, to create a linear combination, you can use the following. #include<ipo_function/concrete/LinearCombination.hpp>Then you can create ipo_function::concrete::LinearCombination objects as needed. Last modified: Tue 02 Jul 2013 04:56 pm |