WHAT I CHANGED FROM optim_size_control_direct (IN RED)
input.init.saved_veh_file='PARALLEL_defaults_in';
[a,b]=adv_no_gui('initialize',input);
end
dv_names={'fc_pwr_scale','mc_trq_scale','ess_module_num','ess_cap_scale','cs_charge_trq','cs_min_trq_frac','cs_off_trq_frac','cs_electric_launch_spd_lo','cs_electric_launch_spd_hi','cs_charge_deplete_bool'};
resp_names={'combined_mpgge'};
con_names={'delta_soc','delta_trace','vinf.accel_test.results.time(1)','vinf.accel_test.results.time(2)','vinf.accel_test.results.time(3)','vinf.grade_test.results.grade'};
% define the problem
cont_bool=0;
p_f='obj_fun_size_control';
p_c='con_fun_size_control';
x_L=[1.0,0.8,11,0.333,1, 0.05, 0.05, 0, 10, 0]';
x_U=[3.0,2.5,35,2.0,80.9, 1, 1, 15, 30, 1]';
To view this discussion on the web visit https://groups.google.com/d/msgid/adv-vehicle-sim/509f51e0-3e3d-4778-9836-c6501f7fbe5c%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "ADVISOR and adv-vehicle-sim Software Discussion Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adv-vehicle-sim/QLgx41a_Rdw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adv-vehicle-s...@googlegroups.com.
To post to this group, send email to adv-veh...@googlegroups.com.
Visit this group at http://groups.google.com/group/adv-vehicle-sim.
Hello again,Are you running with a clean checkout of Advisor? - Yes, I did a fresh download of your new code from the subversion. Also, I ask another question below and I tried running it on both the latest version of ADVISOR (on the subversion) and a copy from The Big Ladder site.
Also, have you reset your matlab path to the default - I am not sure what you mean by this, I change the matlab folder to the one with the new copy of advisor, if that is what you are talking about.
(re-)started the ADVISOR GUI at least once to add standard paths back (so that you're sure you're not accidentally pulling in older files still on your path)? - - Yes, I did this.
I have been looking further into this issue and I have run into some more errors.When I run the optimization code on my laptop (only Windows 8 machine) that is the only time that it executes (albeit still with the save issue), but I have tried to run the code on 4 other machines (three of which have the same version of Matlab (2013 a) and I get this error:Delta SOC Tolerance of 0.005 met.Number of runs: 2, ESS/Fuel Energy ratio: 0.45505 %, DeltaSOC: -0.0043353, Initial_SOC: 0.62636a =0b =cycle: [1x1 struct]
Error in adv_no_gui case {modify}:
Cell contents reference from a non-cell array object.
[adv_no_gui] going to keyboard -- type return to continue code or dbquit to exitK>>
Thank you for your help.Huck
Thanks you very much for the detailed response. I will definitely go through this and see if it works. I just wanted to mention that I got it working on Linux redhat.
Thanks again,
Huck
> --
> You received this message because you are subscribed to a topic in the Google Groups "ADVISOR and adv-vehicle-sim Software Discussion Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/adv-vehicle-sim/QLgx41a_Rdw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to adv-vehicle-s...@googlegroups.com.
> To post to this group, send email to adv-veh...@googlegroups.com.
> Visit this group at http://groups.google.com/group/adv-vehicle-sim.
> To view this discussion on the web visit https://groups.google.com/d/msgid/adv-vehicle-sim/df3d0ce8-443f-45e5-9669-4427de816ef7%40googlegroups.com.
Michael,
Michael,With regard to the default optimization implementation of the DIRECT algorithm that ADVISOR uses:1) Is it running the vehicle through a drive cycle?
2) Is it just running the vehicle through the acceleration tests and grade test?
3) If 1) is false and 2) is true, how can it determine a combine mpgge? I thought that this metric was only determined based off drive cycles.
It seems like 1) is false and 2) is true, because after I ran optimizations for the same vehicle but different drive cycles, I ended up with the same exact result for both optimizations. So, it seems that the optimization is independent of the drive cycle. If this is the case, how would you suggest that I optimize a vehicle for a given drive cycle?
Michael or Aishwrya,
In the case that you get some time to look into my issue a bit further, I have attached my constraints, my objective, and my code that orchestrates everything.
Thank you very much in advance and I will of course understand if you do not have time to look into this strange issue that I am getting.
All the best,
Huck
--
You received this message because you are subscribed to a topic in the Google Groups "ADVISOR and adv-vehicle-sim Software Discussion Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adv-vehicle-sim/QLgx41a_Rdw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adv-vehicle-s...@googlegroups.com.
To post to this group, send email to adv-veh...@googlegroups.com.
Visit this group at http://groups.google.com/group/adv-vehicle-sim.
To view this discussion on the web visit https://groups.google.com/d/msgid/adv-vehicle-sim/72ea10bf-b032-48de-b0ba-f13a0394b504%40googlegroups.com.
Michael,
Hello,
Thanks you for your efforts, I appreciate the help! Unfortunately, I am not really sure why it is not working. I tried to explain what I understand about my issue in my post. There is probably an error somewhere in either my constraints or my objective function that I cannot find.
Thanks again,
Huck
--
You received this message because you are subscribed to a topic in the Google Groups "ADVISOR and adv-vehicle-sim Software Discussion Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adv-vehicle-sim/QLgx41a_Rdw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adv-vehicle-s...@googlegroups.com.
To post to this group, send email to adv-veh...@googlegroups.com.
Visit this group at http://groups.google.com/group/adv-vehicle-sim.
To view this discussion on the web visit https://groups.google.com/d/msgid/adv-vehicle-sim/13b80387-d8a7-4943-a83f-99ce212888e1%40googlegroups.com.
Aishwarya,
A few more comments/questions:
b) I relaxed the acceleration times so they were well above:
<<< ACCELLERATION TEST RESULTS >>>
0-60 mph: 11.5 sec
40-60 mph: 6.28 sec
0-85 mph: 28.5 sec
Which are the acceleration times using mc_pwr_scale_MIN. I also set the delta_soc and delta_trace constraints to high values. This ensures that the grade is the thing that will cause it to fail (if anything).
c) I set the upper and lower bounds for the design variables to 0.2 and 0.1 (as shown in the graph. GLC solve should then select the center point and evaluate it to see if it is feasible ( that is 0.15). That is not a feasible point, but from 0.17 to 0.2 are and despite this it crashes. It actually passes back an error after the grade test ( and []) and then, even thought the constraints function appears to be able to handle that error, it stops the simulation.
- So this is a different error than I was getting before.
2) The second thing that I tried ( much less complicated ), was to simply take my original simulation with the parallel vehicle, that seems to work perfectly fine:
a) Get ride of all of the design variables except fc_pwr_scale
b) Let it range from 1 to 3
c) Look at one of the acceleration times that come out of the default configuration
d) Change my constraint so that the acceleration time in my constraints is less than that
- When I ran the simulation I got the same error that I had been getting with the series vehicle.
What I am thinking:
1) I could scale up the vehicle before the optimization so that it meets the initial performance requirements. I dislike this idea, way too much scaling and I feel that I would be assuming too much. By the way, I feel like it is a pretty bad assumption that we can scale the efficiency maps by a factor of 3. I do feel like they scale linearly this far, but I would like to hear your input on this one Michael. I usually scale mine for 0.75 to 1.25, but I have had trouble finding any papers on any validation for these ranges.
2) I could try another optimization technique. Any suggestions? I was thinking Genetic Algorithm perhaps.
3) I could relax my constraints, mostly the acceleration times, they are not too far off, but I feel like this is the wrong way to go as well. The optimizer should not dictate performance.
4) I would like to use GLC solve, I feel like I was very close to getting some preliminary results, but I don't want to spend much more time fiddling with it.
Michael please feel free to comment if you would like, I do not expect you to go through this entire thing. Although I do tremendously appreciate and look forward to your feedback, I mostly put all of this information up here because I saw that this particular post is getting a lot of interest in the ADVISOR community and I am happy to contribute anything that might help someone else.
Thanks,
Huck