trajopt
 All Classes Namespaces Files Functions Variables Typedefs Pages
Public Member Functions | Protected Attributes | List of all members
sco::CostFromFunc Class Reference
Inheritance diagram for sco::CostFromFunc:
sco::Cost

Public Member Functions

 CostFromFunc (ScalarOfVectorPtr f, const VarVector &vars, const string &name, bool full_hessian=false)
 supply function, obtain derivative and hessian numerically
 
double value (const vector< double > &x)
 Evaluate at solution vector x.
 
ConvexObjectivePtr convex (const vector< double > &x, Model *model)
 Convexify at solution vector x.
 
- Public Member Functions inherited from sco::Cost
string name ()
 
void setName (const string &name)
 
 Cost (const string &name)
 

Protected Attributes

ScalarOfVectorPtr f_
 
VarVector vars_
 
bool full_hessian_
 
double epsilon_
 
- Protected Attributes inherited from sco::Cost
string name_
 

The documentation for this class was generated from the following file: