maspack.ipopt
Class JipoptExample

java.lang.Object
  extended by org.coinor.Ipopt
      extended by maspack.ipopt.JipoptExample

public class JipoptExample
extends org.coinor.Ipopt

Java example for interfacing with IPOPT. HS071 implements a Java example of problem 71 of the Hock-Schittkowsky test suite.

The optimal solution is x = (1.00000000, 4.74299963, 3.82114998, 1.37940829).

This code was based on same problem of the Ipopt distribution.

Author:
Rafael de Pelegrini Soares, Tong Kewei

Field Summary
 
Fields inherited from class org.coinor.Ipopt
ACCEPTABLE_LEVEL, C_STYLE, DIVERGING_ITERATES, DLLNAME, DLLPATH, ERROR_IN_STEP_COMPUTATION, FORTRAN_STYLE, INFEASIBLE_PROBLEM, INSUFFICIENT_MEMORY, INTERNAL_ERROR, INVALID_NUMBER_DETECTED, INVALID_OPTION, INVALID_PROBLEM_DEFINITION, ITERATION_EXCEEDED, KEY_ACCEPTABLE_COMPL_INF_TOL, KEY_ACCEPTABLE_CONSTR_VIOL_TOL, KEY_ACCEPTABLE_DUAL_INF_TOL, KEY_ACCEPTABLE_TOL, KEY_BARRIER_TOL_FACTOR, KEY_BOUND_RELAX_FACTOR, KEY_COMPL_INF_TOL, KEY_CONSTR_VIOL_TOL, KEY_DERIVATIVE_TEST, KEY_DERIVATIVE_TEST_PRINT_ALL, KEY_DERIVATIVE_TEST_TOL, KEY_DUAL_INF_TOL, KEY_FILE_PRINT_LEVEL, KEY_HESSIAN_APPROXIMATION, KEY_LIMITED_MEMORY_MAX_HISTORY, KEY_LINEAR_SOLVER, KEY_MAX_ITER, KEY_MU_STRATEGY, KEY_OBJ_SCALING_FACTOR, KEY_OUTPUT_FILE, KEY_PRINT_LEVEL, KEY_PRINT_USER_OPTIONS, KEY_TOL, NON_IPOPT_EXCEPTION, NOT_ENOUGH_DEGREES_OF_FRE, RESTORATION_FAILED, SEARCH_DIRECTION_TOO_SMALL, SOLVE_SUCCEEDED, UNRECOVERABLE_EXCEPTION, USER_REQUESTED_STOP
 
Constructor Summary
JipoptExample()
          Creates a new instance of HS071cpp
 
Method Summary
 boolean get_scaling_parameters(double[] obj_scaling, int n, double[] x_scaling, int m, double[] g_scaling, boolean[] use_x_g_scaling)
           
static void main(java.lang.String[] args)
          Main function for running this example.
 void print(double[] x, java.lang.String str)
           
 
Methods inherited from class org.coinor.Ipopt
create, dispose, get_list_of_nonlinear_variables, get_number_of_nonlinear_variables, getMultConstraints, getMultLowerBounds, getMultUpperBounds, getObjVal, getState, getStatus, OptimizeNLP, setIntegerOption, setNumericOption, setStringOption
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JipoptExample

public JipoptExample()
Creates a new instance of HS071cpp

Method Detail

main

public static void main(java.lang.String[] args)
Main function for running this example.


get_scaling_parameters

public boolean get_scaling_parameters(double[] obj_scaling,
                                      int n,
                                      double[] x_scaling,
                                      int m,
                                      double[] g_scaling,
                                      boolean[] use_x_g_scaling)
Overrides:
get_scaling_parameters in class org.coinor.Ipopt

print

public void print(double[] x,
                  java.lang.String str)