BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
linglihe
Calcite | Level 5

Hi, all

I'm doing a multi objective optimization using Genetic algorithm, the only documentation I found is here:

http://support.sas.com/documentation/cdl/en/orlsoug/59688/HTML/default/viewer.htm#ga_sect65.htm

There are three other examples, but all about single object.

Is there an example of multi-objective somewhere I can use?

Any comment and suggestion is welcome. Thanks!

Lingli

1 ACCEPTED SOLUTION

Accepted Solutions
RobPratt
SAS Super FREQ

Try setting NOVALIDATE=3 on the PROC GA statement.

View solution in original post

4 REPLIES 4
RobPratt
SAS Super FREQ

The third example actually uses two objectives: the original quadratic objective and the constraint violation.

You might also be interested in the new OPTLSO procedure available in SAS 9.4 (SAS/OR 12.3):

http://support.sas.com/documentation/cdl/en/orlsoug/66102/HTML/default/viewer.htm#orlsoug_hplso_toc....

Multi-objective support in OPTLSO is planned for an upcoming release.

linglihe
Calcite | Level 5

Hi, Rob:

Thanks!

I'm pasting the SAS code from this example to SAS 9.2 editor:

http://support.sas.com/documentation/cdl/en/orlsoug/59688/HTML/default/viewer.htm#ga_sect69.htm

but I cannot run this example successfully, I see this error in log:

 

The statement was:

1 (555:7) call ReadCompare(selected,2,2, member2);

ERROR: Error reported in function 'ContinueFor' in statement number 16 at line 611 column 5.

The statement was:

1 (611:5) call ContinueFor(500);

ERROR: Execution terminating because of previous errors.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: There were 9 observations read from the data set WORK.LINCON.

NOTE: There were 13 observations read from the data set WORK.BOUNDS.

WARNING: The data set WORK.OUT may be incomplete. When this step was stopped there were 0

observations and 0 variables.

WARNING: Data set WORK.OUT was not replaced because this step was stopped.

NOTE: PROCEDURE GA used (Total process time):

real time 0.68 seconds

cpu time 0.56 seconds

Do you mind to help paste the code to your editor and run it, to see if there is a quick fix? Thanks!

Lingli

I also attached the code I pasted from the webpage.

RobPratt
SAS Super FREQ

Try setting NOVALIDATE=3 on the PROC GA statement.

linglihe
Calcite | Level 5

It worked, thanks! so it was a version issue.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2139 views
  • 3 likes
  • 2 in conversation