DART
6.7.3
|
#include <SnoptSolver.hpp>
Public Member Functions | |
SnoptSolver (Problem *problem) | |
virtual | ~SnoptSolver () |
virtual bool | solve () |
Solve optimization problem. More... | |
virtual void | resetSolver () |
virtual std::string | getType () const =0 |
Get the type (implementation) of this Solver. More... | |
virtual std::shared_ptr< Solver > | clone () const =0 |
Create an identical clone of this Solver. More... | |
void | setProperties (const Properties &_properties) |
Set the generic Properties of this Solver. More... | |
const Properties & | getSolverProperties () const |
Get the generic Properties of this Solver. More... | |
void | copy (const Solver &_otherSolver) |
Copy the generic Properties of another Solver. More... | |
virtual void | setProblem (std::shared_ptr< Problem > _newProblem) |
Set the nonlinear optimization problem. More... | |
std::shared_ptr< Problem > | getProblem () const |
Get nonlinear optimization problem. More... | |
virtual void | setTolerance (double _newTolerance) |
Set the maximum step size allowed for the Problem to be considered converged. More... | |
double | getTolerance () const |
Get the maximum step size allowed for the Problem to be considered converged. More... | |
virtual void | setNumMaxIterations (std::size_t _newMax) |
Set the maximum number of iterations that the Solver should use. More... | |
std::size_t | getNumMaxIterations () const |
Get the maximum number of iterations that the Solver should use. More... | |
virtual void | setIterationsPerPrint (std::size_t _newRatio) |
Set the number of iterations that should pass between printing progress to the terminal. More... | |
std::size_t | getIterationsPerPrint () const |
Get the number of iterations that should pass between printing progress to the terminal. More... | |
virtual void | setOutStream (std::ostream *_os) |
Set the output stream that prints the Solver's progress. More... | |
std::ostream * | getOutStream () const |
Get the output stream that prints the Solver's progress. More... | |
virtual void | setPrintFinalResult (bool _print) |
Set to true if the final result should be printed to the terminal. More... | |
bool | getPrintFinalResult () const |
Returns true if the final result should be printed to the terminal. More... | |
virtual void | setResultFileName (const std::string &_resultFile) |
Set the name of the file that results should be printed to. More... | |
const std::string & | getResultFileName () const |
Get the name of the file that results should be printed to. More... | |
Static Public Member Functions | |
static int | iterUpdate (long mask, int compute_gradients, double *coefs, void *update_data) |
Protected Attributes | |
Properties | mProperties |
Private Member Functions | |
ConstraintSet * | conBox () |
ObjectiveSet * | objBox () |
Private Attributes | |
SnoptInterface * | mSnopt |
bool | mNoDisplay |
int | mSolverIter |
int | mTotalDofs |
int | mOptCount |
bool | mPrint |
int | mUnit |
dart::optimizer::snopt::SnoptSolver::SnoptSolver | ( | Problem * | problem | ) |
|
virtual |
|
pure virtualinherited |
Create an identical clone of this Solver.
Implemented in dart::optimizer::NloptSolver, dart::optimizer::IpoptSolver, and dart::optimizer::GradientDescentSolver.
|
private |
|
inherited |
Copy the generic Properties of another Solver.
|
inherited |
Get the number of iterations that should pass between printing progress to the terminal.
A value of 0 means there will be no printing.
|
inherited |
Get the maximum number of iterations that the Solver should use.
|
inherited |
Get the output stream that prints the Solver's progress.
|
inherited |
Returns true if the final result should be printed to the terminal.
|
inherited |
Get nonlinear optimization problem.
|
inherited |
Get the name of the file that results should be printed to.
An empty string indicates that results should not be printed to a file.
|
inherited |
Get the generic Properties of this Solver.
|
inherited |
Get the maximum step size allowed for the Problem to be considered converged.
|
pure virtualinherited |
Get the type (implementation) of this Solver.
Implemented in dart::optimizer::NloptSolver, dart::optimizer::IpoptSolver, and dart::optimizer::GradientDescentSolver.
|
static |
|
private |
|
virtual |
|
virtualinherited |
Set the number of iterations that should pass between printing progress to the terminal.
Use 0 for no printing.
|
virtualinherited |
Set the maximum number of iterations that the Solver should use.
|
virtualinherited |
Set the output stream that prints the Solver's progress.
|
virtualinherited |
Set to true if the final result should be printed to the terminal.
|
virtualinherited |
Set the nonlinear optimization problem.
|
inherited |
Set the generic Properties of this Solver.
|
virtualinherited |
Set the name of the file that results should be printed to.
Use an empty string to indicate that results should not be printed to a file.
|
virtualinherited |
Set the maximum step size allowed for the Problem to be considered converged.
|
virtual |
Solve optimization problem.
Implements dart::optimizer::Solver.
|
private |
|
private |
|
private |
|
protectedinherited |
|
private |
|
private |
|
private |
|
private |