34 SnoptAdapter snopt(ref);
39 snopt.setProbName(
"snopt");
40 snopt.setIntParameter(
"Major Print level", 1);
41 snopt.setIntParameter(
"Minor Print level", 1);
42 snopt.setIntParameter(
"Derivative option",
44 snopt.setIntParameter(
"Verify level ",
46 snopt.setIntParameter(
"Iterations limit", 200000);
47 snopt.setRealParameter(
"Major feasibility tolerance",
49 snopt.setRealParameter(
"Minor feasibility tolerance",
51 snopt.setRealParameter(
"Major optimality tolerance",
64 Cold, snopt.neF, snopt.n, snopt.ObjAdd, snopt.ObjRow,
66 snopt.A, snopt.neA, snopt.iGfun, snopt.jGvar, snopt.neG, snopt.xlow,
67 snopt.xupp, snopt.Flow, snopt.Fupp, snopt.x, snopt.xstate, snopt.xmul,
68 snopt.F, snopt.Fstate, snopt.Fmul, nS, nInf, sInf);
77 "ERROR: Snopt failed to find a solution. EXIT:" + std::to_string(EXIT) +
78 ", INFO:" + std::to_string(
status_) +
"\n";
79 throw std::runtime_error(msg);