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

Function sqWorkspace

snopt-interface/src/sqopt_cwrap.c:357–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
356
357void sqWorkspace(sqProblem* prob, int m, int n,
358 int neA, int ncObj, int nnH) {
359 int miniw, minrw, inform;
360
361 assert(prob->initCalled == 1);
362
363 f_sqmem(&inform, m, n, neA, ncObj, nnH,
364 &miniw, &minrw,
365 prob->iw, prob->leniw, prob->rw, prob->lenrw);
366
367 if (miniw > prob->leniw) { reallocIQ(prob, miniw); }
368 if (minrw > prob->lenrw) { reallocRQ(prob, minrw); }
369
370 prob->memCalled = 1;
371}
372
373/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
374

Callers 2

solveQFunction · 0.85
sqoptFunction · 0.85

Calls 2

reallocIQFunction · 0.85
reallocRQFunction · 0.85

Tested by

no test coverage detected