org.coinor.examples.scalable
Class LuksanVlcek1

java.lang.Object
  extended by org.coinor.Ipopt
      extended by org.coinor.examples.scalable.Scalable
          extended by org.coinor.examples.scalable.LuksanVlcek1

public class LuksanVlcek1
extends Scalable

Implementation of Example 5.1 from "Sparse and Parially Separable Test Problems for Unconstrained and Equality Constrained Optimization" by L. Luksan and J. Vlcek.

This code was based on Ipopt file with same name.

Author:
Rafael de Pelegrini Soares

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
LuksanVlcek1(java.lang.String name, double gl, double gu)
          Constructor.
 
Method Summary
 boolean initialize(int n)
          In this function all problem sizes, bounds and initial guess should be initialized.
 
Methods inherited from class org.coinor.examples.scalable.Scalable
create, getInitialGuess, toString
 
Methods inherited from class org.coinor.Ipopt
addIntOption, addNumOption, addStrOption, create, dispose, finalize, getMultConstraints, getMultLowerBounds, getMultUpperBounds, getObjVal, getStatus, openOutputFile, setProblemScaling, solve
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuksanVlcek1

public LuksanVlcek1(java.lang.String name,
                    double gl,
                    double gu)
Constructor. Here, gl and gu are the bounds for the constraints. The original formulation is obtained by setting gl and gu to zero. Using gl lower than gu allows the obtain a problem formulation with inequality constraints.

Method Detail

initialize

public boolean initialize(int n)
Description copied from class: Scalable
In this function all problem sizes, bounds and initial guess should be initialized.

Specified by:
initialize in class Scalable
Parameters:
n - the problem size
Returns:
true if the given size is valid for this problem