Linear and non-linear 2-variable optimization
This project aims at developing a Genetic algo library which supports mathematical functionality and its graphical representation using jfreechart library.
This approach is not limited to linear equations. It supports linear and non linear constraints and objective functions.
Launcher.java: contains main method
XYLineChart_AWT.java: deals with graphical representation of population
Generation.java: abstract class which provides the base for genetic algorithm
LinAlgebra.java: extends Generation class and implements all necessary methods of genetic algo pertaining to
our problem statement
Point.java: Point object is an individual organism in the population
Exp.java: Expression class for easy working with constraints and objective function
SimplePoint.java: A tuple of x and y coords
JFreeChart library is used for graphical representation of solution
http://www.jfree.org/jfreechart/
Scope for imporvement:
- Establish a proper interface for the library(mathmatical parts)
- Rewrite expression class and write different inherited classes for objective function and constraints
- Use regex in expression class
- Properly scale graph output
- UI modification
Video : link