A Java expression evaluator for nonlinear programming


Autoria(s): Matias, João; Correia, Aldina; Serôdio, Carlos; Teixeira, C.; Mestre, Pedro
Data(s)

26/02/2014

26/02/2014

2013

Resumo

Finding the optimal value for a problem is usual in many areas of knowledge where in many cases it is needed to solve Nonlinear Optimization Problems. For some of those problems it is not possible to determine the expression for its objective function and/or its constraints, they are the result of experimental procedures, might be non-smooth, among other reasons. To solve such problems it was implemented an API contained methods to solve both constrained and unconstrained problems. This API was developed to be used either locally on the computer where the application is being executed or remotely on a server. To obtain the maximum flexibility both from the programmers’ and users’ points of view, problems can be defined as a Java class (because this API was developed in Java) or as a simple text input that is sent to the API. For this last one to be possible it was also implemented on the API an expression evaluator. One of the drawbacks of this expression evaluator is that it is slower than the Java native code. In this paper it is presented a solution that combines both options: the problem can be expressed at run-time as a string of chars that are converted to Java code, compiled and loaded dynamically. To wide the target audience of the API, this new expression evaluator is also compatible with the AMPL format.

Identificador

978-988-19251-0-7

2078-0958

2078-0966

http://hdl.handle.net/10400.22/4074

Idioma(s)

eng

Publicador

International Association of Engineers

Relação

World Congress on Engineering; Vol. 1

http://www.iaeng.org/publication/WCE2013/

Direitos

openAccess

Palavras-Chave #Nonlinear programming #Java #API #AMPL #Dynamic code generation
Tipo

conferenceObject