MCPcopy Create free account
hub / github.com/davisking/dlib / compute_objective_value

Function compute_objective_value

dlib/test/opt_qp_solver.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75// ----------------------------------------------------------------------------------------
76
77 double compute_objective_value (
78 const matrix<double,0,1>& w,
79 const matrix<double>& A,
80 const matrix<double,0,1>& b,
81 const double C
82 )
83 {
84 return 0.5*dot(w,w) + C*max(trans(A)*w + b);
85 }
86
87// ----------------------------------------------------------------------------------------
88

Callers 6

test_qp4_test1Function · 0.85
test_qp4_test2Function · 0.85
test_qp4_test3Function · 0.85
test_qp4_test5Function · 0.85
test_qp4_test4Function · 0.85
test_qp4_test6Function · 0.85

Calls 3

dotFunction · 0.50
maxFunction · 0.50
transFunction · 0.50

Tested by

no test coverage detected