Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about objective-function

Read more about objective-function

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - objective-function

What should I do abs in objectfunction

I want to find an expression with an absolute value as an objective function in gurobi. Specifically, it is an expression such as ∑_j ∈ J | ∑_i ∈ P x_ij-d_i *t_i |. The variable is x_ij, and the other...
test-img

炎天下修羅

abstract

gurobi

objective-function

Votes: 0

Answers: 1

Latest Answer

You could add additional helper variables and then use Gurobi's general abs constraints: import gurobipy as gp from gurobipy import quicksum, GRB # ...your model and sets W, P, J... helper1 = model....
test-img

joni

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved