73 virtual double cost() = 0;
89 virtual double cost_x(
const blitz::Array<double, 1>& x)
156 virtual void print(std::ostream& Os)
const 157 { Os <<
"CostFunc"; }
virtual void increment_num_cost_evaluations()
Increments (by 1) cost evaluation counter.
virtual double cost()=0
The cost function.
virtual void set_num_cost_evaluations(int count)
Sets the cost evaluation counter to a desired value.
message_t
Enum type for the message generated by the problem.
CostFunc()
Default Constructor.
The base class for all problem classes that implement a cost function.
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
virtual void zero_num_evaluations()
Sets cost evaluation counter to zero.
virtual message_t message() const
Returns a value of CostFunc::message_t type.
There is an error in the problem.
virtual int num_cost_evaluations() const
Returns the number of the times cost has been evaluated.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
The base class for all problem states.
virtual const char *const message_str() const
Returns the string version of the problem message.
virtual void print(std::ostream &Os) const
Prints description of object.
virtual double cost_x(const blitz::Array< double, 1 > &x)
The cost function with parameters.