Unfortunately, there's only so much help we can provide without being able to see (and execute) your code. If you're worried about sharing the code in this public forum, there are ways through SAS Technical Support where the code can be shared in a more private way that would allow us to provide more support.
In any case, I'm wondering if you've tried executing your objfunRA10 FCMP function outside of PROC OPTLSO. If you're not aware, you can execute any FCMP function with a simple data step. You just need to provide values for the function's arguments and then call the function. This would allow us to know if the function you have specified as the objective for PROC OPTLSO is actually working as intended. You can see an example of how to execute a FCMP function from data step here:
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=proc&docsetTarget=n05uh9btv63kfkn11o7kml5tnhji.htm&locale=en
--Steve
... View more