'BarrierParamUpdate' is not an option for FMINCON on only other PC's

6 次查看(过去 30 天)
Im currently working on a mpc based on a fmincon. The code is atm taking 50 seconds to predict a angle for laser forming.
When running the many times a day, i wanted to short'n it, and used this Matlab website:
It suggest:
Other options that affect the solution time include:
  • fmincon 'interior-point' algorithm — Try setting the BarrierParamUpdate option to 'predictor-corrector'.
On GOOGLE i searched for fmincon and openened the "help" page:
but in Matlab help there is no "BarrierParamUpdate option"
i made the option as followed:
options = optimoptions('fmincon',"ConstraintTolerance",1e-6,'BarrierParamUpdate','predictor-corrector');
This made my code runtime go down to only 25 seconds.
BUT HERES THE PROLEM
When my project mates is trying to open the code and run on their pc, it says an error called:
Error using optimoptions (line 115) 'BarrierParamUpdate' is not an option for FMINCON. A list of options can be found on the FMINCON documentation page.
Error in MPC (line 16) options = optimoptions('fmincon',"StepTolerance",1e-6,'BarrierParamUpdate', 'predictor-corrector');
Error in studentCode (line 140) [LP(i),n(i)] = MPC(S(i),OEV(i)); Error in TestAfStudentcode (line 5)
Where studentCode is our "main" that calls the MPC
So in conclusion, there is to errors:
  1. The website based help for fmincon is different from the app based help.
  2. The only works on my pc, even after cloning exact files to other pc
I know there is a lot of information, but i hope for help
  3 个评论
Gustav Villadsen
Gustav Villadsen 2021-12-9
Thank you, this solves one of the problems. Is there any way you can forward the error from different help descriptions on fmincon?
Im running 2021a on my pc, but dont see all the new functions added.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Refinement 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by