« Previous « Start » Next »
5 Using the TOMNET Solvers
The solvers are normally accessed by creating a TOMNETSolver object
using the constructor of each solver class. After initial
development work, call the solver directly by using the
Solve
method.
Built-in checks are executed to make sure that illegal problem
statements, such as crossover for bounds, are not sent to the
solver.
5.1 Setting Solver Options
Each applicable solver has a member called
Options . The
Options control the usage of print files, print levels, various
convergence criteria and more.
All
Options members are described in the
documentation in the
tomnet/docs folder.
The following snippet of code demonstrates an example of how to set
the PrintFile option for a solver (in this case SNOPT):
SNOPT solver = new SNOPT();
string printfilename = "SnoptPrintFile.txt";
solver.Options.PrintFile = printfilename;
« Previous « Start » Next »