Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in running the available examples #1

Open
ghost opened this issue Nov 3, 2016 · 2 comments
Open

Error in running the available examples #1

ghost opened this issue Nov 3, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 3, 2016

Hello,

I downloaded the available optragen toolbox, then I obtained the available snopt files with a student precompiled license.

why i try to run one of the available examples, bang bang control for example,
i get the following errors

Error using snopt (line 141)
Not enough input arguments.

Error in BangBangControl (line 76)
[x,F,inform] =
snopt(init',xlow,xupp,[0;nlp.LinCon.lb;nlp.nlb],[Inf;nlp.LinCon.ub;nlp.nub],'ocp2nlp_cost_and_constraint');

however when i check if matlab can actually find snopt by typing

exist('snopt','file')

ans =

 2

any idea how to resolve the not enough input arguments issue ? the results i get are attached in a picture

I am using your toolbox for motion planning of an autonomous underwater vehicle

Thank you
capture

@gnowzil
Copy link

gnowzil commented Nov 14, 2016

The SNOPT matlab interface has changed. The call to snopt should be:
snopt(x,xlow,xupp,xmul,xstate,F,Flow,Fupp,Fmul,Fstate,userfun);

Optragen doesn't have the xmul,xstate and F,Fmul,Fstate inputs. Add these input arrays and it should work. Arrays of zero will be fine, as long as the x* vectors and the F* vectors are the same lengths).

(I'll look into modifying the SNOPT interface to accept a call with empty vectors as input for the *mul and *state vectors -- but I can't remove them completely.)

@raktim
Copy link
Member

raktim commented Nov 14, 2016

Thanks Elizabeth.

Raktim Bhattacharya

Associate Professor
Director, Laboratory for Uncertainty Quantification (uqLab.github.iohttp://uqlab.github.io)
Aerospace Engineering, Electrical & Computer Engineering
Texas A&M University

Email: mailto:raktim@aero.tamu.edu raktim@tamu.edumailto:raktim@aero.tamu.edu
Phone: 979-862-2914

On Nov 14, 2016, at 2:07 PM, Elizabeth Wong <notifications@github.heygears.commailto:notifications@github.com> wrote:

The SNOPT matlab interface has changed. The call to snopt should be:
snopt(x,xlow,xupp,xmul,xstate,F,Flow,Fupp,Fmul,Fstate,userfun);

Optragen doesn't have the xmul,xstate and F,Fmul,Fstate inputs. Add these input arrays and it should work. Arrays of zero will be fine, as long as the x* vectors and the F* vectors are the same lengths).

(I'll look into modifying the SNOPT interface to accept a call with empty vectors as input for the *mul and *state vectors -- but I can't remove them completely.)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_uqLab_Optragen_issues_1-23issuecomment-2D260447126&d=CwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=u0RuNLXrfRCuWwRmNrqtRg&m=Lb2NJ6Su7YT5Zx3mhl8uhgps1b-I3mcN7YRFPY6AeLo&s=cNsOOgQFS39d4dvRnAOdpTtQx-ptwzIjizaVSnmJziQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANTSEAKiriAtthreOmZrThVwzeH-2D6d9Bks5q-2DL93gaJpZM4KoNKj&d=CwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=u0RuNLXrfRCuWwRmNrqtRg&m=Lb2NJ6Su7YT5Zx3mhl8uhgps1b-I3mcN7YRFPY6AeLo&s=ZTHBqROJpBc9pIKr_64nDRmgaU4g4o7WEUEz8Hajdg8&e=.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants