The polco.adapter package contains the {@link ch.javasoft.polco.adapter.PolcoAdapter PolcoAdapter} class acting as an interface to the {@link ch.javasoft.polco.main.Polco polco} program if it is used as a library from another Java program.

To use the polco adapter methods, create an instance with or without specific {@link ch.javasoft.polco.adapter.Options Options} and invoke the appropriate computation method. A sample call might for instance look like this:

  double[][] eq = ...;//the coefficients of the system equalities
  double[][] iq = ...;//the coefficients of the system inequalities
  Options opts = new Options();
  opts.setLogLevel(Level.FINE);
  opts.setLogFile(new File("/tmp/polco.log"));
  PolcoAdapter polco = new PolcoAdapter(opts).
  double[][] rays = polco.getDoubleRays(eq, iq);