Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Continuous Domain Tutorial Problem #68

Closed
silgon opened this issue May 29, 2015 · 2 comments
Closed

Continuous Domain Tutorial Problem #68

silgon opened this issue May 29, 2015 · 2 comments

Comments

@silgon
Copy link

silgon commented May 29, 2015

Hello guys, I was just trying to run the continuous time example code. At some point I know it was working, I tested it like a month ago, but I had to format my computer, then I tried again with the github version and it's not working. Here's the important information while compiling.

ContinuousDomainTutorial.java:58: error: qualified new of static class
        TerminalFunction tf = mcGen.new ClassicMCTF();
                              ^
ContinuousDomainTutorial.java:95: error: qualified new of static class
        TerminalFunction tf = mcGen.new ClassicMCTF();
                              ^
ContinuousDomainTutorial.java:145: error: cannot find symbol
        ip.actionNoise = 0.;
          ^
  symbol:   variable actionNoise
  location: variable ip of type InvertedPendulum
3 errors
@silgon silgon changed the title Continuous Domain Continuous Domain Tutorial Problem May 29, 2015
@jmacglashan
Copy link
Owner

HI,

I'm guessing you just updated? Last week some changes were made to make Domain generators reusable with new physics parameters without affecting previously generated domains created from the same generator object. One of the consequences of that is that ClassicMCTF is now a static class and physics parameters for the domain are wrapped within an object. I'll be updating the tutorials shortly, but here is how the code should change:

TerminalFunction tf = new MountainCar.ClassicMCTF();
ip.physParams.actionNoise = 0.;

@silgon
Copy link
Author

silgon commented May 29, 2015

Yeah, that was it, it solved my problem, thanks =)

@silgon silgon closed this as completed May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants