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 can I insert this objective function min W with its two constraints on Gurobi using Java? How do I initialise w?
I tried to initialise like this but it's wrong
GRBVar w = null;
GRBLinExpr obj = new GRBLinExpr();
obj.addTerm(1, w);
model.setObjective(obj);
model.set(GRB.IntAttr.ModelSense, GRB.MIN...
Paolo
Votes: 0
Answers: 1
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
XGBoost for precision
I'm using XGBoost for binary classification. The standard/default loss function (binary logistic) considers all classifications (both in the positive and negative classes) for performance.
All I care ...
Dex_Kivuli
Votes: 0
Answers: 0