StevenGardner Tracker
https://communities.sas.com/kntur85557/tracker
StevenGardner TrackerMon, 15 Apr 2024 21:13:17 GMT2024-04-15T21:13:17ZRe: PROC OPTLSO algorithm problems
https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTLSO-algorithm-problems/m-p/706107#M3252
<P>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.</P>
<P> </P>
<P>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: </P>
<P> </P>
<P><A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=proc&docsetTarget=n05uh9btv63kfkn11o7kml5tnhji.htm&locale=en">https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=proc&docsetTarget=n05uh9btv63kfkn11o7kml5tnhji.htm&locale=en</A></P>
<P> </P>
<P>--Steve</P>Tue, 15 Dec 2020 20:11:27 GMThttps://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTLSO-algorithm-problems/m-p/706107#M3252StevenGardner2020-12-15T20:11:27ZRe: PROC OPTLSO algorithm problems
https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTLSO-algorithm-problems/m-p/704848#M3248
<P>Hello Andrew,</P>
<P> </P>
<P>As for your first question, the FCMP warning messages definitely seem suspicious. I'm not a FCMP expert but it seems as if there are many different instances of the 'objfunRA' function in multiple packages (GA5, GA10, GA30). Also, the fact that they code is warning you about the 'objfunRA' function makes me worried that it's actually looking for that function and not the 'objfunRA10' function that you state is your desired choice. In the 'objdata' data set, are you specifying 'objfunRA' or 'objfunRA10' as your objective function? Obviously, if you could share all the code it would be much easier to see the full picture of what's happening.</P>
<P> </P>
<P>And as far as your second question goes, it is definitely strange that you are seeing no output from OPTLSO. I wonder if the confusion about which FCMP objective function to use is preventing OPTLSO from doing any optimization. If we can resolve the FCMP function warnings, I suspect that the OPTLSO behavior might change.</P>
<P> </P>
<P>And while I have your attention, I'd like to point out that you can also access the same derivative-free (blackbox) solver from PROC OPTMODEL by using the 'solve with blackbox' solver option. PROC OPTMODEL provides an easier-to-use and more intuitive interface for defining your optimization problem. You can learn more about OPTMODEL here: </P>
<P> </P>
<P><A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=casmopt&docsetTarget=casmopt_lsosolver_toc.htm&locale=en">https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=casmopt&docsetTarget=casmopt_lsosolver_toc.htm&locale=en</A></P>
<P> </P>
<P>Thanks!</P>
<P> </P>
<P>--Steve </P>Wed, 09 Dec 2020 19:48:29 GMThttps://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTLSO-algorithm-problems/m-p/704848#M3248StevenGardner2020-12-09T19:48:29ZRe: OPTMODEL : Blackbox Solver
https://communities.sas.com/t5/Mathematical-Optimization/OPTMODEL-Blackbox-Solver/m-p/704285#M3245
<P>There are some strategies that might help find feasible solutions in this case. It would be much easier to know which strategies might help if I could see your code and understand exactly what type of problem you're trying to solve. Is there any way you could share your code? </P>
<P> </P>
<P>In any case, the black-box solver should always attempt to find feasible solutions before trying to improve the objective value. It seems as if it was never able to find any feasible solutions in your case. But again, it's hard to really know what's going on without more specific information about your setup.</P>Mon, 07 Dec 2020 21:12:58 GMThttps://communities.sas.com/t5/Mathematical-Optimization/OPTMODEL-Blackbox-Solver/m-p/704285#M3245StevenGardner2020-12-07T21:12:58ZRe: Proc GA macro calls
https://communities.sas.com/t5/Mathematical-Optimization/Proc-GA-macro-calls/m-p/630618#M3015
<P>It's true that you can't execute SAS procedures directly from within your PROC GA objective function. The key is to create a macro that calls the procedures you wish to execute. Then, in your objective function definition you can call the macro with the 'run_macro' function. </P>
<P> </P>
<P>The following SGF paper from 2013 demonstrates how to use run_macro from within a function definition:<A href="https://support.sas.com/resources/papers/proceedings13/033-2013.pdf" target="_blank">https://support.sas.com/resources/papers/proceedings13/033-2013.pdf</A></P>Mon, 09 Mar 2020 13:01:28 GMThttps://communities.sas.com/t5/Mathematical-Optimization/Proc-GA-macro-calls/m-p/630618#M3015StevenGardner2020-03-09T13:01:28ZRe: Inconsistency in PROC GA documentation?
https://communities.sas.com/t5/Mathematical-Optimization/Inconsistency-in-PROC-GA-documentation/m-p/279339#M1391
<P>Yes you are correct, this is an inconsistency in the documentation. I apologize for the confusion.</P>
<P> </P>
<P>The text description in the documentation should read as follows:</P>
<P> </P>
<P><STRONG>"Next, the Initialize call specifies default initialization (random sequences) and a population size of <FONT color="#FF0000">200</FONT>. The ContinueFor call specifies a run of <FONT color="#FF0000">140 </FONT>iterations."</STRONG></P>
<P> </P>
<P>This error will be fixed in the next release of the PROC GA documentation.</P>Wed, 22 Jun 2016 14:14:37 GMThttps://communities.sas.com/t5/Mathematical-Optimization/Inconsistency-in-PROC-GA-documentation/m-p/279339#M1391StevenGardner2016-06-22T14:14:37Z