org.coinor.examples.scalable
Class Scalable

java.lang.Object
  extended by org.coinor.Ipopt
      extended by org.coinor.examples.scalable.Scalable
Direct Known Subclasses:
LuksanVlcek1

public abstract class Scalable
extends Ipopt

Abstract class for the scalable problems. Implementations should derive from this class and implement initialize(int) where all problem size, bounds, and inital guess should be initialized. Besides the initialization, the abstract functions for evaluation of objective, bounds, etc need to be implemented.

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
Scalable(java.lang.String name, double gl, double gu)
           
 
Method Summary
 void create()
          Creates the problem based on the already computed problem sizes and bounds.
 double[] getInitialGuess()
           
abstract  boolean initialize(int n)
          In this function all problem sizes, bounds and initial guess should be initialized.
 java.lang.String 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

Scalable

public Scalable(java.lang.String name,
                double gl,
                double gu)
Parameters:
name -
gl - the constraint lower bound value for all elements of g
gu - the constraint upper bound value for all elements of g
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

initialize

public abstract boolean initialize(int n)
In this function all problem sizes, bounds and initial guess should be initialized.

Parameters:
n - the problem size
Returns:
true if the given size is valid for this problem

create

public void create()
Creates the problem based on the already computed problem sizes and bounds.


getInitialGuess

public double[] getInitialGuess()