Skip to content

Error when running toyCar in octave #42

@samlaf

Description

@samlaf

Hi, I am running toyCar's MAIN.m file, and get this error

error: pivot is zero
error: called from
    gjp at line 42 column 5
    cpiv_bard at line 76 column 4
    __lm_feasible__ at line 302 column 31
    fmincon at line 417 column 24
    directCollocation at line 95 column 33
    trapezoid at line 74 column 10
    optimTraj at line 180 column 24

I am wondering if this is due to me using octave, or if there is a fundamental bug happening.
Another "fix" I've had to do is to add

'GradObj', 'off',...
'GradConstr', 'off'

options in optimset in GetDefaultOptions.m. Otherwise directCollocation.m's line 26
flagGradObj = strcmp(Opt.nlpOpt.GradObj,'on');
was raising an error.

Not sure if this is also an issue due to octave or if it's actually an issue with the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions