Originally posted by: SystemAdmin
[jfk said:]
Hello,
1. if your variables are all integer, then I think, basically any quadratic programming model can be solved by CP. The only thing you have to do is put "using CP;" at the beginning of your code and run the respective runconfig.
2. while it seems to be a bit unusual to adjust the data to solve a given problem - like making the coat to match the button :-) -, making a matrix positive semidefinite, I think, is an opti problem on its own:
there are several characterization criterion for M to be positive semidefinite, see e.g.
http://en.wikipedia.org/wiki/Positive_semidefinite_matrixYou have to choose one of the criteria (e.g. the Syslvester criterion is very straightforward but computationally expensive). Then you have to take the given criterion (basically it will become a set of constraints) with variables for some or all of the elements in M - I suppose you want to be as close to the original matrix as possible -and solve the opti prb with minimizing the objective sum(i,j)(m[sub]i,j[/sub]-mvar[sub]i,j[/sub])[sup]2[/sup] where m[sub]i,j[/sub] are the original elements of the matrix M and mvar[sub]i,j[/sub] are the variables. if the mvar[sub]i,j[/sub] can be real than it is an NLP. But again if you choose for the variables of M to be integer then you can solve it by CP.
I hope it helps
cheers
#DecisionOptimization#MathematicalProgramming-General