python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I insert this objective function with these constraints on gurobi using java?
obj function: min |Xij*Pij - Xik*Pik| (i=1..10, j=1..4, k=5..8)
constraints:
Xij\<=Tij ∀i,j;
ΣXij*Cij\<=Bi ∀i;
ΣXij*Cij\>=0.02ΣBi ∀j;
ΣXij*Pij\>=S ∀i,j;
I try this but it do...
Paolo
Votes: 0
Answers: 0
How do I insert the objective function with absolute value in Gurobi using Java language?
My objective function is like min|XyPiy-XkPik| i=1...10, j=1...4, k=5...8
I tried to write the code like this, but I don't know what to do with the module
GRBLinExpr obj = new GRBLinExpr();
for(int y=...
Paolo
Votes: 0
Answers: 1
Minimizing L1 distances using ortools
I'm trying to place rectangular boxes into a larger box. Some of these boxes are connected by wires. I want to minimize the L1 distance of these wires. This requires taking the absolute value of varia...
Björn Lindqvist
Votes: 0
Answers: 1
Differentiating absolute value functions using sympy in python won't return an answer
I'm trying to find the maximum points of curvature of a tanh(x) function, but the mathematical definition for curvature contains an absolute value function. I've specified that x must be real-valued w...
jay
Votes: 0
Answers: 1