next up previous contents
Next: Return code Up: Implementation Previous: Implementation   Contents

Optimization with function evaluation

The optimization method is implemented as:

 
int Minimize_Maximize(int m,int n,
      INTEGER_VECTOR &Type_Eq,
      INTERVAL_VECTOR (* TheIntervalFunction)(int,int,INTERVAL_VECTOR &), 
      INTERVAL_VECTOR & TheDomain, 
      int Iteration,int Order,
      double epsilon,double epsilonf,double epsilone,
      int Func_Has_Interval,
      INTERVAL Optimum,
      INTERVAL_MATRIX & Solution,
      int (* Simp_Proc)(INTERVAL_VECTOR &));
the arguments being: Thus to minimize a function you have to set its Type_Eq to -2, to maximize it to set its Type_Eq to 2, while if you are looking for both a minimum and a maximum Type_Eq should be set to 10.

Remember that you may use the 3B method to improve the efficiency of this algorithm (see section 2.3.2) if you have constraint equations.

In some cases it may be interesting to determine if the minimum and maximum have same sign. This may be done by setting the flag ALIAS_Stop_Sign_Extremum either to:

With the flag set to 2 the detection that the extremum will have opposite sign is faster.



Subsections
next up previous contents
Next: Return code Up: Implementation Previous: Implementation   Contents
Jean-Pierre Merlet 2012-12-20