MCPcopy Create free account
hub / github.com/PSOPT/psopt / hs118Hx

Function hs118Hx

snopt-interface/cppexamples/hs118.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9void hs118Hx (int *nnH, double x[], double Hx[], int *nState,
10 char cu[], int *lencu,
11 int iu[], int *leniu,
12 double ru[], int *lenru) {
13
14 for (int i = 0; i < 5; i++) {
15 Hx[3*i] = .0002*x[3*i];
16 Hx[3*i+1] = .0002*x[3*i+1];
17 Hx[3*i+2] = .0003*x[3*i+2];
18 }
19}
20
21/*--------------------------------------------------------------------*/
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected