To solve such problems, the "Optimize" task in the Live Editor can be used. Since the solution in mapped to custom integers (e.g. 0, 50, 100), the problem is not going to be linear anymore. Following are the steps to solve this problem:
1) Open Live Editor.
2) In the "Insert" menu, select task.
3) In the search bar in the dropdown, type "optimize" and select the task that comes up.
4) Select the "problem-based" option in "Select approach".
5) This opens the "optimize" live task that looks like this
6) Create your optimization variable and define the goal of the problem from the dropdown.
7) In "Objective", select "local function" and click on "New".
8) On clicking "New", the following code appears allowing you to add your objective function.
9) You can create an array of possible integer solutions and map it here. This is an example of a simple objective function
This live task selects "ga solver" for this problem by default. You can find the explanation for this by clicking on the question mark beside it in the "Specify problem-dependent-solver options" section. You can try different functionalities and options in this live task for your optimization problem.