New
Hexaly 13.0 is out!
Check it out
x
Hexaly
×
Products
Hexaly Optimizer
Mathematical optimization solver
Hexaly Studio
No-code mathematical optimization
Hexaly Modeler
Low-code mathematical optimization
Hexaly Cloud
Mathematical optimization as a service
Resources
Benchmarks
Examples
Customers
Pricing
Try for free
Contact us
Solutions
Route Optimization
Production Scheduling & Blending
Supply Chain Network Design
Workforce Scheduling & Routing
Simulation Optimization
Professional Services
Contact us
Customers
Developers
Get started
Installation & licensing
Quick start guide
Modeling features
Technical features
Guidelines
Example tour
APIs
Hexaly Modeler Reference
Python API Reference
C++ API Reference
C# API Reference
Java API Reference
Download
Doc center
Blog
Latest articles
Philippe Laborie presents Hexaly at the Scheduling Seminar
How The Grain solves production scheduling problems in minutes with Hexaly
Meet Hexaly at 2024 INFORMS Annual Meeting
Hexaly vs Gurobi on the K-Means Clustering Problem (MSSC)
Hexaly, Gurobi, CP Optimizer on the Simple Assembly Line Balancing Problem (SALBP)
Benchmarks
Customer stories
Announcements
Tutorials
Events
All articles
Company
About
Team
Join Us
Login
Contact us
Contact us
Login
Open menu drawer
This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the
latest stable release
.
LocalSolver
Installation & licensing
Installation on Windows
System requirements
Installation
Licensing for: Free Trial, Free Academic, Desktop or Server licenses
Licensing for: Floating or Site licenses
Alternative license locations
Testing
Uninstallation
Installation on Linux
System requirements
Installation
Licensing for: Free Trial, Free Academic, Desktop or Server licenses
Licensing for: Floating or Site licenses
Alternative license locations
Testing
Uninstall LocalSolver
Installation on macOS
System requirements
Installation
Licensing for: Free Trial, Free Academic, Desktop or Server licenses
Licensing for: Floating or Site licenses
Alternative license locations
Testing
Uninstall LocalSolver
Quick start guide
Quick tour of LocalSolver’s modeler
Solving your first model
Mathematical modeling features
Programming style
Built-in variables and functions
Quick tour of LocalSolver’s APIs
Solving your first model in Python
Solving your first model in C++
Solving your first model in C#
Solving your first model in Java
Step by step
Modeling principles
Solving your first business problem
How to migrate from MIP to LSP?
Advanced features
Setting an initial solution
Infeasibility and inconsistency
Analyzing inconsistencies
At operator
The 1-dimensional at operator
The multi-dimensional at operator
Jagged arrays
Pitfalls
Piecewise operator
List and set variables
Creation operator
Setting and retrieving values
Operators on lists and sets
Operators specific to lists
Modeling with lists
Modeling with sets
Lambda expressions
Ranges
Lambda functions
Applying a lambda function to a range
External functions
Principles
Example
Pitfalls
Black-Box Optimization
Black-Box optimization in Python
Black-Box optimization in C++
Black-Box optimization in .NET
Black-Box optimization in Java
Callbacks and events
Modeling guide for routing problems
The Traveling Salesman Problem (TSP)
The Prize-Collecting Traveling Salesman Problem (PCTSP)
The Capacitated Vehicle Routing Problem (CVRP)
The Prize-Collecting Capacitated Vehicle Routing Problem (PCCVRP)
The Capacitated Vehicle Routing Problem with Time-Windows (CVRPTW)
CVRP with preassignments
The Pickup and Delivery Problem (PDVRP)
CVRPTW with minimization of waiting time
TSP with draft limits (TSPDL)
Other routing problems
LSP Reference Manual
Syntax and lexical analysis
Global structure
Encoding
Comments
Identifiers
Keywords
Literals
Values and types
Standard & common types
Other types
Variables
Global variables
Local variables
Memory management
Expressions
Arithmetic expressions
Relational expressions
Logical expressions
Conditional (ternary) expressions
Indexed expressions
Member expressions
Type related expressions
Operator precedence & associativity
Map declaration
Statements
Assignment statements
If statements
For statements
While/do-while statements
Continue statement
Break statement
Try-catch statement
Throw statement
Contraint/minimize/maximize statements
Functions
Function definition
Return statement
Function call
Variadic function call
Function manipulations
Lambda and closures
Command line
Standard library
Builtin functions and variables
String module
Map module
I/O module
Charset module
Random module
Date/time module
Appendix
BNF Syntax
Example tour
Toy
Principles learned
Problem
Program
Knapsack
Principles learned
Problem
Program
P-median
Principles learned
Problem
Data
Program
Branin function
Principles learned
Problem
Program
Optimal bucket
Principles learned
Problem
Program
Smallest circle
Principles learned
Problem
Data
Program
Max cut
Principles learned
Problem
Data
Program
Social golfer
Principles learned
Problem
Data
Program
Car sequencing
Principles learned
Problem
Data
Program
Steel mill slab design
Principles learned
Problem
Data
Program
K-means
Principles learned
Problem
Data
Program
Traveling salesman problem
Principles learned
Problem
Data
Program
Known optimal solutions
Quadratic assignment problem
Principles learned
Problem
Data
Program
Flowshop
Principles learned
Problem
Data
Program
Bin packing
Principles learned
Problem
Data
Program
JobShop
Principles learned
Problem
Data
Program
Vehicle routing problem
Principles learned
Problem
Data
Program
Routing with time windows
Principles learned
Problem
Data
Program
Pick-up and delivery with time windows
Principles learned
Problem
Data
Program
Aircraft landing
Principles learned
Problem
Data
Program
Movie shoot scheduling
Principles learned
Problem
Data
Program
Python API Reference
LocalSolver Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSArray Class
Summary
Instance methods
Special operators and methods
LSBlackBoxArgumentValues Class
Summary
Instance methods
Special operators and methods
LSBlackBoxContext Class
Summary
Instance methods
Instance attributes
LSCollection Class
Summary
Instance methods
Special operators and methods
LSExpression Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSExternalArgumentValues Class
Summary
Instance methods
Special operators and methods
LSExternalContext Class
Summary
Instance methods
Instance attributes
LSInconsistency Class
Summary
Instance methods
Special operators and methods
LSModel Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSParam Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSPhase Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSSolution Class
Summary
Instance methods
Instance attributes
LSStatistics Class
Summary
Instance methods
Instance attributes
Special operators and methods
LSVersion Class
Summary
Instance methods
Instance attributes
LSError Class
Summary
Instance attributes
Special operators and methods
LSCallbackType Enumeration
LSErrorCode Enumeration
LSObjectiveDirection Enumeration
LSOperator Enumeration
LSSolutionStatus Enumeration
LSState Enumeration
C++ API Reference
LocalSolver Class
Functions
LSArray Class
Functions
LSBlackBoxArgumentValues Class
Functions
LSBlackBoxContext Class
Functions
LSCollection Class
Functions
LSExpression Class
Functions
LSExternalArgumentValues Class
Functions
LSExternalContext Class
Functions
LSInconsistency Class
Functions
LSModel Class
Functions
LSParam Class
Functions
LSPhase Class
Functions
LSSolution Class
Functions
LSStatistics Class
Functions
LSVersion Class
Public Static Functions
LSException Class
Functions
LSBlackBoxFunction Interface
Functions
LSCallback Interface
Functions
LSExternalFunction Interface
Functions
LSCallbackType Enumeration
LSErrorCode Enumeration
LSObjectiveDirection Enumeration
LSOperator Enumeration
LSSolutionStatus Enumeration
LSState Enumeration
C# API Reference
LocalSolver Class
Summary
Instance methods
LSArray Class
Summary
Instance methods
LSBlackBoxArgumentValues Class
Summary
Instance methods
LSBlackBoxContext Class
Summary
Instance methods
LSCollection Class
Summary
Instance methods
Overloaded operators and indexers
LSException Class
Summary
Instance methods
LSExpression Class
Summary
Instance methods
Overloaded operators and indexers
LSExternalArgumentValues Class
Summary
Instance methods
LSExternalContext Class
Summary
Instance methods
LSInconsistency Class
Summary
Instance methods
LSModel Class
Summary
Instance methods
LSParam Class
Summary
Instance methods
LSPhase Class
Summary
Instance methods
LSSolution Class
Summary
Instance methods
LSStatistics Class
Summary
Instance methods
LSVersion Class
Summary
Static methods
LSBlackBoxFunction Delegate
LSCallback Delegate
LSLambdaFunction Delegate
LSExternalFunction Delegate
LSCallbackType Enumeration
LSErrorCode Enumeration
LSObjectiveDirection Enumeration
LSOperator Enumeration
LSSolutionStatus Enumeration
LSState Enumeration
Java API Reference
Changelog
LocalSolver 9.5
External Functions
Black-box optimization
Lambda Functions
API Changes
LocalSolver 9.0
LocalSolver 8.5
API Changes
LocalSolver 8.0
API Changes
LocalSolver 7.5
API Changes
LocalSolver 7.0
API Changes
LocalSolver 6.5
LocalSolver 6.0
API Changes
LocalSolver
Docs
»
C++ API Reference
»
LSObjectiveDirection Enumeration
LSObjectiveDirection Enumeration
¶
enum
localsolver
::
LSObjectiveDirection
¶
Objective directions.
See:
LSModel::addObjective(LSExpression*, LSObjectiveDirection)
Minimization.
Maximization.