Patent ID: 8682589

Claim:
A method of producing fluid from a well, comprising: using a first sensor to determine a first fluid flow rate of a fluid from at least one production zone of the well corresponding to a first setting of at least one flow control device for controlling flow of the fluid from the at least one production zone into a production tubing in the well; using a second sensor to determine at least one chemical characteristic of the fluid from the at least one production zone; using a third sensor to determine a first injection rate of an additive that controls the chemical characteristic of the fluid from the at least one production zone, the additive injected at a downhole location; and determining a set of actions using a processor and a computer model that utilizes a plurality of inputs which include the determined first fluid flow rate, first injection rate and the at least one chemical characteristic of the fluid from the at least one production zone, wherein the set of actions provide performing a simulation for the effects of a second injection rate for the additive that maintains the at least one chemical characteristic of the fluid from the at least one production zone within a predetermined limit on a production rate of the well, and applying the second injection rate for additive when the simulated production rate is within a selected criteria.