In one embodiment, a method includes identifying at a network device, metrics associated with constraints of an optimization problem, receiving values for the metrics from a stream reasoner, obtaining an initial solution of the optimization problem from a linear programming solver based on the values of the metrics, and instructing the linear programming solver to calculate a new solution to the optimization problem when the stream reasoner indicates that the constraints of the optimization problem are violated. An apparatus and logic are also disclosed herein.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method comprising: identifying at a network device, metrics associated with constraints of an optimization problem; receiving at the network device, values for the metrics from a stream reasoner; obtaining at the network device, an initial solution of said optimization problem from a linear programming solver based on said values of the metrics; and instructing at the network device, the linear programming solver to calculate a new solution to said optimization problem when the stream reasoner indicates that the constraints of said optimization problem are violated. 2. The method of claim 1 further comprising generating a filter to install in the stream reasoner for use in identifying when the constraints of said optimization problem are violated. 3. The method of claim 2 wherein the filter is generated based on a model of the constraints and said initial solution of said optimization problem. 4. The method of claim 1 wherein identifying the metrics comprises examining a network ontology. 5. The method of claim 1 further comprising instructing the stream reasoner to monitor incoming data streams providing temporal readings of the metrics. 6. The method of claim 1 wherein said values of the metrics vary over time based on a state and condition of a network or compute infrastructure. 7. The method of claim 1 wherein the stream reasoner comprises a SPARQL (SPARQL Protocol and RDF (Resource Description Framework) Query Language) engine. 8. The method of claim 1 further comprising programming the LP solver based on an optimization model in a network ontology. 9. The method of claim 1 wherein said optimization problem comprises foglet assignment to fog nodes. 10. An apparatus comprising: a processor configured to identify metrics associated with constraints of an optimization problem, process values for the metrics received from a stream reasoner, obtain an initial solution of said optimization problem from a linear programming solver based on said values of the metrics, and instruct the linear programming solver to calculate a new solution to said optimization problem when the stream reasoner indicates that the constraints of said optimization problem are violated; and memory for storing the metrics and the constraints of said optimization problem. 11. The apparatus of claim 10 wherein the processor is further configured to generate a filter to install in the stream reasoner for use in identifying when the constraints of said optimization problem are violated. 12. The apparatus of claim 11 wherein the filter is generated based on a model of the constraints and said initial solution of said optimization problem. 13. The apparatus of claim 10 wherein identifying the metrics comprises examining a network ontology. 14. The apparatus of claim 10 wherein the processor is further configured for instructing the stream reasoner to monitor incoming data streams providing temporal readings of the metrics. 15. The apparatus of claim 10 wherein said values of the metrics vary over time based on a state and condition of a network or compute infrastructure. 16. The apparatus of claim 10 wherein the stream reasoner comprises a C-SPARQL (Continuous SPARQL Protocol and RDF (Resource Description Framework) Query Language) engine. 17. The apparatus of claim 10 wherein the processor is further configured for programming the LP solver based on an optimization model in a network ontology. 18. Logic encoded on one or more non-transitory computer readable media for execution and when executed on a processor operable to: identify metrics associated with constraints of an optimization problem; process values for the metrics received from a stream reasoner; obtain an initial solution of said optimization problem from a linear programming solver based on said values of the metrics; and instruct the linear programming solver to calculate a new solution to said optimization problem when the stream reasoner indicates that the constraints of said optimization problem are violated. 19. The logic of claim 18 wherein the logic is further operable to generate a filter to install in the stream reasoner for use in identifying when the constraints of said optimization problem are violated. 20. The logic of claim 18 wherein the logic is further operable to program the LP solver based on an optimization model in a network ontology.