OpenRules Platform

Decision Optimization

Zoo, Buses, and Kids

Use a compact constraint model to determine how many buses are needed to transport children to the zoo.

Zoo, Buses, and Kids illustration

Problem Description. This problem is offered by Alex Fleischer as follows:
300 kids need to travel to the London zoo. The school may rent 40 seats and 30 seats buses for 500 and 400 £. How many buses of each to minimize cost?” 

Implementation. Here is the problem Glossary:

image

Test Case:

image

Here is two main sub-decisions:

image

The following table defines unknown decision variables:

image

The next table posts the main problem constraint:

image

This table defines the optimization objective:

image

Here are the execution results:

image

THE END

Try Rule Solver

Build decision models that find the best answer.

Start with the free evaluation, then install Rule Solver and explore its optimization examples.