MatthewPeterKelly / MatthewPeterKelly/OptimTraj

Unrecognized field name

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
703
Forks
219
PR merge metrics
No merged PRs in 30d

Description

I've just cloned the repository and tried running a few of the demos, but I keep getting the following error:

WARNING: options.nlpOpt.GradConstr is not a valid option
WARNING: options.nlpOpt.GradObj is not a valid option
WARNING: options.nlpOpt.DerivativeCheck is not a valid option
WARNING: options.nlpOpt.GradConstr is not a valid option
WARNING: options.nlpOpt.GradObj is not a valid option
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running OptimTraj, iteration 1
  -> Transcription via trapezoid method, nGrid = 10
Unrecognized field name "GradObj".

Error in directCollocation (line 26)
flagGradObj = strcmp(Opt.nlpOpt.GradObj,'on');

Error in trapezoid (line 74)
    soln = directCollocation(problem);

Error in optimTraj (line 180)
            soln(iter) = trapezoid(P);

Error in MAIN (line 167)
soln = optimTraj(problem);

That's specifically the printout from the gradientsTutorial.
I've checked that problem.options(1).nlpOpt.GradObj is set to on before being passed from Main.m > optimTraj.m > trapezoid.m > directCollocation.m. I also haven't modified the files in any way. I just opened Main.m in the demo folder and hit run. Is anyone else experiencing this or am I missing something?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the gradientsTutorial demo from Main.m and trace the reported call path through optimTraj.m, trapezoid.m, and directCollocation.m. Check how problem.options(1).nlpOpt is passed between these entry points, then verify the demo completes without the invalid-option warnings or the unrecognized GradObj error.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.