<reponame>Octeract/optimisation-for-noobz<filename>00-what-is-optimisation/00_code.py
from octeract import *

# Define the model
bob = Model()

# Define an objective function
bob.maximize("happiness_level")

# Set bounds for the decision variable
bob.set("happiness_level").between(0,100)

# Print the model
print(bob)

# Invoke the solver to get a solution
bob.global_solve()

from octeract import *

# Define the model
bob = Model()

# Define an objective function
bob.maximize("happiness_level")

# Set bounds for the decision variable
bob.set("happiness_level").between(0,100)

# Print the model
print(bob)

# Invoke the solver to get a solution
bob.global_solve()
# Define the model # Define an objective function # Set bounds for the decision variable # Print the model # Invoke the solver to get a solution