ReFRACtor
freudenstein_roth_nlls_problem.cc
Go to the documentation of this file.
2 
3 
4 using namespace FullPhysics;
5 using namespace blitz;
6 
7 // See base class for description.
9 {
10  if(R.size() <= 0) {
11  assert_parameter_set_correctly();
12  increment_num_cost_evaluations();
13  R.resize(residual_size());
14 
15  R = -13.0+X(0)+((5.0-X(1))*X(1)-2.0)*X(1), -29.0+X(0)+((X(1)+1.0)*X(1)-14.0)*X(1);
16  }
17  return R.copy();
18 }
19 
20 // See base class for description.
22 {
23  if(J.size() <= 0) {
24  assert_parameter_set_correctly();
25  increment_num_der1_evaluations();
26  J.resize(residual_size(), parameter_size());
27 
28  J = 1.0, (10.0-3.0*X(1))*X(1)-2.0,
29  1.0, (3.0*X(1)+2.0)*X(1)-14.0;
30  }
31  return J.copy();
32 }
const Unit J("J", N *m)
virtual blitz::Array< double, 1 > residual()
The residual vector function.
Apply value function to a blitz array.
virtual blitz::Array< double, 2 > jacobian()
The Jacobian matrix function.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:08