Hello,
I'm trying to use the parameter optimization feature in FEBio2.8.5. I've found an example case in the forum, under post:
When I tried to run this example with: -i CCsrlxFit3.feb -s CCsrlxOpt3.feb. An error occurred with messages:
Reading file CCsrlxFit3.feb ...SUCCESS!
FATAL ERROR: invalid value "constrained levmar" for attribute "Options.type" (line 4)
Failed initializing the task: optimize
I went back to check the source code. In the file "/FEBioOpt/FEOptimizeInput.cpp" Line 158-168 shows:
if (szt == 0) popt = new FELMOptimizeMethod;
else
{
if (strcmp(szt, "levmar") == 0) popt = new FELMOptimizeMethod;
else if (strcmp(szt, "powell") == 0) popt = new FEPowellOptimizeMethod;
else if (strcmp(szt, "scan") == 0) popt = new FEScanOptimizeMethod;
#ifdef HAVE_LEVMAR
else if (strcmp(szt, "constrained levmar") == 0) popt = new FEConstrainedLMOptimizeMethod;
#endif
else throw XMLReader::InvalidAttributeValue(tag, "type", szt);
}
Where seems the "HAVE_LEVMAR" is required to active "constrained levmar".
I've attached both input files here:
CCsrlxOpt3.feb
CCsrlxFit3.feb
I wonder if the problem comes from the input file or the code itself.
Thank you ahead for any help
Best,
Joe
I'm trying to use the parameter optimization feature in FEBio2.8.5. I've found an example case in the forum, under post:
When I tried to run this example with: -i CCsrlxFit3.feb -s CCsrlxOpt3.feb. An error occurred with messages:
Reading file CCsrlxFit3.feb ...SUCCESS!
FATAL ERROR: invalid value "constrained levmar" for attribute "Options.type" (line 4)
Failed initializing the task: optimize
I went back to check the source code. In the file "/FEBioOpt/FEOptimizeInput.cpp" Line 158-168 shows:
if (szt == 0) popt = new FELMOptimizeMethod;
else
{
if (strcmp(szt, "levmar") == 0) popt = new FELMOptimizeMethod;
else if (strcmp(szt, "powell") == 0) popt = new FEPowellOptimizeMethod;
else if (strcmp(szt, "scan") == 0) popt = new FEScanOptimizeMethod;
#ifdef HAVE_LEVMAR
else if (strcmp(szt, "constrained levmar") == 0) popt = new FEConstrainedLMOptimizeMethod;
#endif
else throw XMLReader::InvalidAttributeValue(tag, "type", szt);
}
Where seems the "HAVE_LEVMAR" is required to active "constrained levmar".
I've attached both input files here:
CCsrlxOpt3.feb
CCsrlxFit3.feb
I wonder if the problem comes from the input file or the code itself.
Thank you ahead for any help
Best,
Joe
Comment