Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

Genetic algorithm, multi objective example

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

Genetic algorithm, multi objective example

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


Accepted Solutions
Solution
‎07-24-2013 02:32 PM
SAS Employee
Posts: 416

Re: Genetic algorithm, multi objective example

Try setting NOVALIDATE=3 on the PROC GA statement.

View solution in original post


All Replies
SAS Employee
Posts: 416

Re: Genetic algorithm, multi objective example

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.

New Contributor
Posts: 3

Re: Genetic algorithm, multi objective example

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.

Attachment
Solution
‎07-24-2013 02:32 PM
SAS Employee
Posts: 416

Re: Genetic algorithm, multi objective example

Try setting NOVALIDATE=3 on the PROC GA statement.

New Contributor
Posts: 3

Re: Genetic algorithm, multi objective example

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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