# Setting up Objective function for CQM

I have previoulsy used BQM model for computation for problems. However I want to stup the same problem as an CQM by expressingthe cnstraints explicitly and not introducing them into the objective as penalties, nd also change the type of variables to 'REAL".

However I am not sure how to construct the objectvie function, as in CQM we don't have methods like : add_quadratic_from , ```add_linear_from``` , etc. as it dos in case of BQMs.

Can someone help me on this ?

## Comments

Tanvi M(Report)There are two methods to add an objective function to a CQM object.

You might also find the following resources useful to get started with the CQM solver:

Please sign in to leave a comment.