10 #ifndef __MITTELMANNBNDRYCNTRLDIRI_HPP__
11 #define __MITTELMANNBNDRYCNTRLDIRI_HPP__
27 # error "don't have header file for math"
37 # error "don't have header file for stdio"
41 using namespace Ipopt;
72 virtual bool get_starting_point(
Index n,
bool init_x,
Number*
x,
74 Index m,
bool init_lambda,
107 bool& use_x_scaling,
Index n,
109 bool& use_g_scaling,
Index m,
191 return (j-1) + N_*(i-1);
216 virtual bool InitializeProblem(
Index N)
219 printf(
"N has to be at least 1.");
228 SetBaseParameters(N, alpha, lb_y, ub_y, lb_u, ub_u, d_const);
235 return 3. + 5.*(x1*(x1-1.)*x2*(x2-1.));
255 virtual bool InitializeProblem(
Index N)
258 printf(
"N has to be at least 1.");
267 SetBaseParameters(N, alpha, lb_y, ub_y, lb_u, ub_u, d_const);
274 return 3. + 5.*(x1*(x1-1.)*x2*(x2-1.));
294 virtual bool InitializeProblem(
Index N)
297 printf(
"N has to be at least 1.");
306 SetBaseParameters(N, alpha, lb_y, ub_y, lb_u, ub_u, d_const);
313 return 3. + 5.*(x1*(x1-1.)*x2*(x2-1.));
333 virtual bool InitializeProblem(
Index N)
336 printf(
"N has to be at least 1.");
345 SetBaseParameters(N, alpha, lb_y, ub_y, lb_u, ub_u, d_const);
352 return 3. + 5.*(x1*(x1-1.)*x2*(x2-1.));