I have the following data structure in Linear_Programming class .
ArrayList<ArrayList<Double>> constraint_temp ;
ArrayList<Double> B_value_temp;
ArrayList<Double> obj_func ;
I want to pass this object to Simplex class constructor by the following code .
Simplex smlpx = new Simplex(constraint_temp, B_value_temp,obj_func);
The prototype for constructor of Simplex method is as follows :
public Simplex(double[][] A, double[] b, double[] c);
So I need a way to convert the arraylist to array . How can I do this ? Please suggest me a way .