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

Method computeJac

snopt-interface/src/snoptProblem.cpp:326–346  ·  view source on GitHub ↗

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

Source from the content-addressed store, hash-verified

324
325/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
326int snoptProblemA::computeJac(int neF, int n, snFunA usrfunA,
327 double *x, double *xlow, double*xupp,
328 int *&iAfun, int *&jAvar, double *&A, int &neA,
329 int *&iGfun, int *&jGvar, int &neG) {
330 assert(initCalled == 1);
331
332 int inform, lenA, lenG, miniw, minrw;
333
334 lenA = n*neF;
335 lenG = n*neF;
336
337 if (memCalled == 0) { setWorkspace(neF, n, lenA, lenG); }
338
339 f_snjac(&inform, neF, n, usrfunA, x, xlow, xupp,
340 iAfun, jAvar, lenA, &neA, A,
341 iGfun, jGvar, lenG, &neG,
342 &miniw, &minrw, iu, leniu, ru, lenru,
343 iw, leniw, rw, lenrw);
344
345 return inform;
346}
347
348/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
349int snoptProblemA::solve(int starttype, int neF, int n, double ObjAdd,

Callers 1

NLP_interfaceFunction · 0.80

Calls 1

setWorkspaceFunction · 0.85

Tested by

no test coverage detected