Dynamic Convex Weight Vector Optimization for Cross Border Multi Component Raw Material Baskets
Dynamic convex weight vector optimization balances raw material baskets by recalculating landed costs against chemical bounds, tariff frictions, and assay penalties.

Blend
Chemical assay bounds govern the physical substitution limits of metallic charge inputs long before procurement algorithms price them out. In operations like precursor cathode active material synthesis or stainless steel smelting, input baskets run under unforgiving stoichiometric targets. Melters balance primary refined metals, intermediate salts, and scrap acquired across contract and spot markets, but furnace physics sets hard boundaries: trace contamination caps, bulk density, and thermal reaction behavior restrict how much of any single feed the melt can tolerate.

Chemical Bounds and Feedstock Impurity Limits
Smelter feed parameters place strict ceilings on deleterious elements. Sulfur, phosphorus, carbon, and tramp metals define fixed boundaries in the charge matrix. Class I nickel cut cathode or briquettes, ferronickel, and mixed hydroxide precipitate behave very differently in the furnace, directly shifting slag volumes and power draw during the heat.
When buyers load up on cheaper, lower-grade intermediates to take advantage of spot spreads, downstream operations absorb the cost through heavier flux additions and prolonged tap-to-tap times.

Substitution Thresholds across Alternative Charge Inputs
Physical form alone can rule out an otherwise cheap feedstock. Fine powders choke gas permeability in shaft furnaces, while heavy sow and pig require significant thermal input to break down. Sourcing teams balance the purchase discount of off-spec or non-standard material against lost throughput, evaluating potential substitutes against baseline plant yields.
| Input Component | Primary Element Grade | Max Impurity Limit | Physical Form | Baseline Spot Price (USD/t) |
|---|---|---|---|---|
| Class I Nickel Briquettes | 99.8% Ni | 0.01% S, 0.005% P | Briquette | 16,450 |
| Ferronickel (FeNi) | 20.0% Ni | 0.04% S, 0.030% P | Shot / Pig | 14,800 (Ni contained) |
| Mixed Hydroxide Precipitate (MHP) | 38.0% Ni | 0.15% S, 0.020% Mn | Wet Filter Cake | 12,900 (Ni contained) |
| Nickel Sulfate Hexahydrate | 22.3% Ni | 0.001% Fe, 0.001% Cu | Crystalline Powder | 17,200 (Ni contained) |
Ignoring impurity ceilings in the linear program risks refractory wear, off-grade tappings, and re-melting cycles whose costs rapidly erase any front-end savings on the raw charge.

Solver
Raw material cost minimization relies on quadratic programming to enforce mass conservation while bounding individual chemical constituents. The solver resolves a dynamic weight vector representing the exact proportion of each available lot in the total charge. The objective function balances delivered unit cost against the price variance of the underlying commodities.

Objective Function Formulation under Market Volatility
Accounting for market exposure requires mapping price co-variances into a positive semi-definite matrix. The optimizer solves for weights that temper landed costs against procurement risk, pulling pricing directly from exchange feeds and spot assessments.
Convexity breaks the moment non-linear impurity penalties introduce non-convex step functions into the primary cost matrix.
The loss function incorporates invoice pricing, ocean freight, and expected metallurgical processing penalties. Treating this surface as convex guarantees a single mathematical optimum for any given set of market quotes and plant tolerances.

Linear Inequality Bounds for Risk Mitigation
Risk parameters place upper bounds on supplier concentration and regional exposure. The optimization matrix reflects real vendor constraints, including plant capacities, lead times, and contractual volume minimums.
- Mass Balance Equivalence enforces that the sum of all individual weight vector components exactly equals unity, maintaining total charge mass.
- Chemical Stoichiometry Bounds constrain elemental fractions to remain within verified laboratory metallurgical limits.
- Supplier Allocation Ceilings cap individual vendor volume shares to prevent counterparty over-exposure during supply disruptions.
- Geographic Concentration Floor sets minimum regional diversification percentages to comply with trade agreement origin rules.
Regional transport bottlenecks can prevent delivery of contracted impurity specifications under short-notice weight adjustments.

Border
Imported material crosses changing tariff schedules, emissions duties, and terminal fees that alter delivered unit economics. Finding the true landed cost requires applying local friction factors directly to FOB port quotes. Sourcing models that evaluate feedstock strictly at the origin port fail as soon as customs entries and border tariffs post to the ledger.

Tariff Differentials and Carbon Tax Adjustments
Preferential trade agreements apply uneven rates depending on certified rules of origin. Under the European Union Carbon Border Adjustment Mechanism, embedded emissions add a direct financial liability to imported metallic units. Because these carbon intensity factors reflect the origin grid’s power mix and smelter technology, border adjustments vary significantly by country.
Section 4.2 of the INCOTERMS 2020 DDP provisions transfers all unexpected import tax increases directly to the seller unless explicitly capped in the master supply addendum.

Foreign Exchange Risk in Cross-Border Settlement
Shifts in exchange rates between contracting and settlement alter the landed cost of foreign feedstocks. Optimization models account for forward currency points and hedging premiums to insulate charge ratios from currency swings. A depreciation in the plant’s local currency quickly erodes the cost advantage of imported intermediates over domestic scrap.
- Quantify origin free-on-board price in quote currency and apply current spot foreign exchange conversion.
- Calculate ocean freight, port handling surcharges, and maritime insurance to establish cost, insurance, and freight values.
- Apply statutory import tariffs based on Harmonized System code origin classifications and trade preference documentation.
- Add regional carbon border taxes calculated from verified carbon intensity datasheets per metric tonne of material.
Master supply agreements incorporating standard trade terms mandate that any statutory duty increase taking effect during ocean transit automatically adjusts the invoice price to the buyer’s account.

Grade
Bulk shipments routinely dock with moisture levels and assay profiles that conflict with load-port certificates of analysis. Contracts handle these discrepancies through agreed penalty scales. When delivered assay values drift from contracted specifications, blending models must re-solve to preserve furnace chemistry.

Assay Deviation Penalties and Yield Degradation Curves
Commercial contracts apply graduated price deductions once assays fall below agreed baselines. These formulas discount payable metal or assess refining penalties tied to moisture and unwanted tramp elements.
Assay disputes settled on umpire laboratory findings regularly eliminate the entire margin gained by spot procurement adjustments.

Should Dynamic Weight Vectors Rebalance Mid-Shipment?
Diverting a vessel or adjusting furnace recipes to handle off-grade material creates immediate operational friction. If discharge sampling reveals that incoming units miss grade, the receiving plant has limited options: take the material under contractual price penalties, trim the charge using clean warehouse stock, or reject the lot outright. Holding a vessel off the berth runs up demurrage, but charging dirty material risks operating issues in the furnace.
| Element / Parameter | Standard Spec | Rejection Level | Commercial Penalty Formula | Net Yield Factor |
|---|---|---|---|---|
| Nickel Content (Ni) | 99.8% min | < 99.5% | Pro-rata unit price deduction below 99.8% | 1.000 |
| Moisture Content | 0.5% max | > 1.5% | Full weight deduction for moisture above 0.5% | 0.985 |
| Sulfur Contamination (S) | 0.01% max | > 0.03% | 15.00 USD/t flat fee per 0.005% exceedance | 0.970 |
| Phosphorus (P) | 0.005% max | > 0.015% | 25.00 USD/t flat fee per 0.002% exceedance | 0.955 |
| Assay data compiled from European port umpire laboratory standard testing procedures. Yield factors represent net usable metallic content in primary smelting output. | ||||
Delivered lot assay variance overrides theoretical model optimization whenever physical blending capacity cannot absorb excessive impurity concentrations.

Freight
Ocean freight and vessel discharge terms can turn a cheap FOB purchase into an expensive mistake at the gate. Charter rates, liner surcharges, and discharge berth costs fluctuate across every lane. Smelters have to evaluate the entire logistics chain rather than leaning on origin purchase orders.

Maritime Transit Economics and Landed Waterfall
Charter markets move on fleet positioning, bunker prices, and queue times at key terminals. Longer voyages tie up working capital and introduce inventory carrying costs that belong inside the procurement model alongside waterborne price exposure.
A containerized bulk shipment carrying over three percent moisture content loses forty-two dollars per dry metric tonne in net realized value under standard European port processing protocols.

Worked Re-Weighting Scenario for Sourcing Allocation
A forty-thousand-tonne charge order distributed across three supply origins demonstrates how logistics and customs duties alter the math. The plant requires feed containing at least 60% nickel.
Supplier A operates out of Brazil at 1,420 USD per metric tonne FOB, carrying a 28-day transit time, 65 USD per tonne ocean freight, and a 4.2% import tariff. Supplier B operates out of South Africa at 1,390 USD per metric tonne FOB, carrying an 18-day transit time, 48 USD per tonne ocean freight, and a 6.5% import tariff. Supplier C operates out of Vietnam at 1,450 USD per metric tonne FOB, carrying a 35-day transit time, 82 USD per tonne ocean freight, but qualifies for a 0.0% duty rate under a regional trade agreement.
Evaluated strictly at origin, Supplier B looks like the clear choice. Once cleared at destination, however, Supplier A lands at 1,547.04 USD per metric tonne, Supplier B reaches 1,531.35 USD, and Supplier C lands at 1,532.00 USD, where the zero-duty status nearly offsets its higher freight rate.
Factoring in an expected 5-day port congestion delay in South Africa at 15.00 USD per metric tonne pushes Supplier B’s delivered figure to 1,546.35 USD per metric tonne. The solver shifts allocation to Supplier C, locking in the duty exemption and bypassing the port disruption entirely.
- Ocean Transit Surcharges include fuel adjustments, war risk premiums, and seasonal canal congestion fees added directly to bill of lading rates.
- Port Demurrage Risks quantify potential daily vessel detention charges incurred during discharge delays at congested destination terminals.
- Inventory Holding Costs apply internal capital discount rates to material value tied up during long ocean transport routes.
- Terminal Handling Expenses reflect local stevedoring, quay crane usage, and customs inspection transfer fees at plant discharge docks.
Does the persistence of port demurrage surcharges across specific trade routes permanently alter the long-term convex weight vector, or should sourcing teams treat transit delays purely as transient cost spikes?

Index
Supply agreements connect pricing formulas directly to third-party published indexes while setting terms for mix adjustments. Counterparties manage market risk by establishing how recipe revisions translate into invoices. Broad flexibility creates revenue exposure for the seller, whereas static baskets leave buyers overpaying whenever constituent prices fall.

Formula Pricing Clauses with Variable Component Weights
Term agreements use variable pricing mechanisms to match prevailing market conditions. These clauses price monthly volume by applying published index figures across contracted basket ratios. To prevent unilateral gaming, agreements define acceptable allocation bands and require buyers to declare optimization rules in advance.

Lag Reconciliation and Price Collar Design
Publication timing differences between index print dates and furnace consumption create inventory timing exposure. Because index providers base numbers on past transactions, formulas lag immediate spot conditions. Price collars resolve this by setting hard floors and ceilings, keeping market extremes from destabilizing the supply relationship.
Workable indexing structures depend on unambiguous language governing monthly recipe recalculations. Well-drafted contracts name specific price providers, publishing calendars, and moisture adjustment terms. They set weight calculations on fixed dates using three-week trailing averages to smooth out pricing around settlement windows.
When an index undergoes structural shifts or pauses reporting, fallback terms kick in, moving pricing to secondary benchmarks or cost-plus models until standard quotes resume.





